All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 bpf-next 0/2] Range tracking for BPF_NEG
@ 2025-06-24 22:00 Song Liu
  2025-06-24 22:00 ` [PATCH v2 bpf-next 1/2] bpf: Add range " Song Liu
  2025-06-24 22:00 ` [PATCH v2 bpf-next 2/2] selftests/bpf: Add tests for BPF_NEG range tracking logic Song Liu
  0 siblings, 2 replies; 8+ messages in thread
From: Song Liu @ 2025-06-24 22:00 UTC (permalink / raw)
  To: bpf; +Cc: kernel-team, andrii, eddyz87, ast, daniel, martin.lau, Song Liu

Add range tracking for BPF_NEG. Please see commit log of 1/2 for more
details.

---

Changes v1 => v2:
1. Split new selftests to a separate patch. (Eduard)
2. Reset reg id on BPF_NEG. (Eduard)
3. Use env->fake_reg instead of a bpf_reg_state on the stack. (Eduard)
4. Add __msg for passing selftests.

v1: https://lore.kernel.org/bpf/20250624172320.2923031-1-song@kernel.org/

Song Liu (2):
  bpf: Add range tracking for BPF_NEG
  selftests/bpf: Add tests for BPF_NEG range tracking logic

 include/linux/tnum.h                          |  2 +
 kernel/bpf/tnum.c                             |  5 ++
 kernel/bpf/verifier.c                         | 17 ++++-
 .../bpf/progs/verifier_bounds_deduction.c     | 17 -----
 .../selftests/bpf/progs/verifier_precision.c  | 70 +++++++++++++++++++
 .../bpf/progs/verifier_value_ptr_arith.c      |  8 +--
 6 files changed, 95 insertions(+), 24 deletions(-)

--
2.47.1

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

end of thread, other threads:[~2025-06-24 22:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-24 22:00 [PATCH v2 bpf-next 0/2] Range tracking for BPF_NEG Song Liu
2025-06-24 22:00 ` [PATCH v2 bpf-next 1/2] bpf: Add range " Song Liu
2025-06-24 22:14   ` Eduard Zingerman
2025-06-24 22:43     ` Song Liu
2025-06-24 22:00 ` [PATCH v2 bpf-next 2/2] selftests/bpf: Add tests for BPF_NEG range tracking logic Song Liu
2025-06-24 22:18   ` Eduard Zingerman
2025-06-24 22:49     ` Song Liu
2025-06-24 22:51       ` Eduard Zingerman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.