Re: [PATCH net-next] ipv6: set msg_control_is_user in do_ipv6_getsockopt

2020-05-13 Thread David Miller
From: Christoph Hellwig Date: Wed, 13 May 2020 21:36:41 +0200 > 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: clea

[PATCH net-next] ipv6: set msg_control_is_user in do_ipv6_getsockopt

2020-05-13 Thread Christoph Hellwig
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 D