Message ID | 20230421174234.2391278-1-eddyz87@gmail.com (mailing list archive) |
---|---|
Headers | show |
Series | Second set of verifier/*.c migrated to inline assembly | expand |
Hello: This series was applied to bpf/bpf-next.git (master) by Alexei Starovoitov <ast@kernel.org>: On Fri, 21 Apr 2023 20:42:10 +0300 you wrote: > This is a follow up for RFC [1]. It migrates a second batch of 23 > verifier/*.c tests to inline assembly and use of ./test_progs for > actual execution. Link to the first batch is [2]. > > The migration is done by a python script (see [3]) with minimal manual > adjustments. > > [...] Here is the summary with links: - [bpf-next,01/24] selftests/bpf: Add notion of auxiliary programs for test_loader https://git.kernel.org/bpf/bpf-next/c/63bb645b9da3 - [bpf-next,02/24] selftests/bpf: verifier/bounds converted to inline assembly https://git.kernel.org/bpf/bpf-next/c/c92336559ac0 - [bpf-next,03/24] selftests/bpf: verifier/bpf_get_stack converted to inline assembly https://git.kernel.org/bpf/bpf-next/c/965a3f913e72 - [bpf-next,04/24] selftests/bpf: verifier/btf_ctx_access converted to inline assembly https://git.kernel.org/bpf/bpf-next/c/37467c79e16a - [bpf-next,05/24] selftests/bpf: verifier/ctx converted to inline assembly https://git.kernel.org/bpf/bpf-next/c/fcd36964f22b - [bpf-next,06/24] selftests/bpf: verifier/d_path converted to inline assembly https://git.kernel.org/bpf/bpf-next/c/608028024384 - [bpf-next,07/24] selftests/bpf: verifier/direct_packet_access converted to inline assembly https://git.kernel.org/bpf/bpf-next/c/0a372c9c0812 - [bpf-next,08/24] selftests/bpf: verifier/jeq_infer_not_null converted to inline assembly https://git.kernel.org/bpf/bpf-next/c/a5828e3154d1 - [bpf-next,09/24] selftests/bpf: verifier/loops1 converted to inline assembly https://git.kernel.org/bpf/bpf-next/c/a6fc14dc5e8d - [bpf-next,10/24] selftests/bpf: verifier/lwt converted to inline assembly https://git.kernel.org/bpf/bpf-next/c/b427ca576f83 - [bpf-next,11/24] selftests/bpf: verifier/map_in_map converted to inline assembly https://git.kernel.org/bpf/bpf-next/c/4a400ef9ba41 - [bpf-next,12/24] selftests/bpf: verifier/map_ptr_mixing converted to inline assembly https://git.kernel.org/bpf/bpf-next/c/aee1779f0dec - [bpf-next,13/24] selftests/bpf: verifier/precise converted to inline assembly (no matching commit) - [bpf-next,14/24] selftests/bpf: verifier/prevent_map_lookup converted to inline assembly (no matching commit) - [bpf-next,15/24] selftests/bpf: verifier/ref_tracking converted to inline assembly https://git.kernel.org/bpf/bpf-next/c/8be632795996 - [bpf-next,16/24] selftests/bpf: verifier/regalloc converted to inline assembly https://git.kernel.org/bpf/bpf-next/c/16a42573c253 - [bpf-next,17/24] selftests/bpf: verifier/runtime_jit converted to inline assembly https://git.kernel.org/bpf/bpf-next/c/65222842ca04 - [bpf-next,18/24] selftests/bpf: verifier/search_pruning converted to inline assembly https://git.kernel.org/bpf/bpf-next/c/034d9ad25db3 - [bpf-next,19/24] selftests/bpf: verifier/sock converted to inline assembly https://git.kernel.org/bpf/bpf-next/c/426fc0e3fce2 - [bpf-next,20/24] selftests/bpf: verifier/spin_lock converted to inline assembly https://git.kernel.org/bpf/bpf-next/c/f323a81806bd - [bpf-next,21/24] selftests/bpf: verifier/subreg converted to inline assembly https://git.kernel.org/bpf/bpf-next/c/81d1d6dd4037 - [bpf-next,22/24] selftests/bpf: verifier/unpriv converted to inline assembly https://git.kernel.org/bpf/bpf-next/c/82887c2568e4 - [bpf-next,23/24] selftests/bpf: verifier/value_illegal_alu converted to inline assembly https://git.kernel.org/bpf/bpf-next/c/efe25a330b10 - [bpf-next,24/24] selftests/bpf: verifier/value_ptr_arith converted to inline assembly https://git.kernel.org/bpf/bpf-next/c/4db10a8243df You are awesome, thank you!
On Fri, Apr 21, 2023 at 10:42 AM Eduard Zingerman <eddyz87@gmail.com> wrote: > > This is a follow up for RFC [1]. It migrates a second batch of 23 > verifier/*.c tests to inline assembly and use of ./test_progs for > actual execution. Link to the first batch is [2]. > > The migration is done by a python script (see [3]) with minimal manual > adjustments. All makes sense to me. Took 22 out of 24 patches. The 13 and 14 had conflicts. Also there is a precision fix in bpf tree. So we're going to wait for bpf/bpf-next to converge during the merge window next week, then add another precision test as asm and then regenerate conversion of the precision tests. Not sure why 14 was conflicting.
On Fri, 2023-04-21 at 19:40 +0000, patchwork-bot+netdevbpf@kernel.org wrote: > Hello: > > This series was applied to bpf/bpf-next.git (master) > by Alexei Starovoitov <ast@kernel.org>: Hi Alexei, Thank you for merging these changes! I've noticed that email from the bot does not list commit hashes for patches #13,14 (precise, prevent_map_lookup). And these commits are indeed not in git [1]. Is this intentional? Thanks, Eduard [1] https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git/log/ > > On Fri, 21 Apr 2023 20:42:10 +0300 you wrote: > > This is a follow up for RFC [1]. It migrates a second batch of 23 > > verifier/*.c tests to inline assembly and use of ./test_progs for > > actual execution. Link to the first batch is [2]. > > > > The migration is done by a python script (see [3]) with minimal manual > > adjustments. > > > > [...] > > Here is the summary with links: > - [bpf-next,01/24] selftests/bpf: Add notion of auxiliary programs for test_loader > https://git.kernel.org/bpf/bpf-next/c/63bb645b9da3 > - [bpf-next,02/24] selftests/bpf: verifier/bounds converted to inline assembly > https://git.kernel.org/bpf/bpf-next/c/c92336559ac0 > - [bpf-next,03/24] selftests/bpf: verifier/bpf_get_stack converted to inline assembly > https://git.kernel.org/bpf/bpf-next/c/965a3f913e72 > - [bpf-next,04/24] selftests/bpf: verifier/btf_ctx_access converted to inline assembly > https://git.kernel.org/bpf/bpf-next/c/37467c79e16a > - [bpf-next,05/24] selftests/bpf: verifier/ctx converted to inline assembly > https://git.kernel.org/bpf/bpf-next/c/fcd36964f22b > - [bpf-next,06/24] selftests/bpf: verifier/d_path converted to inline assembly > https://git.kernel.org/bpf/bpf-next/c/608028024384 > - [bpf-next,07/24] selftests/bpf: verifier/direct_packet_access converted to inline assembly > https://git.kernel.org/bpf/bpf-next/c/0a372c9c0812 > - [bpf-next,08/24] selftests/bpf: verifier/jeq_infer_not_null converted to inline assembly > https://git.kernel.org/bpf/bpf-next/c/a5828e3154d1 > - [bpf-next,09/24] selftests/bpf: verifier/loops1 converted to inline assembly > https://git.kernel.org/bpf/bpf-next/c/a6fc14dc5e8d > - [bpf-next,10/24] selftests/bpf: verifier/lwt converted to inline assembly > https://git.kernel.org/bpf/bpf-next/c/b427ca576f83 > - [bpf-next,11/24] selftests/bpf: verifier/map_in_map converted to inline assembly > https://git.kernel.org/bpf/bpf-next/c/4a400ef9ba41 > - [bpf-next,12/24] selftests/bpf: verifier/map_ptr_mixing converted to inline assembly > https://git.kernel.org/bpf/bpf-next/c/aee1779f0dec > - [bpf-next,13/24] selftests/bpf: verifier/precise converted to inline assembly > (no matching commit) > - [bpf-next,14/24] selftests/bpf: verifier/prevent_map_lookup converted to inline assembly > (no matching commit) > - [bpf-next,15/24] selftests/bpf: verifier/ref_tracking converted to inline assembly > https://git.kernel.org/bpf/bpf-next/c/8be632795996 > - [bpf-next,16/24] selftests/bpf: verifier/regalloc converted to inline assembly > https://git.kernel.org/bpf/bpf-next/c/16a42573c253 > - [bpf-next,17/24] selftests/bpf: verifier/runtime_jit converted to inline assembly > https://git.kernel.org/bpf/bpf-next/c/65222842ca04 > - [bpf-next,18/24] selftests/bpf: verifier/search_pruning converted to inline assembly > https://git.kernel.org/bpf/bpf-next/c/034d9ad25db3 > - [bpf-next,19/24] selftests/bpf: verifier/sock converted to inline assembly > https://git.kernel.org/bpf/bpf-next/c/426fc0e3fce2 > - [bpf-next,20/24] selftests/bpf: verifier/spin_lock converted to inline assembly > https://git.kernel.org/bpf/bpf-next/c/f323a81806bd > - [bpf-next,21/24] selftests/bpf: verifier/subreg converted to inline assembly > https://git.kernel.org/bpf/bpf-next/c/81d1d6dd4037 > - [bpf-next,22/24] selftests/bpf: verifier/unpriv converted to inline assembly > https://git.kernel.org/bpf/bpf-next/c/82887c2568e4 > - [bpf-next,23/24] selftests/bpf: verifier/value_illegal_alu converted to inline assembly > https://git.kernel.org/bpf/bpf-next/c/efe25a330b10 > - [bpf-next,24/24] selftests/bpf: verifier/value_ptr_arith converted to inline assembly > https://git.kernel.org/bpf/bpf-next/c/4db10a8243df > > You are awesome, thank you!
On Fri, Apr 21, 2023 at 12:49 PM Eduard Zingerman <eddyz87@gmail.com> wrote: > > On Fri, 2023-04-21 at 19:40 +0000, patchwork-bot+netdevbpf@kernel.org wrote: > > Hello: > > > > This series was applied to bpf/bpf-next.git (master) > > by Alexei Starovoitov <ast@kernel.org>: > > Hi Alexei, > > Thank you for merging these changes! > > I've noticed that email from the bot does not list > commit hashes for patches #13,14 (precise, prevent_map_lookup). > And these commits are indeed not in git [1]. > Is this intentional? Yes. See other reply.
On Fri, 2023-04-21 at 12:48 -0700, Alexei Starovoitov wrote: > On Fri, Apr 21, 2023 at 10:42 AM Eduard Zingerman <eddyz87@gmail.com> wrote: > > > > This is a follow up for RFC [1]. It migrates a second batch of 23 > > verifier/*.c tests to inline assembly and use of ./test_progs for > > actual execution. Link to the first batch is [2]. > > > > The migration is done by a python script (see [3]) with minimal manual > > adjustments. > > All makes sense to me. > Took 22 out of 24 patches. > The 13 and 14 had conflicts. > Also there is a precision fix in bpf tree. > So we're going to wait for bpf/bpf-next to converge during > the merge window next week, then add another precision test as asm > and then regenerate conversion of the precision tests. > Not sure why 14 was conflicting. Oh, understood, thank you. The #14 does not apply because it also starts from 'p', so the hunk below does not match: --- tools/testing/selftests/bpf/prog_tests/verifier.c +++ tools/testing/selftests/bpf/prog_tests/verifier.c @@ -41,6 +41,7 @@ #include "verifier_masking.skel.h" #include "verifier_meta_access.skel.h" #include "verifier_precise.skel.h" +#include "verifier_prevent_map_lookup.skel.h" #include "verifier_raw_stack.skel.h" #include "verifier_raw_tp_writable.skel.h" #include "verifier_reg_equal.skel.h" I will resend it shortly.