Files
linux-stable-mirror/include/net
Eric DumazetandSasha Levin e23da16dec ipv6: fix a race in ip6_sock_set_v6only()
[ Upstream commit 452a3eee22 ]

It is unlikely that this function will be ever called
with isk->inet_num being not zero.

Perform the check on isk->inet_num inside the locked section
for complete safety.

Fixes: 9b115749ac ("ipv6: add ip6_sock_set_v6only")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: Fernando Fernandez Mancera <fmancera@suse.de>
Link: https://patch.msgid.link/20260216102202.3343588-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2026-03-04 07:20:06 -05:00
..
2025-02-21 13:49:02 +01:00
2026-01-11 15:18:59 +01:00
2024-01-31 16:17:04 -08:00
2025-03-07 16:56:44 +01:00
2024-12-19 18:08:53 +01:00
2025-02-21 13:50:06 +01:00
2023-10-10 22:00:46 +02:00
2025-03-07 16:56:37 +01:00
2025-03-07 16:56:37 +01:00