Skip to content

A number of ASAN-identified fixes

Phil Sutter netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7tests: iptables-test: Increase non-fast mode strictnessextensions/libxt_NFLOG.t extensions/libxt_TCPMSS.t iptables-test.py+7 -30 replies
2/7nft: ruleparse: Add missing braces around ternaryiptables/nft-ruleparse.c+1 -10 replies
3/7libxtables: Fix memleak of matches' udatalibxtables/xtables.c+4 -00 replies
4/7xtables-eb: Eliminate 'opts' defineiptables/xtables-eb.c+7 -30 replies
5/7xshared: Fix for memleak in option merging with ebtablesiptables/xshared.c iptables/xtables-eb.c libxtables/xtables.c+24 -190 replies
6/7xshared: Introduce xtables_clear_args()iptables/ip6tables.c iptables/iptables.c iptables/xshared.c +3 more+14 -230 replies
7/7ebtables: Fix for memleak with change counters commandiptables/nft-cmd.c+1 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [iptables PATCH 0/7] A number of ASAN-identified fixes

Many thanks to Pablo for pointing me at ASAN reporting issues with the code valgrind had missed so far. This series fixes all reports so make check passes also when compiled with -fsanitize=address.

Patch 1 is not quite related but rather a shortcoming in iptables-test.py I decided to fix while being at it.

The remaining patches are actual fixes apart from patch 4 which pulls out unrelated (but sensible) changes from patch 5.

Phil Sutter (7):
tests: iptables-test: Increase non-fast mode strictness
nft: ruleparse: Add missing braces around ternary
libxtables: Fix memleak of matches' udata
xtables-eb: Eliminate 'opts' define
xshared: Fix for memleak in option merging with ebtables
xshared: Introduce xtables_clear_args()
ebtables: Fix for memleak with change counters command

 extensions/libxt_NFLOG.t     |  2 +-
 extensions/libxt_TCPMSS.t    |  2 +-
 iptables-test.py             |  6 +++++-
 iptables/ip6tables.c         |  5 +----
 iptables/iptables.c          |  5 +----
 iptables/nft-cmd.c           |  1 +
 iptables/nft-ruleparse.c     |  2 +-
 iptables/xshared.c           | 20 +++++++++++++++++---
 iptables/xshared.h           |  2 ++
 iptables/xtables-eb.c        | 29 +++++++++++++++++------------
 iptables/xtables-translate.c | 12 +-----------
 iptables/xtables.c           |  5 +----
 libxtables/xtables.c         | 10 ++++++----
 13 files changed, 55 insertions(+), 46 deletions(-)
Signature · 1 line
2.43.0