BPF List
 help / color / mirror / Atom feed
* [PATCH bpf 0/5] bpf: Fixes for speculation barriers and constant reads
@ 2026-11-25  4:08 Alexei Starovoitov
  2026-11-25  4:08 ` [PATCH bpf 1/5] bpf: Undo insn aux changes of a failed speculative path Alexei Starovoitov
                   ` (4 more replies)
  0 siblings, 5 replies; 19+ messages in thread
From: Alexei Starovoitov @ 2026-11-25  4:08 UTC (permalink / raw)
  To: bpf; +Cc: daniel, andrii, eddyz87, memxor, luis.gerhorst

From: Alexei Starovoitov <ast@kernel.org>

These patches fix bugs in the verifier:

  patch  area
  -----  ------------------------------------------------------------------
  1      insn aux data after a failed check on a speculative path
  2      spills of invalid registers
  3      unaligned reads of read-only maps
  4-5    the barrier after a store to the stack: atomics, calls

Signed-off-by: Alexei Starovoitov <ast@kernel.org>

Alexei Starovoitov (5):
  bpf: Undo insn aux changes of a failed speculative path
  bpf: Treat NOT_INIT as a pointer in __is_pointer_value()
  bpf: Use get_unaligned() in bpf_map_direct_read()
  bpf: Emit nospec after BPF_ATOMIC stores to the stack
  bpf: Do not end a speculative path at a call

 kernel/bpf/fixups.c   |  4 ++++
 kernel/bpf/verifier.c | 28 +++++++++++++++++-----------
 2 files changed, 21 insertions(+), 11 deletions(-)


base-commit: 81c6c8c608b6075846d3bd5b6f57958300a56eda
-- 
2.55.0


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

end of thread, other threads:[~2026-11-26  3:40 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-25  4:08 [PATCH bpf 0/5] bpf: Fixes for speculation barriers and constant reads Alexei Starovoitov
2026-11-25  4:08 ` [PATCH bpf 1/5] bpf: Undo insn aux changes of a failed speculative path Alexei Starovoitov
2026-11-25  4:08 ` [PATCH bpf 2/5] bpf: Treat NOT_INIT as a pointer in __is_pointer_value() Alexei Starovoitov
2026-11-25  4:08 ` [PATCH bpf 3/5] bpf: Use get_unaligned() in bpf_map_direct_read() Alexei Starovoitov
2026-11-25  4:08 ` [PATCH bpf 4/5] bpf: Emit nospec after BPF_ATOMIC stores to the stack Alexei Starovoitov
2026-11-25 17:12   ` Luis Gerhorst
2026-11-25 17:12     ` [PATCH bpf 0/4] bpf: Emit nospec after every insn that " Luis Gerhorst
2026-11-25 17:12       ` [PATCH bpf 1/4] bpf: Add bpf_insert_insns() to insert insns next to an insn Luis Gerhorst
2026-11-25 17:51         ` sashiko-bot
2026-11-25 18:17         ` bot+bpf-ci
2026-11-25 17:12       ` [PATCH bpf 2/4] selftests/bpf: Test the insns that bpf_insert_insns() inserts Luis Gerhorst
2026-11-25 17:39         ` sashiko-bot
2026-11-25 17:12       ` [PATCH bpf 3/4] bpf: Emit nospec after every insn with nospec_result Luis Gerhorst
2026-11-25 18:17         ` bot+bpf-ci
2026-11-25 17:12       ` [PATCH bpf 4/4] selftests/bpf: Test nospec after stack writes of calls and atomics Luis Gerhorst
2026-11-25 17:45         ` sashiko-bot
2026-11-26  3:40     ` [PATCH bpf 4/5] bpf: Emit nospec after BPF_ATOMIC stores to the stack Alexei Starovoitov
2026-11-25  4:08 ` [PATCH bpf 5/5] bpf: Do not end a speculative path at a call Alexei Starovoitov
2026-11-25  5:00   ` bot+bpf-ci

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