more transaction updates
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | netfilter: nf_tables: release objects in reverse order in the abort pathnet/ | +2 | 0 replies | |
| 2/4 | netfilter: nf_rbtree: introduce lockingnet/ | +21 | 0 replies | |
| 3/4 | netfilter: nf_tables: allow to delete several objects from a batchnet/ | +31 | 0 replies | |
| 4/4 | netfilter: nf_tables: atomic allocation in set notifications from rcu callbacknet/ | +6 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH nftables 0/4] more transaction updates
Hi,
This patchset contains updates for the new transaction infrastructure, they are:
* Make sure that this releases objects in reverse order in the abort path to avoid possible use after free. No need the reverse iteration this in the commit path since they already come in the right order according to object dependencies.
* Introduce locking to the rbtree that is used for interval sets.
* Allow to delete several objects using a batch, this updates the use counter semantics applying the following rules:
1) If you add/delete a chain, it increments/decrements the table use counter.
2) If you add/delete a rule, it increments/decrements the chain use counter.
3) If you add/delete a set, it increments/decrements the table use counter.
4) If you bind an anonymous set to a rule, it decrements the table use counter. This avoids an -EBUSY error since bound anonymous sets are released quite late in the commit/abort path, from the rcu callback. This should be safe since the rule updated the chain use counter, so it is not possible to remove a table with bound anonymous sets. This rules does not apply to unbound anonymous sets.
* Use atomic memory allocations in the anonymous set notification path from the rcu callback.
Pablo Neira Ayuso (4):
netfilter: nf_tables: release objects in reverse order in the abort path
netfilter: nf_rbtree: introduce locking
netfilter: nf_tables: allow to delete several objects from a batch
netfilter: nf_tables: atomic allocation in set notifications from rcu callback
net/netfilter/nf_tables_api.c | 55 +++++++++++++++++++++++++++++------------ net/netfilter/nft_rbtree.c | 22 ++++++++++++++++- 2 files changed, 60 insertions(+), 17 deletions(-)
Signature · 1 line
1.7.10.4