]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5d3468dcb4cd6630eee34449e93cf7fa428ae6a4
treec79242698fadf78c23bbb9f50a7a8b9a74a40284
parentf95653d3b38b75f7ad7af1d92d9f54582f14599c
net: Unbreak compat_sys_{send,recv}msg

I broke them in this commit:

    commit 81ee38cd90af41d2308642ec96a5ba2c2c3bf383
    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