]> www.infradead.org Git - users/jedix/linux-maple.git/commit
l2tp: fix l2tp_session_register with colliding l2tpv3 IDs
authorJames Chapman <jchapman@katalix.com>
Tue, 9 Jul 2024 16:28:39 +0000 (17:28 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Jul 2024 03:09:18 +0000 (04:09 +0100)
commit2146b7dd354c2a1384381ca3cd5751bfff6137d6
treeaa07fed73fd4a02d5ea621ed8e54eb19536f86bd
parentb6c67967897e2e02482f7bbd26232090a6e30ae5
l2tp: fix l2tp_session_register with colliding l2tpv3 IDs

When handling colliding L2TPv3 session IDs, we use the existing
session IDR entry and link the new session on that using
session->coll_list. However, when using an existing IDR entry, we must
not do the idr_replace step.

Fixes: aa5e17e1f5ec ("l2tp: store l2tpv3 sessions in per-net IDR")
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>
net/l2tp/l2tp_core.c