linux-stable/net/l2tp
James Chapman b0a8deda06 l2tp: handle hash key collisions in l2tp_v3_session_get
To handle colliding l2tpv3 session IDs, l2tp_v3_session_get searches a
hashed list keyed by ID and sk. Although unlikely, if hash keys
collide, it is possible that hash_for_each_possible loops over a
session which doesn't have the ID that we are searching for. So check
for session ID match when looping over possible hash key matches.

Signed-off-by: James Chapman <jchapman@katalix.com>
Signed-off-by: Tom Parkin <tparkin@katalix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2024-08-11 04:38:49 +01:00
..
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
l2tp_core.c l2tp: handle hash key collisions in l2tp_v3_session_get 2024-08-11 04:38:49 +01:00
l2tp_core.h l2tp: prevent possible tunnel refcount underflow 2024-07-31 09:25:13 +01:00
l2tp_debugfs.c l2tp: replace hlist with simple list for per-tunnel session list 2024-06-21 11:33:34 +01:00
l2tp_eth.c l2tp: cleanup eth/ppp pseudowire setup code 2024-07-31 09:25:13 +01:00
l2tp_ip6.c l2tp: move l2tp_ip and l2tp_ip6 data to pernet 2024-08-11 04:38:49 +01:00
l2tp_ip.c l2tp: move l2tp_ip and l2tp_ip6 data to pernet 2024-08-11 04:38:49 +01:00
l2tp_netlink.c l2tp: prevent possible tunnel refcount underflow 2024-07-31 09:25:13 +01:00
l2tp_ppp.c l2tp: remove inline from functions in c sources 2024-08-11 04:38:49 +01:00
Makefile l2tp: add tracepoint infrastructure to core 2020-08-22 12:44:37 -07:00
trace.h l2tp: add tracepoint definitions in trace.h 2020-08-22 12:44:37 -07:00