Skip to content

inet: fix defrag units dismantle races

Eric Dumazet netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2netns: add pre_exit method to struct pernet_operationsinclude/net/net_namespace.h net/core/net_namespace.c+33 -00 replies
2/2inet: fix various use-after-free in defrags unitsinclude/net/inet_frag.h include/net/ipv6_frag.h net/ieee802154/6lowpan/reassembly.c +4 more+52 -240 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH net-next 0/2] inet: fix defrag units dismantle races

This series add a new pre_exit() method to struct pernet_operations to solve a race in defrag units dismantle, without adding extra delays to netns dismantles.

Eric Dumazet (2):
netns: add pre_exit method to struct pernet_operations
inet: fix various use-after-free in defrags units

 include/net/inet_frag.h                 |  8 ++++++-
 include/net/ipv6_frag.h                 |  2 ++
 include/net/net_namespace.h             |  5 +++++
 net/core/net_namespace.c                | 28 +++++++++++++++++++++++++
 net/ieee802154/6lowpan/reassembly.c     | 13 ++++++++++--
 net/ipv4/inet_fragment.c                | 19 ++++-------------
 net/ipv4/ip_fragment.c                  | 14 +++++++++++--
 net/ipv6/netfilter/nf_conntrack_reasm.c | 10 +++++++--
 net/ipv6/reassembly.c                   | 10 +++++++--
 9 files changed, 85 insertions(+), 24 deletions(-)
Signature · 1 line
2.22.0.410.gd8fdbe21b5-goog