Skip to content

netfilter: nf_tables: fix nf_trace related crash

Florian Westphal netfilter-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2netfilter: nf_tables: fix crash when nf_trace is enablednet/netfilter/nf_tables_core.c+10 -110 replies
2/2selftests: netfilter: add test case for nf trace infrastructuretools/testing/selftests/netfilter/nft_trans_stress.sh+76 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH nf 0/2] netfilter: nf_tables: fix nf_trace related crash

The commit e34b9ed96ce3 ("netfilter: nf_tables: avoid skb access on nf_stolen") is broken, it adds read-access to a structure that might contain garbage.

Fix this and extend the existing nft_trans_stress.sh script to cover this.

Florian Westphal (2):
netfilter: nf_tables: fix crash when nf_trace is enabled
selftests: netfilter: add test case for nf trace infrastructure

 net/netfilter/nf_tables_core.c                | 21 +++--
 .../selftests/netfilter/nft_trans_stress.sh   | 78 ++++++++++++++++++-
 2 files changed, 86 insertions(+), 13 deletions(-)
Signature · 1 line
2.35.1