Merge branch 'l2tp-races'
authorDavid S. Miller <davem@davemloft.net>
Mon, 16 Jan 2023 13:40:55 +0000 (13:40 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Jan 2023 13:40:55 +0000 (13:40 +0000)
commit4101971aaf0989b9ad04ea4c37c72645a6cc3ce4
tree489f3351320f5b0191aa1ce8e2190a90655760f1
parent3a415d59c1dbec9d772dbfab2d2520d98360caae
parent0b2c59720e65885a394a017d0cf9cab118914682
Merge branch 'l2tp-races'

Cong Wang says:

====================
l2tp: fix race conditions in l2tp_tunnel_register()

This patchset contains two patches, the first one is a preparation for
the second one which is the actual fix. Please find more details in
each patch description.

I have ran the l2tp test (https://github.com/katalix/l2tp-ktest),
all test cases are passed.

v3: preserve EEXIST errno for user-space
v2: move IDR allocation to l2tp_tunnel_register()
====================

Signed-off-by: David S. Miller <davem@davemloft.net>