[Bug 1712] Deleting a nft chain immediately after flushing references to it does not always work

bugzilla-daemon at netfilter.org bugzilla-daemon at netfilter.org
Fri Oct 6 17:27:45 CEST 2023


https://bugzilla.netfilter.org/show_bug.cgi?id=1712

--- Comment #1 from Pablo Neira Ayuso <pablo at netfilter.org> ---
I run this script with:

while [ 1 ]; do bash test.sh; done

I trigger no error.

I am testing 5.15.135 -stable release.

Please do not that using 'nft' from a shell script. This is discouraged, use
nft -f instead.

# cat file.nft
flush ruleset
table inet filter
add chain inet filter mychain1
add chain inet filter mychain2
add rule inet filter mychain2 ip daddr vmap { 1.1.1.1 : goto mychain1 }
# nft -f file.nft

I also tested with:

while [ 1 ]; do nft -f test.nft; done

and no spurious error is shown.

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.netfilter.org/pipermail/netfilter-buglog/attachments/20231006/a0c5c326/attachment.html>


More information about the netfilter-buglog mailing list