mirror-linux/include
Eric Dumazet 452a3eee22 ipv6: fix a race in ip6_sock_set_v6only()
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>
2026-02-17 16:45:29 -08:00
..
acpi Power management updates for 6.20-rc1/7.0-rc1 2026-02-09 19:00:42 -08:00
asm-generic asm-generic header updates for 7.0 2026-02-10 20:27:33 -08:00
clocksource
crypto Networking changes for 7.0 2026-02-11 19:31:52 -08:00
cxl
drm
dt-bindings Networking changes for 7.0 2026-02-11 19:31:52 -08:00
hyperv
keys
kunit
kvm
linux Networking changes for 7.0 2026-02-11 19:31:52 -08:00
math-emu
media [GIT PULL for v7.0] media updates 2026-02-11 12:20:25 -08:00
memory
misc
net ipv6: fix a race in ip6_sock_set_v6only() 2026-02-17 16:45:29 -08:00
pcmcia
ras
rdma
rv
scsi
soc
sound ASoC: Updates for v7.0 2026-02-09 17:39:11 +01:00
target
trace Networking changes for 7.0 2026-02-11 19:31:52 -08:00
uapi Networking changes for 7.0 2026-02-11 19:31:52 -08:00
ufs
vdso
video
xen
Kbuild