Re: [PATCH] net: Unbreak compat_sys_{send,recv}msg

From
David Miller <hidden>
Date
2013-06-06 18:54:09
Also in
lkml, netdev
Reply to
Eric Dumazet, 2013-06-06
From: Eric Dumazet <redacted>
Date: Thu, 06 Jun 2013 06:45:37 -0700
On Thu, 2013-06-06 at 00:26 -0700, David Miller wrote:
quoted
From: Andy Lutomirski <luto@amacapital.net>
Date: Wed,  5 Jun 2013 22:38:26 -0700
quoted
I broke them in this commit:

    commit 1be374a0518a288147c6a7398792583200a67261
    Author: Andy Lutomirski [off-list ref]
    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>
Eric, can you test this patch too?
Yes, this fixes the problem as well on x86_64

Tested-by: Eric Dumazet <redacted>
Applied, thanks.
Thread (10 messages) 10 messages, 7 authors, last reply 2013-06-06
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help