aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/test_autoload.c
diff options
context:
space:
mode:
authorEduard Zingerman <[email protected]>2023-11-21 04:06:52 +0200
committerAlexei Starovoitov <[email protected]>2023-11-20 18:33:35 -0800
commit87eb0152bcc102ecbda866978f4e54db5a3be1ef (patch)
tree25716ce657f2157c4a6fdf1dd0ecce6a1279f23b /tools/testing/selftests/bpf/progs/test_autoload.c
parent977bc146d4eb7070118d8a974919b33bb52732b4 (diff)
selftests/bpf: track string payload offset as scalar in strobemeta
This change prepares strobemeta for update in callbacks verification logic. To allow bpf_loop() verification converge when multiple callback iterations are considered: - track offset inside strobemeta_payload->payload directly as scalar value; - at each iteration make sure that remaining strobemeta_payload->payload capacity is sufficient for execution of read_{map,str}_var functions; - make sure that offset is tracked as unbound scalar between iterations, otherwise verifier won't be able infer that bpf_loop callback reaches identical states. Acked-by: Andrii Nakryiko <[email protected]> Signed-off-by: Eduard Zingerman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions