BPF List
 help / color / mirror / Atom feed
* [PATCH bpf-next 0/2] bpf: support shift operations with non-const source operand
@ 2026-06-12  9:38 Tianci Cao
  2026-06-12  9:38 ` [PATCH bpf-next 1/2] bpf: support shift operations with non-const src operand Tianci Cao
  2026-06-12  9:38 ` [PATCH bpf-next 2/2] selftests/bpf: Add tests for non-const src shift Tianci Cao
  0 siblings, 2 replies; 8+ messages in thread
From: Tianci Cao @ 2026-06-12  9:38 UTC (permalink / raw)
  To: bpf
  Cc: ast, daniel, john.fastabend, andrii, martin.lau, eddyz87, song,
	yonghong.song, kpsingh, sdf, haoluo, jolsa, tangyazhou518,
	shenghaoyuan0928, ziye

Add support for BPF shift operations (BPF_LSH, BPF_RSH, BPF_ARSH)
when the source operand is not a constant but is bounded.

Tianci Cao (2):
  bpf: support shift operations with non-const src operand
  selftests/bpf: Add tests for non-const src shift

 kernel/bpf/verifier.c                         | 100 ++++++++++++----
 .../selftests/bpf/progs/verifier_bounds.c     | 108 ++++++++++++++++++
 2 files changed, 184 insertions(+), 24 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2026-06-12 21:29 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-12  9:38 [PATCH bpf-next 0/2] bpf: support shift operations with non-const source operand Tianci Cao
2026-06-12  9:38 ` [PATCH bpf-next 1/2] bpf: support shift operations with non-const src operand Tianci Cao
2026-06-12 10:19   ` bot+bpf-ci
2026-06-12 16:09   ` Alexei Starovoitov
2026-06-12 21:20     ` Eduard Zingerman
2026-06-12 21:17   ` Eduard Zingerman
2026-06-12  9:38 ` [PATCH bpf-next 2/2] selftests/bpf: Add tests for non-const src shift Tianci Cao
2026-06-12 21:29   ` Eduard Zingerman

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