diff options
author | Jozsef Kadlecsik <kadlec@netfilter.org> | 2022-12-30 15:24:37 +0300 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2023-01-02 17:09:02 +0300 |
commit | a31d47be64b9b74f8cfedffe03e0a8a1f9e51f23 (patch) | |
tree | 59bc7a4da271a5f643a533b205592eba99fba58b /include/linux/netfilter/ipset/ip_set.h | |
parent | 123b99619cca94bdca0bf7bde9abe28f0a0dfe06 (diff) | |
download | linux-a31d47be64b9b74f8cfedffe03e0a8a1f9e51f23.tar.xz |
netfilter: ipset: fix hash:net,port,net hang with /0 subnet
The hash:net,port,net set type supports /0 subnets. However, the patch
commit 5f7b51bf09baca8e titled "netfilter: ipset: Limit the maximal range
of consecutive elements to add/delete" did not take into account it and
resulted in an endless loop. The bug is actually older but the patch
5f7b51bf09baca8e brings it out earlier.
Handle /0 subnets properly in hash:net,port,net set types.
Fixes: 5f7b51bf09ba ("netfilter: ipset: Limit the maximal range of consecutive elements to add/delete")
Reported-by: Марк Коренберг <socketpair@gmail.com>
Signed-off-by: Jozsef Kadlecsik <kadlec@netfilter.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/linux/netfilter/ipset/ip_set.h')
0 files changed, 0 insertions, 0 deletions