From c9f934ca446de5041ce6f19e4ee6a0c74b120186 Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Fri, 15 Dec 2023 13:04:22 +0100 Subject: tcpopt: don't create exthdr expression without datatype The reproducer crashes during concat evaluation, as the exthdr expression lacks a datatype. This should never happen, i->dtype must be set. In this case the culprit is tcp option parsing, it will wire up a non-existent template, because the "nop" option has no length field (1 byte only). Signed-off-by: Florian Westphal --- tests/shell/testcases/bogons/nft-f/tcp_option_without_template | 1 + 1 file changed, 1 insertion(+) create mode 100644 tests/shell/testcases/bogons/nft-f/tcp_option_without_template (limited to 'tests/shell/testcases/bogons') diff --git a/tests/shell/testcases/bogons/nft-f/tcp_option_without_template b/tests/shell/testcases/bogons/nft-f/tcp_option_without_template new file mode 100644 index 00000000..fd732fd3 --- /dev/null +++ b/tests/shell/testcases/bogons/nft-f/tcp_option_without_template @@ -0,0 +1 @@ +add rule f i tcp option nop length . @ih,32,3 1 -- cgit v1.2.3