diff options
author | Kevin Brodsky <kevin.brodsky@arm.com> | 2023-04-13 13:47:05 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-04-14 12:09:27 +0200 |
commit | b6d85cf5bd1433c5dd6bf6bb3a176537184c630c (patch) | |
tree | bc473b2c058f20ddd4f4231b5f9cb3e6a54b8455 /net/ipv6/ipv6_sockglue.c | |
parent | net/compat: Update msg_control_is_user when setting a kernel pointer (diff) | |
download | linux-b6d85cf5bd1433c5dd6bf6bb3a176537184c630c.tar.xz linux-b6d85cf5bd1433c5dd6bf6bb3a176537184c630c.zip |
net/ipv6: Initialise msg_control_is_user
do_ipv6_setsockopt() makes use of struct msghdr::msg_control in the
IPV6_2292PKTOPTIONS case. Make sure to initialise
msg_control_is_user accordingly.
Cc: Christoph Hellwig <hch@lst.de>
Cc: Eric Dumazet <edumazet@google.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Kevin Brodsky <kevin.brodsky@arm.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ipv6_sockglue.c')
-rw-r--r-- | net/ipv6/ipv6_sockglue.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv6/ipv6_sockglue.c b/net/ipv6/ipv6_sockglue.c index 2917dd8d198c..ae818ff46224 100644 --- a/net/ipv6/ipv6_sockglue.c +++ b/net/ipv6/ipv6_sockglue.c @@ -716,6 +716,7 @@ int do_ipv6_setsockopt(struct sock *sk, int level, int optname, goto done; msg.msg_controllen = optlen; + msg.msg_control_is_user = false; msg.msg_control = (void *)(opt+1); ipc6.opt = opt; |