aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/netfilter/nft_trans_stress.sh
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2022-08-04 19:26:27 +0200
committerJakub Kicinski <kuba@kernel.org>2022-08-05 18:50:14 -0700
commit399a14ec7993d605740de7b2cd5c0ce8407d12ed (patch)
tree5dc2ddb6abb182b1ee7fc14458ddf3387f7d6fbf /tools/testing/selftests/netfilter/nft_trans_stress.sh
parentselftests: add few test cases for tap driver (diff)
downloadlinux-dev-399a14ec7993d605740de7b2cd5c0ce8407d12ed.tar.xz
linux-dev-399a14ec7993d605740de7b2cd5c0ce8407d12ed.zip
netfilter: nf_tables: fix crash when nf_trace is enabled
do not access info->pkt when info->trace is not 1. nft_traceinfo is not initialized, except when tracing is enabled. The 'nft_trace_enabled' static key cannot be used for this, we must always check info->trace first. Pass nft_pktinfo directly to avoid this. Fixes: e34b9ed96ce3 ("netfilter: nf_tables: avoid skb access on nf_stolen") Reported-by: Hangbin Liu <liuhangbin@gmail.com> Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions