Linux kernel -stable discussions
 help / color / mirror / Atom feed
* [PATCH] fs: pass on flags in compat_writev
@ 2017-05-10  6:37 Christoph Hellwig
  2017-05-27  8:14 ` Christoph Hellwig
  0 siblings, 1 reply; 4+ messages in thread
From: Christoph Hellwig @ 2017-05-10  6:37 UTC (permalink / raw)
  To: viro; +Cc: linux-fsdevel, stable

Fixes: 793b80ef ("vfs: pass a flags argument to vfs_readv/vfs_writev")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Cc: stable@vger.kernel.org
---
 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)
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 4+ messages in thread
* [PATCH] fs: pass on flags in compat_writev
@ 2017-06-16  9:08 Christoph Hellwig
  2017-06-01 18:24 ` Jon Derrick
  0 siblings, 1 reply; 4+ messages in thread
From: Christoph Hellwig @ 2017-06-16  9:08 UTC (permalink / raw)
  To: Linus Torvalds
  Cc: Al Viro, Adhemerval Zanella, Jon Derrick, linux-fsdevel, stable

Fixes: 793b80ef ("vfs: pass a flags argument to vfs_readv/vfs_writev")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Cc: stable@vger.kernel.org
---

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)
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-06-16  9:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-10  6:37 [PATCH] fs: pass on flags in compat_writev Christoph Hellwig
2017-05-27  8:14 ` Christoph Hellwig
  -- strict thread matches above, loose matches on Subject: below --
2017-06-16  9:08 Christoph Hellwig
2017-06-01 18:24 ` Jon Derrick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox