OSDN Git Service

selftests/bpf: Test for checking return code for the extended prog
authorUdip Pant <udippant@fb.com>
Tue, 25 Aug 2020 23:20:02 +0000 (16:20 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 26 Aug 2020 19:47:56 +0000 (12:47 -0700)
commit50d19736aff497a4c25ec7e36375195bfd8570cd
treee47a69ea55e1b60a83aaea5c1ea8907efdccf974
parent6dc03dc71387e1dc65cf14efb49e5cf7062a2d46
selftests/bpf: Test for checking return code for the extended prog

This adds test to enforce same check for the return code for the extended prog
as it is enforced for the target program. It asserts failure for a
return code, which is permitted without the patch in this series, while
it is restricted after the application of this patch.

Signed-off-by: Udip Pant <udippant@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200825232003.2877030-4-udippant@fb.com
tools/testing/selftests/bpf/prog_tests/fexit_bpf2bpf.c
tools/testing/selftests/bpf/progs/freplace_connect_v4_prog.c [new file with mode: 0644]