net: Unbreak compat_sys_{send,recv}msg
authorAndy Lutomirski <luto@amacapital.net>
Wed, 5 Jun 2013 19:38:26 +0000 (19:38 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Jun 2013 18:52:14 +0000 (11:52 -0700)
commita7526eb5d06b0084ef12d7b168d008fcf516caab
treec79242698fadf78c23bbb9f50a7a8b9a74a40284
parent4d3797d7e1861ac1af150a6189315786c5e1c820
net: Unbreak compat_sys_{send,recv}msg

I broke them in this commit:

    commit 1be374a0518a288147c6a7398792583200a67261
    Author: Andy Lutomirski <luto@amacapital.net>
    Date:   Wed May 22 14:07:44 2013 -0700

        net: Block MSG_CMSG_COMPAT in send(m)msg and recv(m)msg

This patch adds __sys_sendmsg and __sys_sendmsg as common helpers that accept
MSG_CMSG_COMPAT and blocks MSG_CMSG_COMPAT at the syscall entrypoints.  It
also reverts some unnecessary checks in sys_socketcall.

Apparently I was suffering from underscore blindness the first time around.

Signed-off-by: Andy Lutomirski <luto@amacapital.net>
Tested-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/socket.h
net/compat.c
net/socket.c