Skip to content

nft tunnel mode parser/eval fixes

Florian Westphal netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4evaluate: tunnel: don't assume src is setsrc/evaluate.c tests/shell/testcases/bogons/nft-f/empty_geneve_definition_crash+9 -41 reply
2/4src: tunnel src/dst must be a symbolic expressionsrc/evaluate.c src/parser_bison.y tests/shell/testcases/bogons/nft-f/tunnel_with_anon_set_assert +1 more+35 -61 reply
3/4src: parser_bison: prevent multiple ip daddr/saddr definitionssrc/parser_bison.y tests/shell/testcases/bogons/nft-f/tunnel_with_anon_set_assert+18 -01 reply
4/4evaluate: reject tunnel section if another one is already presentsrc/parser_bison.y tests/shell/testcases/bogons/nft-f/tunnel_in_tunnel_crash+42 -61 reply

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchFernando Fernandez Mancera
1/4R-b
2/4R-b
3/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH nft 0/4] nft tunnel mode parser/eval fixes

This series addresses a few bugs found with afl fuzzer, see individual patches for details.

Florian Westphal (4):
evaluate: tunnel: don't assume src is set
src: tunnel src/dst must be a symbolic expression
src: parser_bison: prevent multiple ip daddr/saddr definitions
evaluate: reject tunnel section if another one is already present

 src/evaluate.c                                | 29 +++++++--
 src/parser_bison.y                            | 63 ++++++++++++++++---
 .../nft-f/empty_geneve_definition_crash       |  4 ++
 .../bogons/nft-f/tunnel_in_tunnel_crash       | 10 +++
 .../bogons/nft-f/tunnel_with_anon_set_assert  |  9 +++
 .../bogons/nft-f/tunnel_with_garbage_dst      |  5 ++
 6 files changed, 104 insertions(+), 16 deletions(-)
 create mode 100644 tests/shell/testcases/bogons/nft-f/empty_geneve_definition_crash
 create mode 100644 tests/shell/testcases/bogons/nft-f/tunnel_in_tunnel_crash
 create mode 100644 tests/shell/testcases/bogons/nft-f/tunnel_with_anon_set_assert
 create mode 100644 tests/shell/testcases/bogons/nft-f/tunnel_with_garbage_dst
Signature · 1 line
2.51.0