Commit 64ab09fc authored by Jozsef Kadlecsik's avatar Jozsef Kadlecsik Committed by sanglipeng
Browse files

netfilter: ipset: Limit the maximal range of consecutive elements to add/delete

stable inclusion
from stable-v5.10.157
commit e62e62ea912a49f7230620f1bdc20410b943a44c
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7MU59

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=e62e62ea912a49f7230620f1bdc20410b943a44c



--------------------------------

[ Upstream commit 5f7b51bf ]

The range size of consecutive elements were not limited. Thus one could
define a huge range which may result soft lockup errors due to the long
execution time. Now the range size is limited to 2^20 entries.

Reported-by: default avatarBrad Spengler <spender@grsecurity.net>
Signed-off-by: default avatarJozsef Kadlecsik <kadlec@netfilter.org>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
Stable-dep-of: c7aa1a76 ("netfilter: ipset: regression in ip_set_hash_ip.c")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent e7bcd74f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment