diff options
author | Eric W. Biederman <ebiederm@aristanetworks.com> | 2009-02-22 08:09:14 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-23 03:54:48 (GMT) |
commit | 959d2726499175c6b724d87fed1dafca7582efe2 (patch) | |
tree | 652620f82916d8f60bf5a58bae03624af1bb3f26 /net/ipv4/ip_sockglue.c | |
parent | a6e8f27f3c02b0c0d0c45d14b2f4a8810c9a7dc7 (diff) | |
download | linux-959d2726499175c6b724d87fed1dafca7582efe2.tar.xz |
netns: Fix icmp shutdown.
Recently I had a kernel panic in icmp_send during a network namespace
cleanup. There were packets in the arp queue that failed to be sent
and we attempted to generate an ICMP host unreachable message, but
failed because icmp_sk_exit had already been called.
The network devices are removed from a network namespace and their
arp queues are flushed before we do attempt to shutdown subsystems
so this error should have been impossible.
It turns out icmp_init is using register_pernet_device instead
of register_pernet_subsys. Which resulted in icmp being shut down
while we still had the possibility of packets in flight, making
a nasty NULL pointer deference in interrupt context possible.
Changing this to register_pernet_subsys fixes the problem in
my testing.
Signed-off-by: Eric W. Biederman <ebiederm@aristanetworks.com>
Acked-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/ip_sockglue.c')
0 files changed, 0 insertions, 0 deletions