Skip to content
Commit 7eba28f1 authored by Jozsef Kadlecsik's avatar Jozsef Kadlecsik Committed by Paul Gortmaker
Browse files

netfilter: ipset: Fix forceadd evaluation path



commit 8af1c6fb upstream.

When the forceadd option is enabled, the hash:* types should find and replace
the first entry in the bucket with the new one if there are no reuseable
(deleted or timed out) entries. However, the position index was just not set
to zero and remained the invalid -1 if there were no reuseable entries.

Reported-by: default avatar <syzbot+6a86565c74ebe30aea18@syzkaller.appspotmail.com>
Fixes: 23c42a40 ("netfilter: ipset: Introduction of new commands and protocol version 7")
Signed-off-by: default avatarJozsef Kadlecsik <kadlec@netfilter.org>
Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
parent d0446c22
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment