ipv6: set msg_control_is_user in do_ipv6_getsockopt
authorChristoph Hellwig <hch@lst.de>
Wed, 13 May 2020 19:36:41 +0000 (21:36 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 May 2020 20:11:45 +0000 (13:11 -0700)
commit1b2f08df0a886e0565c71821d5230cba395f5c18
treecdfe2a9f056357309270e7e738e11f194304825f
parent87f785e96218247ed47107792c20f3d86778da4b
ipv6: set msg_control_is_user in do_ipv6_getsockopt

While do_ipv6_getsockopt does not call the high-level recvmsg helper,
the msghdr eventually ends up being passed to put_cmsg anyway, and thus
needs msg_control_is_user set to the proper value.

Fixes: 1f466e1f15cf ("net: cleanly handle kernel vs user buffers for ->msg_control")
Reported-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ipv6_sockglue.c