]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf4ec70167a14815c4ea0e86895477f7faea90776
treee47a69ea55e1b60a83aaea5c1ea8907efdccf974
parent304c2804897ed27c237152d5d9a723882f073e64
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]