Linux Kernel Selftest development
 help / color / mirror / Atom feed
* [PATCH bpf-next v2 0/2] bpf: Skip bounds adjustment for conditional jumps on same register
@ 2025-10-25  5:30 KaFai Wan
  2025-10-25  5:30 ` [PATCH bpf-next v2 1/2] " KaFai Wan
  2025-10-25  5:30 ` [PATCH bpf-next v2 2/2] selftests/bpf: Add test for BPF_JGT " KaFai Wan
  0 siblings, 2 replies; 7+ messages in thread
From: KaFai Wan @ 2025-10-25  5:30 UTC (permalink / raw)
  To: ast, daniel, john.fastabend, andrii, martin.lau, eddyz87, song,
	yonghong.song, kpsingh, sdf, haoluo, jolsa, shuah, paul.chaignon,
	m.shachnai, harishankar.vishwanathan, colin.i.king, luis.gerhorst,
	bpf, linux-kernel, linux-kselftest
  Cc: KaFai Wan

This small patchset is about avoid verifier bug warning when conditional
 jumps on same register when the register holds a scalar with range.

v2:
 - Enhance is_branch_taken() and is_scalar_branch_taken() to handle
   branch direction computation for same register. (Eduard and Alexei)
 - Update the selftest.

v1:
  https://lore.kernel.org/bpf/20251022164457.1203756-1-kafai.wan@linux.dev/
---
KaFai Wan (2):
  bpf: Skip bounds adjustment for conditional jumps on same register
  selftests/bpf: Add test for BPF_JGT on same register

 kernel/bpf/verifier.c                         | 32 +++++++++++++++++++
 .../selftests/bpf/progs/verifier_bounds.c     | 18 +++++++++++
 2 files changed, 50 insertions(+)

-- 
2.43.0


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

end of thread, other threads:[~2025-10-28 14:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-25  5:30 [PATCH bpf-next v2 0/2] bpf: Skip bounds adjustment for conditional jumps on same register KaFai Wan
2025-10-25  5:30 ` [PATCH bpf-next v2 1/2] " KaFai Wan
2025-10-27 20:09   ` Eduard Zingerman
2025-10-28 14:01     ` KaFai Wan
2025-10-25  5:30 ` [PATCH bpf-next v2 2/2] selftests/bpf: Add test for BPF_JGT " KaFai Wan
2025-10-27 19:40   ` Eduard Zingerman
2025-10-28 14:04     ` KaFai Wan

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