netfilter: nf_tables: avoid PROVE_RCU_LIST splats
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest7 patches 1 replyIn review
- v27 patches 12 repliesSuperseded
- v17 patches 5 repliesSuperseded
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | netfilter: nf_tables: avoid false-positive lockdep splat on rule deletionnet/ | +13 | 0 replies | |
| 2/7 | netfilter: nf_tables: avoid false-positive lockdep splats with setsnet/ | +16 | 0 replies | |
| 3/7 | netfilter: nf_tables: avoid false-positive lockdep splats with flowtablesinclude/ net/ net/ | +13 | 0 replies | |
| 4/7 | netfilter: nf_tables: avoid false-positive lockdep splats in set walkernet/ net/ | +8 | 0 replies | |
| 5/7 | netfilter: nf_tables: avoid false-positive lockdep splats with basechain hooknet/ | +5 | 0 replies | |
| 6/7 | netfilter: nf_tables: must hold rcu read lock while iterating expression type listnet/ | +18 | 0 replies | |
| 7/7 | netfilter: nf_tables: must hold rcu read lock while iterating object type listnet/ | +6 | 0 replies |
Reviews trailers per patch
None of the 7 patches has a Reviewed-by or Acked-by.
| Patch | Matthieu Baerts |
|---|---|
| 1/7 | T-b |
| 2/7 | |
| 3/7 | |
| 4/7 | |
| 5/7 | |
| 6/7 | |
| 7/7 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH nf-next v3 0/7] netfilter: nf_tables: avoid PROVE_RCU_LIST splats
v3: don't check for type->owner and add comment saying check on inner_ops is enough.
Use IS_ERR() instead of ptr == NULL in patch 7/7.
No other changes.
Mathieu reported a lockdep splat on rule deletion with CONFIG_RCU_LIST=y.
Unfortunately there are many more errors, and not all are false positives.
First patches pass lockdep_commit_lock_is_held() to the rcu list traversal macro so that those splats are avoided.
The last two patches are real code change as opposed to 'pass the transaction mutex to relax rcu check':
Those two lists are not protected by transaction mutex so could be altered in parallel in case of module load/removal.
Florian Westphal (7):
netfilter: nf_tables: avoid false-positive lockdep splat on rule
deletion
netfilter: nf_tables: avoid false-positive lockdep splats with sets
netfilter: nf_tables: avoid false-positive lockdep splats with
flowtables
netfilter: nf_tables: avoid false-positive lockdep splats in set
walker
netfilter: nf_tables: avoid false-positive lockdep splats with
basechain hook
netfilter: nf_tables: must hold rcu read lock while iterating
expression type list
netfilter: nf_tables: must hold rcu read lock while iterating object
type list
include/net/netfilter/nf_tables.h | 3 +- net/netfilter/nf_tables_api.c | 110 ++++++++++++++++++------------ net/netfilter/nft_flow_offload.c | 4 +- net/netfilter/nft_set_bitmap.c | 10 +-- net/netfilter/nft_set_hash.c | 3 +- 5 files changed, 79 insertions(+), 51 deletions(-)
Signature · 1 line
2.45.2