From 7202c636428a04e43a4d058cc306dd255c7e0394 Mon Sep 17 00:00:00 2001 From: Alan Jowett Date: Mon, 16 Dec 2024 17:32:33 -0800 Subject: [PATCH] Add expect failed test for loading BPF program with global variables Signed-off-by: Alan Jowett --- ebpf-samples | 2 +- src/test/test_verify.cpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ebpf-samples b/ebpf-samples index 69a84e10..b1ec1a2c 160000 --- a/ebpf-samples +++ b/ebpf-samples @@ -1 +1 @@ -Subproject commit 69a84e10ca1d838d8c0f948b5459bce4965ab7af +Subproject commit b1ec1a2c18c4c0dbb0e59994af71e6882596e604 diff --git a/src/test/test_verify.cpp b/src/test/test_verify.cpp index d0b6787a..50d428b9 100644 --- a/src/test/test_verify.cpp +++ b/src/test/test_verify.cpp @@ -424,6 +424,9 @@ TEST_SECTION("falco", "probe.o", "raw_tracepoint/signal_deliver") TEST_SECTION_REJECT_IF_STRICT("build", "mapoverflow.o", ".text") TEST_SECTION_REJECT_IF_STRICT("build", "mapunderflow.o", ".text") +// Test uses global variables, which are not supported yet by the verifier. +TEST_SECTION_FAIL("build", "global_variable.o", ".text") + /* * These programs contain "call -1" instruction and cannot be verified: TEST_SECTION("raw_tracepoint/filler/sys_access_e")