aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/bpf_doc.py
diff options
context:
space:
mode:
authorEduard Zingerman <[email protected]>2023-04-07 15:41:25 +0000
committerAndrii Nakryiko <[email protected]>2023-04-07 22:30:31 +0000
commit5855b0999de4213bf51d856a345c4b53f2304e33 (patch)
tree5f9619d7cfcad0a3db298d7851e4a4920d0926bd /scripts/bpf_doc.py
parentbpftool: Set program type only if it differs from the desired one (diff)
downloadkernel-5855b0999de4213bf51d856a345c4b53f2304e33.tar.gz
kernel-5855b0999de4213bf51d856a345c4b53f2304e33.zip
selftests/bpf: Prevent infinite loop in veristat when base file is too short
The following example forces veristat to loop indefinitely: $ cat two-ok file_name,prog_name,verdict,total_states file-a,a,success,12 file-b,b,success,67 $ cat add-failure file_name,prog_name,verdict,total_states file-a,a,success,12 file-b,b,success,67 file-b,c,failure,32 $ veristat -C two-ok add-failure <does not return> The loop is caused by handle_comparison_mode() not checking if `base` variable points to `fallback_stats` prior advancing joined results using `base`. Signed-off-by: Eduard Zingerman <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions