kernel_optimize_test/net/l2tp
Guillaume Nault 5e6a9e5a35 l2tp: hold session while sending creation notifications
l2tp_session_find() doesn't take any reference on the returned session.
Therefore, the session may disappear while sending the notification.

Use l2tp_session_get() instead and decrement session's refcount once
the notification is sent.

Fixes: 33f72e6f0c ("l2tp : multicast notification to the registered listeners")
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-04-01 20:16:41 -07:00
..
Kconfig
l2tp_core.c l2tp: fix duplicate session creation 2017-04-01 20:16:41 -07:00
l2tp_core.h l2tp: fix race in l2tp_recv_common() 2017-04-01 20:16:41 -07:00
l2tp_debugfs.c
l2tp_eth.c l2tp: fix duplicate session creation 2017-04-01 20:16:41 -07:00
l2tp_ip.c l2tp: fix race in l2tp_recv_common() 2017-04-01 20:16:41 -07:00
l2tp_ip6.c l2tp: fix race in l2tp_recv_common() 2017-04-01 20:16:41 -07:00
l2tp_netlink.c l2tp: hold session while sending creation notifications 2017-04-01 20:16:41 -07:00
l2tp_ppp.c l2tp: fix duplicate session creation 2017-04-01 20:16:41 -07:00
Makefile