Commit b389139
committed
netfilter: nf_tables: fix underflow in chain reference counter
Set element addition error path decrements reference counter on chains
twice: once on element release and again via nft_data_release().
Then, d6b4786 ("netfilter: nf_tables: fix underflow in object
reference counter") incorrectly fixed this by removing the stateful
object reference count decrement.
Restore the stateful object decrement as in b91d903 ("netfilter:
nf_tables: fix leaking object reference count") and let
nft_data_release() decrement the chain reference counter, so this is
done only once.
Fixes: d6b4786 ("netfilter: nf_tables: fix underflow in object reference counter")
Fixes: 628bd3e ("netfilter: nf_tables: drop map element references from preparation phase")
Signed-off-by: Pablo Neira Ayuso <[email protected]>1 parent 3e70489 commit b389139
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6771 | 6771 | | |
6772 | 6772 | | |
6773 | 6773 | | |
6774 | | - | |
| 6774 | + | |
| 6775 | + | |
| 6776 | + | |
6775 | 6777 | | |
6776 | 6778 | | |
6777 | 6779 | | |
| |||
0 commit comments