]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nft_last: copy content when cloning expression
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 28 Feb 2023 16:09:03 +0000 (17:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Mar 2023 07:50:23 +0000 (08:50 +0100)
commit8204e0c7f3c2eb6bf363d1ab98a385e6a7fef31b
tree9cff0e26c0872f51c33be5345ee0f155e76af2cf
parent8c75e902cac57726a847de16dff0d4213c40fdef
netfilter: nft_last: copy content when cloning expression

[ Upstream commit dafd11ef0024bc86de9f1269c02999d3deadf207 ]

If the ruleset contains last timestamps, restore them accordingly.
Otherwise, listing after restoration shows never used items.

Fixes: c3ddef9edc13 ("netfilter: nft_last: move stateful fields out of expression data")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/netfilter/nft_last.c