Skip to content

Commit af8a512

Browse files
Gbell26Alexei Starovoitov
authored andcommitted
selftests/bpf: test_verifier verbose log overflows
Tests: - 458/p ld_dw: xor semi-random 64-bit imms, test 5 - 501/p scale: scale test 1 - 502/p scale: scale test 2 fail in verbose mode due to bpf_vlog[] overflowing. These tests generate large verifier logs that exceed the current buffer size, causing them to fail to load. Increase the size of the bpf_vlog[] buffer to accommodate larger logs and prevent false failures during test runs with verbose output. Signed-off-by: Gregory Bell <[email protected]> Link: https://lore.kernel.org/r/e49267100f07f099a5877a3a5fc797b702bbaf0c.1747058195.git.grbell@redhat.com Signed-off-by: Alexei Starovoitov <[email protected]>
1 parent c5bcc8c commit af8a512

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/bpf/test_verifier.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@ static __u32 btf_raw_types[] = {
734734
BTF_MEMBER_ENC(71, 13, 128), /* struct prog_test_member __kptr *ptr; */
735735
};
736736

737-
static char bpf_vlog[UINT_MAX >> 8];
737+
static char bpf_vlog[UINT_MAX >> 5];
738738

739739
static int load_btf_spec(__u32 *types, int types_len,
740740
const char *strings, int strings_len)

0 commit comments

Comments
 (0)