mbox series

[net,0/2] l2tp: fix race conditions in l2tp_tunnel_register()

Message ID 20230105191339.506839-1-xiyou.wangcong@gmail.com (mailing list archive)
Headers show
Series l2tp: fix race conditions in l2tp_tunnel_register() | expand

Message

Cong Wang Jan. 5, 2023, 7:13 p.m. UTC
From: Cong Wang <cong.wang@bytedance.com>

This patchset contains two patches, the first one is a preparation for
the second one. 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.

---
Cong Wang (2):
  l2tp: convert l2tp_tunnel_list to idr
  l2tp: close all race conditions in l2tp_tunnel_register()

 net/l2tp/l2tp_core.c    | 116 +++++++++++++++++++++-------------------
 net/l2tp/l2tp_core.h    |   3 +-
 net/l2tp/l2tp_netlink.c |   3 +-
 net/l2tp/l2tp_ppp.c     |   3 +-
 4 files changed, 68 insertions(+), 57 deletions(-)