]> www.infradead.org Git - users/jedix/linux-maple.git/commit
netfilter: nf_tables: elements with timeout below CONFIG_HZ never expire
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 2 Sep 2024 23:06:41 +0000 (01:06 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 3 Sep 2024 16:18:12 +0000 (18:18 +0200)
commite0c47281723f301894c14e6f5cd5884fdfb813f9
treecb28f37d26ec23bba401ead04966db447ee26ca6
parentc362646b6fc15009219020c443f5256190be6436
netfilter: nf_tables: elements with timeout below CONFIG_HZ never expire

Element timeout that is below CONFIG_HZ never expires because the
timeout extension is not allocated given that nf_msecs_to_jiffies64()
returns 0. Set timeout to the minimum value to honor timeout.

Fixes: 8e1102d5a159 ("netfilter: nf_tables: support timeouts larger than 23 days")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c