diff options
| author | Eduard Zingerman <[email protected]> | 2024-10-29 17:26:41 +0000 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2024-10-29 18:42:23 +0000 |
| commit | 1fb315892d8395cec2dae04b0cb5558731aefb37 (patch) | |
| tree | d3242f14cc4b2008b94dfd9153ebfcd3e5834b29 /tools/perf/util/python.c | |
| parent | bpf: Force checkpoint when jmp history is too long (diff) | |
| download | kernel-1fb315892d8395cec2dae04b0cb5558731aefb37.tar.gz kernel-1fb315892d8395cec2dae04b0cb5558731aefb37.zip | |
selftests/bpf: Test with a very short loop
The test added is a simplified reproducer from syzbot report [1].
If verifier does not insert checkpoint somewhere inside the loop,
verification of the program would take a very long time.
This would happen because mark_chain_precision() for register r7 would
constantly trace jump history of the loop back, processing many
iterations for each mark_chain_precision() call.
[1] https://lore.kernel.org/bpf/[email protected]/
Signed-off-by: Eduard Zingerman <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Acked-by: Daniel Borkmann <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/util/python.c')
0 files changed, 0 insertions, 0 deletions
