aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/crypto
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2018-03-13 20:35:57 +0100
committerDominik Brodowski <linux@dominikbrodowski.net>2018-04-02 20:15:15 +0200
commite1834a329d6bb5659c14e9e537bd1f750fe3b85e (patch)
treed47326548c1db4840cefb1d4e5341df49dabdef6 /crypto
parentnet: socket: add do_sys_recvmmsg() helper; remove in-kernel call to syscall (diff)
downloadwireguard-linux-e1834a329d6bb5659c14e9e537bd1f750fe3b85e.tar.xz
wireguard-linux-e1834a329d6bb5659c14e9e537bd1f750fe3b85e.zip
net: socket: move check for forbid_cmsg_compat to __sys_...msg()
The non-compat codepaths for sys_...msg() verify that MSG_CMSG_COMPAT is not set. By moving this check to the __sys_...msg() functions (and making it dependent on a static flag passed to this function), we can call the __sys...msg() functions instead of the syscall functions in all cases. __sys_recvmmsg() does not need this trickery, as the check is handled within the do_sys_recvmmsg() function internal to net/socket.c. This patch is part of a series which removes in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. For details, see http://lkml.kernel.org/r/20180325162527.GA17492@light.dominikbrodowski.net Cc: David S. Miller <davem@davemloft.net> Cc: netdev@vger.kernel.org Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions