Skip to content

gtp/pfcp: Fix use-after-free of UDP tunnel socket.

Kuniyuki Iwashima netdev 2 versions – Applied

Status from this message: This series was applied to netdev/net.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 0 repliesApplied 3/3
  2. v13 patches 4 repliesSuperseded

Changes in v2 from the cover letter

* Patch 1
* Fix uninit/unused local var

Patches in v2 All 3 applied

#Subject and filesSizeRepliesApplied
1/3gtp: Use for_each_netdev_rcu() in gtp_genl_dump_pdp().drivers/net/gtp.c+11 -80 repliesApplied
2/3gtp: Destroy device along with udp socket's netns dismantle.drivers/net/gtp.c+6 -10 repliesApplied
3/3pfcp: Destroy device along with udp socket's netns dismantle.drivers/net/pfcp.c+10 -50 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 net 0/3] gtp/pfcp: Fix use-after-free of UDP tunnel socket.

Xiao Liang pointed out weird netns usages in ->newlink() of gtp and pfcp.

This series fixes the issues.

Changes:
v2:
* Patch 1
* Fix uninit/unused local var

v1: https://lore.kernel.org/netdev/[email protected]/

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  | 26 +++++++++++++++++---------
 drivers/net/pfcp.c | 15 ++++++++++-----
 2 files changed, 27 insertions(+), 14 deletions(-)
Signature · 1 line
2.39.5 (Apple Git-154)