aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/autoload.c
diff options
context:
space:
mode:
authorYonghong Song <[email protected]>2024-08-12 14:48:52 -0700
committerAlexei Starovoitov <[email protected]>2024-08-12 18:15:33 -0700
commit662c3e2db00f92e50c26e9dc4fe47c52223d9982 (patch)
treea60298d4cfa5f0ab4f10e081fc2fb31f28655b20 /tools/testing/selftests/bpf/prog_tests/autoload.c
parentbed2eb964c70b780fb55925892a74f26cb590b25 (diff)
selftests/bpf: Add a test to verify previous stacksafe() fix
A selftest is added such that without the previous patch, a crash can happen. With the previous patch, the test can run successfully. The new test is written in a way which mimics original crash case: main_prog static_prog_1 static_prog_2 where static_prog_1 has different paths to static_prog_2 and some path has stack allocated and some other path does not. A stacksafe() checking in static_prog_2() triggered the crash. Signed-off-by: Yonghong Song <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions