Patrick McHardy be33690d8f [XFRM]: Fix aevent related crash
When xfrm_user isn't loaded xfrm_nl is NULL, which makes IPsec crash because
xfrm_aevent_is_on passes the NULL pointer to netlink_has_listeners as socket.
A second problem is that the xfrm_nl pointer is not cleared when the socket
is releases at module unload time.

Protect references of xfrm_nl from outside of xfrm_user by RCU, check
that the socket is present in xfrm_aevent_is_on and set it to NULL
when unloading xfrm_user.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2006-03-20 22:40:54 -08:00
..
2006-02-13 15:38:42 -08:00
2006-03-20 22:35:41 -08:00
2006-03-19 13:20:06 -08:00
2006-03-20 22:33:17 -08:00
2006-03-20 22:35:41 -08:00
2006-03-20 22:33:17 -08:00
2006-03-20 22:35:41 -08:00
2006-01-11 18:42:14 -08:00
2006-02-09 16:59:48 -08:00
2006-03-20 22:33:17 -08:00
2005-08-29 15:31:14 -07:00
2006-03-20 21:28:11 -08:00
2006-03-20 22:35:41 -08:00
2006-01-11 18:42:14 -08:00
2006-01-17 13:03:54 -08:00
2006-03-20 22:32:28 -08:00
2006-03-20 22:35:41 -08:00
2006-03-20 22:38:33 -08:00
2006-03-20 22:35:41 -08:00
2006-01-11 18:42:14 -08:00
2006-03-20 22:40:54 -08:00
2005-09-08 08:14:11 -07:00
2006-02-07 01:47:12 -05:00
2006-01-12 14:06:31 -08:00
2006-01-03 13:11:17 -08:00
2006-03-20 22:33:17 -08:00
2005-04-16 15:20:36 -07:00