aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Brodsky <[email protected]>2023-04-13 12:47:05 +0100
committerDavid S. Miller <[email protected]>2023-04-14 11:09:27 +0100
commitb6d85cf5bd1433c5dd6bf6bb3a176537184c630c (patch)
treebc473b2c058f20ddd4f4231b5f9cb3e6a54b8455
parent60daf8d40b80ccbd593930235aea9ee82ea8dbc2 (diff)
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 <[email protected]> Cc: Eric Dumazet <[email protected]> Cc: "David S. Miller" <[email protected]> Cc: Jakub Kicinski <[email protected]> Signed-off-by: Kevin Brodsky <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: David S. Miller <[email protected]>
-rw-r--r--net/ipv6/ipv6_sockglue.c1
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;