]> git.ipfire.org Git - thirdparty/linux.git/commit
selftests/bpf: Bump path and command buffer sizes in bpftool_helpers.c
authorIhor Solodrai <ihor.solodrai@linux.dev>
Thu, 12 Mar 2026 23:48:20 +0000 (16:48 -0700)
committerAndrii Nakryiko <andrii@kernel.org>
Mon, 16 Mar 2026 21:14:57 +0000 (14:14 -0700)
commit7e2f40ef0a75f5fac3fbe8ab192c15ca6523e0f4
treee7ee4ef5fc0b9ec0e58da2d2ed679c27b1f41398
parentc73a24436698ade1b6a0742e8bcfa04c9ef8fad9
selftests/bpf: Bump path and command buffer sizes in bpftool_helpers.c

The path length of 64 is way too low in some envirnoments, which leads
to subtle failures due to truncation [1].

Replace BPFTOOL_PATH_MAX_LEN with PATH_MAX, and set
BPFTOOL_FULL_CMD_MAX_LEN to double of PATH_MAX.

[1] https://github.com/libbpf/libbpf/actions/runs/22980753016/job/66719800527

Signed-off-by: Ihor Solodrai <ihor.solodrai@linux.dev>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20260312234820.439720-1-ihor.solodrai@linux.dev
tools/testing/selftests/bpf/bpftool_helpers.c