inet: frags: flush pending skbs in fqdir_pre_exit()
Status from this message: This series was applied to netdev/net.git (main)
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 All 4 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | inet: frags: avoid theoretical race in ip_frag_reinit()net/ net/ | +4 | 1 reply | Applied |
| 2/4 | inet: frags: add inet_frag_queue_flush()include/ net/ net/ | +15 | 1 reply | Applied |
| 3/4 | inet: frags: flush pending skbs in fqdir_pre_exit()include/ include/ net/ +1 more | +50 | 1 reply | Applied |
| 4/4 | netfilter: conntrack: warn when cleanup is stucknet/ | +3 | 2 replies | Applied |
Reviews trailers per patch
All 4 patches have a Reviewed-by or Acked-by.
| Patch | Florian Westphal | Eric Dumazet |
|---|---|---|
| 1/4 | R-b | |
| 2/4 | R-b | |
| 3/4 | R-b | |
| 4/4 | A-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH net 0/4] inet: frags: flush pending skbs in fqdir_pre_exit()
Fix the issue reported by NIPA starting on Sep 18th [1], where pernet_ops_rwsem is constantly held by a reader, preventing writers from grabbing it (specifically driver modules from loading).
The fact that reports started around that time seems coincidental. The issue seems to be skbs queued for defrag preventing conntrack from exiting.
First patch fixes another theoretical issue, it's mostly a leftover from an attempt to get rid of the inet_frag_queue refcnt, which I gave up on (still think it's doable but a bit of a time sink). Second patch is a minor refactor.
The real fix is in the third patch. It's the simplest fix I can think of which is to flush the frag queues. Perhaps someone has a better suggestion?
Last patch adds an explicit warning for conntrack getting stuck, as this seems like something that can easily happen if bugs sneak in. The warning will hopefully save us the first 20% of the investigation effort.
Jakub Kicinski (4):
inet: frags: avoid theoretical race in ip_frag_reinit()
inet: frags: add inet_frag_queue_flush()
inet: frags: flush pending skbs in fqdir_pre_exit()
netfilter: conntrack: warn when cleanup is stuck
include/net/inet_frag.h | 18 ++-------- include/net/ipv6_frag.h | 9 +++-- net/ipv4/inet_fragment.c | 55 ++++++++++++++++++++++++++++--- net/ipv4/ip_fragment.c | 22 +++++-------- net/netfilter/nf_conntrack_core.c | 3 ++ 5 files changed, 72 insertions(+), 35 deletions(-)
Signature · 1 line
2.52.0