diff options
| author | Kumar Kartikeya Dwivedi <memxor@gmail.com> | 2026-09-19 03:42:11 +0200 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2026-09-19 05:25:14 +0000 |
| commit | 070587848985efcfcd45104c5266ba76a1165f55 (patch) | |
| tree | 88eb480ccaa8ac9848d6ff93ab316544e71525fc /tools/perf/scripts/python | |
| parent | 8901cee9316d53a5a97398f026c2d59a3043159d (diff) | |
| download | linux-next-070587848985efcfcd45104c5266ba76a1165f55.tar.gz linux-next-070587848985efcfcd45104c5266ba76a1165f55.zip | |
selftests/bpf: Cover frame changes in bounded loops
Add a finite loop whose progress is represented only by changing the
frame number of a stack pointer. The loop first reads zero from the
caller's stack, switches to the same offset in the callee's stack, and
exits after reading one on its next iteration.
Force frequent checkpoints so the test exercises infinite-loop detection,
and check that the program returns one when run.
Without the frameno comparison in regs_exact(), the program is rejected
with an "infinite loop detected" diagnostic instead of loading
successfully.
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Tested-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://patch.msgid.link/20260919014213.1840880-3-memxor@gmail.com
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
