]> git.baikalelectronics.ru Git - kernel.git/commit
switch kernel_sendmsg() and kernel_recvmsg() to iov_iter_kvec()
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 21 Mar 2015 23:56:16 +0000 (19:56 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 9 Apr 2015 04:02:34 +0000 (00:02 -0400)
commitdd6a0a6db1eeec751d577ed8249282eded768f2c
tree264f1d52216a267aea823443e728771c9a35a400
parent76fad498a5c24f60555b6a3398d2f952269e312c
switch kernel_sendmsg() and kernel_recvmsg() to iov_iter_kvec()

For kernel_sendmsg() that eliminates the need to play with setfs();
for kernel_recvmsg() it does *not* - a couple of callers are using
it with non-NULL ->msg_control, which would be treated as userland
address on recvmsg side of things.

In all cases we are really setting a kvec-backed iov_iter, though.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
net/socket.c