linux-stable-rt/net/xfrm
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
..
Kconfig
Makefile
xfrm_algo.c [NET]: Change some "if (x) BUG();" to "BUG_ON(x);" 2006-01-09 14:16:18 -08:00
xfrm_input.c
xfrm_policy.c [NET] sem2mutex: net/ 2006-03-20 22:33:17 -08:00
xfrm_state.c [XFRM]: Add some missing exports. 2006-03-20 19:18:52 -08:00
xfrm_user.c [XFRM]: Fix aevent related crash 2006-03-20 22:40:54 -08:00