Thread (44 messages) 44 messages, 15 authors, 2020-06-05

Re: [PATCH 09/14] fs: don't change the address limit for ->write_iter in __kernel_write

From: Al Viro <viro@zeniv.linux.org.uk>
Date: 2020-05-28 19:01:03
Also in: linux-fsdevel, lkml, netfilter-devel

On Thu, May 28, 2020 at 07:40:38AM +0200, Christoph Hellwig wrote:
If we write to a file that implements ->write_iter there is no need
to change the address limit if we send a kvec down.  Implement that
case, and prefer it over using plain ->write with a changed address
limit if available.
Umm...  It needs a comment along the lines of "weird shits like
/dev/sg that currently check for uaccess_kernel() will just
have to make sure they never switch to ->write_iter()"
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help