BPF List
 help / color / mirror / Atom feed
* [PATCH bpf-next 0/9] bpf: follow-up for scalar evolution series
@ 2026-10-11  6:21 Eduard Zingerman
  2026-10-11  6:21 ` [PATCH bpf-next 1/9] bpf: static subprogram arguments liveness should use BTF type info Eduard Zingerman
                   ` (8 more replies)
  0 siblings, 9 replies; 14+ messages in thread
From: Eduard Zingerman @ 2026-10-11  6:21 UTC (permalink / raw)
  To: bpf, ast; +Cc: andrii, daniel, kernel-team, yonghong.song, Eduard Zingerman

Assorted follow-ups for the series [1]:
- Use BTF type information for static subprograms when inferring live
  arguments at call sites.
- Handle ARG_SCALAR and ARG_PTR_TO_DYNPTR in
  bpf_global_subprog_stack_access_bytes().
- Fixes for other nits reported by bots for the series.

Fix for build errors on 32-bit platforms was shared previously: [2].

[1] https://lore.kernel.org/bpf/4b4912cf5f30a3c6866a09511c9b5d3a427cb471.camel@gmail.com/T/
    bpf: use scalar evolution to widen bounded loops
[2] https://lore.kernel.org/bpf/20261010205828.3366892-1-eddyz87@gmail.com/T/
    bpf: use div64_u64{,_rem}() in scev.c

Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
---
Eduard Zingerman (9):
      bpf: static subprogram arguments liveness should use BTF type info
      bpf: more precise stack liveness effects for global func params
      bpf: avoid duplicate declaration for BPF_SCEV_REGS_NUM
      bpf: reg_bounds_sync() comment fixup
      selftests/bpf: static subprogram argument side liveness tests
      selftests/bpf: stack effects of scalar/dynptr global subprog params
      selftests/bpf: harden __msg pattern for global_callee_btf_arg
      selftests/bpf: harden __msg patterns for step_movsx_bounds_on_line
      selftests/bpf: BPF_F_ANY_ALIGNMENT for byte_array_size_spanning()

 include/linux/bpf_verifier.h                       |  3 --
 kernel/bpf/btf.c                                   |  8 +--
 kernel/bpf/liveness.c                              | 15 +++---
 kernel/bpf/verifier.c                              | 34 ++++++++----
 .../testing/selftests/bpf/prog_tests/exceptions.c  |  2 +-
 .../bpf/progs/btf__compute_live_registers.c        | 21 ++++++++
 .../selftests/bpf/progs/compute_live_registers.c   | 32 ++++++++---
 .../selftests/bpf/progs/verifier_bounds_step.c     |  4 +-
 .../bpf/progs/verifier_btf_array_access.c          |  1 +
 .../selftests/bpf/progs/verifier_live_stack.c      | 62 +++++++++++++++++++++-
 10 files changed, 150 insertions(+), 32 deletions(-)
---
base-commit: 15b578b1715d9a318c804350d98af87c203672bc
change-id: 20261010-scev-minimal-v3-followups-c1e3f247f224

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2026-10-11 13:29 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-11  6:21 [PATCH bpf-next 0/9] bpf: follow-up for scalar evolution series Eduard Zingerman
2026-10-11  6:21 ` [PATCH bpf-next 1/9] bpf: static subprogram arguments liveness should use BTF type info Eduard Zingerman
2026-10-11  6:38   ` sashiko-bot
2026-10-11 13:29   ` Alexei Starovoitov
2026-10-11  6:21 ` [PATCH bpf-next 2/9] bpf: more precise stack liveness effects for global func params Eduard Zingerman
2026-10-11  6:21 ` [PATCH bpf-next 3/9] bpf: avoid duplicate declaration for BPF_SCEV_REGS_NUM Eduard Zingerman
2026-10-11  6:55   ` bot+bpf-ci
2026-10-11  6:21 ` [PATCH bpf-next 4/9] bpf: reg_bounds_sync() comment fixup Eduard Zingerman
2026-10-11  6:21 ` [PATCH bpf-next 5/9] selftests/bpf: static subprogram argument side liveness tests Eduard Zingerman
2026-10-11  7:17   ` bot+bpf-ci
2026-10-11  6:21 ` [PATCH bpf-next 6/9] selftests/bpf: stack effects of scalar/dynptr global subprog params Eduard Zingerman
2026-10-11  6:21 ` [PATCH bpf-next 7/9] selftests/bpf: harden __msg pattern for global_callee_btf_arg Eduard Zingerman
2026-10-11  6:21 ` [PATCH bpf-next 8/9] selftests/bpf: harden __msg patterns for step_movsx_bounds_on_line Eduard Zingerman
2026-10-11  6:21 ` [PATCH bpf-next 9/9] selftests/bpf: BPF_F_ANY_ALIGNMENT for byte_array_size_spanning() Eduard Zingerman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox