diff options
author | James Chapman <jchapman@katalix.com> | 2024-08-07 09:54:47 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-08-11 06:38:49 +0300 |
commit | b0a8deda060d51ebe4614ed6e1829d933139ba1a (patch) | |
tree | fdc52e53af19e502c25405dfdffdfe7605086f7c /include/linux/overflow.h | |
parent | ebed6606b95954b94df6229db806978b32f3fa23 (diff) | |
download | linux-b0a8deda060d51ebe4614ed6e1829d933139ba1a.tar.xz |
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>
Diffstat (limited to 'include/linux/overflow.h')
0 files changed, 0 insertions, 0 deletions