RE: [PATCH bpf 2/2] selftests/bpf: Add test coverage for reg_set_min_max handling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Daniel Borkmann wrote:
> Add a test case for the jmp32/k fix to ensure selftests have coverage.
> 
> Before fix:
> 
>   # ./vmtest.sh -- ./test_progs -t verifier_or_jmp32_k
>   [...]
>   ./test_progs -t verifier_or_jmp32_k
>   tester_init:PASS:tester_log_buf 0 nsec
>   process_subtest:PASS:obj_open_mem 0 nsec
>   process_subtest:PASS:specs_alloc 0 nsec
>   run_subtest:PASS:obj_open_mem 0 nsec
>   run_subtest:FAIL:unexpected_load_success unexpected success: 0
>   #492/1   verifier_or_jmp32_k/or_jmp32_k: bit ops + branch on unknown value:FAIL
>   #492     verifier_or_jmp32_k:FAIL
>   Summary: 0/0 PASSED, 0 SKIPPED, 1 FAILED
> 
> After fix:
> 
>   # ./vmtest.sh -- ./test_progs -t verifier_or_jmp32_k
>   [...]
>   ./test_progs -t verifier_or_jmp32_k
>   #492/1   verifier_or_jmp32_k/or_jmp32_k: bit ops + branch on unknown value:OK
>   #492     verifier_or_jmp32_k:OK
>   Summary: 1/1 PASSED, 0 SKIPPED, 0 FAILED
> 
> Signed-off-by: Daniel Borkmann <daniel@xxxxxxxxxxxxx>
> ---

Acked-by: John Fastabend <john.fastabend@xxxxxxxxx>




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux