diff options
author | 2025-08-11 12:26:10 +0200 | |
---|---|---|
committer | 2025-08-13 08:34:32 +0200 | |
commit | 30c1d25b9870d551be42535067d5481668b5e6f3 (patch) | |
tree | 12ebdf5c7266b0d6f1176632c41512fcd0eb5bf0 /tools/perf/scripts/python | |
parent | selftests: tls: test TCP stealing data from under the TLS socket (diff) | |
download | wireguard-linux-30c1d25b9870d551be42535067d5481668b5e6f3.tar.xz wireguard-linux-30c1d25b9870d551be42535067d5481668b5e6f3.zip |
netfilter: nft_set_pipapo: fix null deref for empty set
Blamed commit broke the check for a null scratch map:
- if (unlikely(!m || !*raw_cpu_ptr(m->scratch)))
+ if (unlikely(!raw_cpu_ptr(m->scratch)))
This should have been "if (!*raw_ ...)".
Use the pattern of the avx2 version which is more readable.
This can only be reproduced if avx2 support isn't available.
Fixes: d8d871a35ca9 ("netfilter: nft_set_pipapo: merge pipapo_get/lookup")
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions