]> git.ipfire.org Git - thirdparty/nftables.git/commit
tests: shell: add crash reproducer
authorFlorian Westphal <fw@strlen.de>
Tue, 29 May 2018 14:16:44 +0000 (16:16 +0200)
committerFlorian Westphal <fw@strlen.de>
Thu, 7 Jun 2018 12:38:01 +0000 (14:38 +0200)
commitccd0125b242e923fce98d9321a69695bb74fb193
treed3255d45600aabfc7c2513dc395d1cb445886aca
parent40fb9d6f6bea86b812314b3c879746d957fbb769
tests: shell: add crash reproducer

Two reports point to a crash in nft when 'flush' is provided
on existing ruleset.  In that case, nft will crash with a null-ptr
dereference.

"evaluate: do not inconditionally update cache from flush command"
causes the commit to fail due to a cache inconsistency, we then trip
over NULL location->indesc.  Cause of 2nd bug not known yet, not sure
how to fix cache issue either, so only adding reproducer so this can be
fixed later.

Without erec bug, the (errnoeous) error message would be
Could not process rule: File exists

Reported-by: Oleksandr Natalenko <oleksandr@natalenko.name>
Reported-by: Timothy Redaelli <tredaelli@redhat.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
tests/shell/testcases/cache/0001_cache_handling_0