diff options
| author | Kyle Zeng <[email protected]> | 2023-09-05 22:04:09 +0000 |
|---|---|---|
| committer | Florian Westphal <[email protected]> | 2023-09-06 16:09:12 +0000 |
| commit | 050d91c03b28ca479df13dfb02bcd2c60dd6a878 (patch) | |
| tree | 63bd4a8adb4e199e0cd5ab761b5558ec65e91daa /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
| parent | netfilter: nft_set_rbtree: skip sync GC for new elements in this transaction (diff) | |
| download | kernel-050d91c03b28ca479df13dfb02bcd2c60dd6a878.tar.gz kernel-050d91c03b28ca479df13dfb02bcd2c60dd6a878.zip | |
netfilter: ipset: add the missing IP_SET_HASH_WITH_NET0 macro for ip_set_hash_netportnet.c
The missing IP_SET_HASH_WITH_NET0 macro in ip_set_hash_netportnet can
lead to the use of wrong `CIDR_POS(c)` for calculating array offsets,
which can lead to integer underflow. As a result, it leads to slab
out-of-bound access.
This patch adds back the IP_SET_HASH_WITH_NET0 macro to
ip_set_hash_netportnet to address the issue.
Fixes: 886503f34d63 ("netfilter: ipset: actually allow allowable CIDR 0 in hash:net,port,net")
Suggested-by: Jozsef Kadlecsik <[email protected]>
Signed-off-by: Kyle Zeng <[email protected]>
Acked-by: Jozsef Kadlecsik <[email protected]>
Signed-off-by: Florian Westphal <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions
