linux/net
Daniel Lezcano 7d460db953 [IPV6]: Fix ip6_frag ctl
Alexey Dobriyan reported an oops when unsharing the network
indefinitely inside a loop. This is because the ip6_frag is not per
namespace while the ctls are.

That happens at the fragment timer expiration:
inet_frag_secret_rebuild function is called and this one restarts the
timer using the value stored inside the sysctl field.

        "mod_timer(&f->secret_timer, now + f->ctl->secret_interval);"

When the network is unshared, ip6_frag.ctl is initialized with the new
sysctl instances, but ip6_frag has only one instance. A race in this
case will appear because f->ctl can be modified during the read access
in the timer callback.

Until the ip6_frag is not per namespace, I discard the assignation to
the ctl field of ip6_frags in ip6_frag_sysctl_init when the network
namespace is not the init net.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-01-28 15:08:04 -08:00
..
9p
802
8021q
appletalk [APPLETALK]: Annotations to clear sparse warnings 2008-01-28 15:02:43 -08:00
atm [ATM]: Suppress some sparse warnings 2008-01-28 15:02:43 -08:00
ax25 [AX25]: sparse cleanups 2008-01-28 15:02:03 -08:00
bluetooth
bridge [BRIDGE]: Remove unused include of a header file in ebtables.c 2008-01-28 15:02:48 -08:00
can
core [NETNS][DST] dst: pass the dst_ops as parameter to the gc functions 2008-01-28 15:02:46 -08:00
dccp
decnet [NETNS][DST] dst: pass the dst_ops as parameter to the gc functions 2008-01-28 15:02:46 -08:00
econet
ethernet
ieee80211 wireless: fix '!x & y' typo's 2008-01-28 15:03:35 -08:00
ipv4 [NETNS][DST] dst: pass the dst_ops as parameter to the gc functions 2008-01-28 15:02:46 -08:00
ipv6 [IPV6]: Fix ip6_frag ctl 2008-01-28 15:08:04 -08:00
ipx
irda
iucv
key
lapb
llc
mac80211
netfilter [NETFILTER]: nf_conntrack: make print_conntrack function optional for l4protos 2008-01-28 15:02:42 -08:00
netlabel
netlink
netrom
packet
rfkill
rose [ROSE]: Supress sparse warnings 2008-01-28 15:02:44 -08:00
rxrpc
sched
sctp [SCTP]: Fix build warning in sctp_sf_do_5_1C_ack(). 2008-01-28 15:02:48 -08:00
sunrpc
tipc
unix
wanrouter
wireless
x25
xfrm
compat.c
Kconfig
Makefile
nonet.c
socket.c
sysctl_net.c
TUNABLE