Re: [PATCH] fs: pass on flags in compat_writev

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks for driving this
Acked-by Jon Derrick: <jonathan.derrick@xxxxxxxxx>

On 06/16/2017 03:08 AM, Christoph Hellwig wrote:
> Fixes: 793b80ef ("vfs: pass a flags argument to vfs_readv/vfs_writev")
> Signed-off-by: Christoph Hellwig <hch@xxxxxx>
> Cc: stable@xxxxxxxxxxxxxxx
> ---
> 
> I've been trying to get this in through Al multiple times, and now I've
> got a report that the glibc test suite hits this issue.  Let's get it
> into 4.12-rc
> 
>  fs/read_write.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/read_write.c b/fs/read_write.c
> index 47c1d4484df9..19d4d88fa285 100644
> --- a/fs/read_write.c
> +++ b/fs/read_write.c
> @@ -1285,7 +1285,7 @@ static size_t compat_writev(struct file *file,
>  	if (!(file->f_mode & FMODE_CAN_WRITE))
>  		goto out;
>  
> -	ret = compat_do_readv_writev(WRITE, file, vec, vlen, pos, 0);
> +	ret = compat_do_readv_writev(WRITE, file, vec, vlen, pos, flags);
>  
>  out:
>  	if (ret > 0)
> 




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]