mbox series

[v1,net,0/3] gtp/pfcp: Fix use-after-free of UDP tunnel socket.

Message ID 20250108062834.11117-1-kuniyu@amazon.com (mailing list archive)
Headers show
Series gtp/pfcp: Fix use-after-free of UDP tunnel socket. | expand

Message

Kuniyuki Iwashima Jan. 8, 2025, 6:28 a.m. UTC
Xiao Liang pointed out weird netns usages in ->newlink() of
gtp and pfcp.

This series fixes the issues.

Link: https://lore.kernel.org/netdev/20250104125732.17335-1-shaw.leon@gmail.com/


Kuniyuki Iwashima (3):
  gtp: Use for_each_netdev_rcu() in gtp_genl_dump_pdp().
  gtp: Destroy device along with udp socket's netns dismantle.
  pfcp: Destroy device along with udp socket's netns dismantle.

 drivers/net/gtp.c  | 21 +++++++++++++++------
 drivers/net/pfcp.c | 15 ++++++++++-----
 2 files changed, 25 insertions(+), 11 deletions(-)