linux/net/ax25
Eric W. Biederman 3adadc08cc net ax25: Reorder ax25_exit to remove races.
While reviewing the sysctl code in ax25 I spotted races in ax25_exit
where it is possible to receive notifications and packets after already
freeing up some of the data structures needed to process those
notifications and updates.

Call unregister_netdevice_notifier early so that the rest of the cleanup
code does not need to deal with network devices.  This takes advantage
of my recent enhancement to unregister_netdevice_notifier to send
unregister notifications of all network devices that are current
registered.

Move the unregistration for packet types, socket types and protocol
types before we cleanup any of the ax25 data structures to remove the
possibilities of other races.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-04-19 15:37:48 -04:00
..
Kconfig Update broken web addresses in the kernel. 2010-10-18 11:03:14 +02:00
Makefile
TODO
af_ax25.c net ax25: Reorder ax25_exit to remove races. 2012-04-19 15:37:48 -04:00
ax25_addr.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
ax25_dev.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
ax25_ds_in.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
ax25_ds_subr.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
ax25_ds_timer.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
ax25_iface.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
ax25_in.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
ax25_ip.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
ax25_out.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
ax25_route.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
ax25_std_in.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
ax25_std_subr.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
ax25_std_timer.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
ax25_subr.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
ax25_timer.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
ax25_uid.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
sysctl_net_ax25.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00