netfilter: nft_set_hash: try later when GC hits EAGAIN on iteration
authorPablo Neira Ayuso <pablo@netfilter.org>
Thu, 7 Sep 2023 23:39:43 +0000 (01:39 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 8 Sep 2023 01:26:58 +0000 (03:26 +0200)
commitb079155faae94e9b3ab9337e82100a914ebb4e8d
tree217b5376995673b4a77b1a9778cf8aac6b7c9556
parent6d365eabce3c018a80f6e0379b17df2abb17405e
netfilter: nft_set_hash: try later when GC hits EAGAIN on iteration

Skip GC run if iterator rewinds to the beginning with EAGAIN, otherwise GC
might collect the same element more than once.

Fixes: f6c383b8c31a ("netfilter: nf_tables: adapt set backend to use GC transaction API")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_set_hash.c