]> git.ipfire.org Git - thirdparty/nftables.git/commit
tests: add test case for rule replacement expression deactivation
authorFlorian Westphal <fw@strlen.de>
Wed, 28 Nov 2018 10:44:59 +0000 (11:44 +0100)
committerFlorian Westphal <fw@strlen.de>
Wed, 28 Nov 2018 11:16:42 +0000 (12:16 +0100)
commit431635b134a05963dd1e7cda252d16eec8a53787
treeb9f9d3086e6c983eee79ef73f5526b1c1796011a
parent285bb67a11ad2a6cac29b9f0eff3cf6066e0d39f
tests: add test case for rule replacement expression deactivation

When a rule is replaced, all of the expressions that are in use need to
be deactivated.

Kernel missed to do this on replace.  In this example, this would
result in a leak of the chain use counter ("jump" expression
deactivation is not called).  This then either resulted in a BUG or
WARN, depending on kernel version.

Signed-off-by: Florian Westphal <fw@strlen.de>
tests/shell/testcases/rule_management/0010replace_0 [new file with mode: 0755]