linux-sg2042/net/l2tp
Guillaume Nault f6cd651b05 l2tp: fix race in duplicate tunnel detection
We can't use l2tp_tunnel_find() to prevent l2tp_nl_cmd_tunnel_create()
from creating a duplicate tunnel. A tunnel can be concurrently
registered after l2tp_tunnel_find() returns. Therefore, searching for
duplicates must be done at registration time.

Finally, remove l2tp_tunnel_find() entirely as it isn't use anywhere
anymore.

Fixes: 309795f4be ("l2tp: Add netlink control API for L2TP")
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-04-11 17:41:27 -04:00
..
Kconfig
Makefile
l2tp_core.c l2tp: fix race in duplicate tunnel detection 2018-04-11 17:41:27 -04:00
l2tp_core.h l2tp: fix race in duplicate tunnel detection 2018-04-11 17:41:27 -04:00
l2tp_debugfs.c
l2tp_eth.c
l2tp_ip.c
l2tp_ip6.c
l2tp_netlink.c l2tp: fix race in duplicate tunnel detection 2018-04-11 17:41:27 -04:00
l2tp_ppp.c l2tp: fix races in tunnel creation 2018-04-11 17:41:27 -04:00