BPF List
 help / color / mirror / Atom feed
* [PATCH bpf-next 0/4] bpf: Fixes for calls, struct_ops and bpf_throw()
@ 2026-11-26  3:03 Alexei Starovoitov
  2026-11-26  3:03 ` [PATCH bpf-next 1/4] bpf: Count outgoing stack arguments in the combined stack size Alexei Starovoitov
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Alexei Starovoitov @ 2026-11-26  3:03 UTC (permalink / raw)
  To: bpf; +Cc: daniel, andrii, eddyz87, memxor

From: Alexei Starovoitov <ast@kernel.org>

These patches fix bugs in the verifier. Each refuses what was allowed:

  patch  refused now
  -----  ------------------------------------------------------------------
  1      a stack that is over the limit with outgoing stack arguments
  2      recursion without CAP_PERFMON
  3      a reference that the caller of a struct_ops prog does not take
  4      fexit and fsession on a subprog that throws

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

Alexei Starovoitov (4):
  bpf: Count outgoing stack arguments in the combined stack size
  bpf: Require CAP_PERFMON for recursion
  bpf: Fix reference leaks in struct_ops programs
  bpf: Allow only fentry on a subprog that can throw

 Documentation/bpf/verifier.rst                |  2 +-
 include/linux/bpf.h                           |  1 +
 include/linux/bpf_verifier.h                  |  1 +
 kernel/bpf/fixups.c                           |  8 ++++
 kernel/bpf/verifier.c                         | 48 ++++++++++++++++---
 .../selftests/bpf/prog_tests/exceptions.c     | 12 ++---
 .../selftests/bpf/progs/verifier_barrier.c    | 11 ++---
 .../bpf/progs/verifier_private_stack.c        |  2 +-
 8 files changed, 63 insertions(+), 22 deletions(-)


base-commit: 486b5ce7184f7449ef2fe1e951455b0b8a114060
-- 
2.55.0


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

end of thread, other threads:[~2026-11-27  6:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-26  3:03 [PATCH bpf-next 0/4] bpf: Fixes for calls, struct_ops and bpf_throw() Alexei Starovoitov
2026-11-26  3:03 ` [PATCH bpf-next 1/4] bpf: Count outgoing stack arguments in the combined stack size Alexei Starovoitov
2026-11-26  3:03 ` [PATCH bpf-next 2/4] bpf: Require CAP_PERFMON for recursion Alexei Starovoitov
2026-11-26  3:03 ` [PATCH bpf-next 3/4] bpf: Fix reference leaks in struct_ops programs Alexei Starovoitov
2026-11-26  3:03 ` [PATCH bpf-next 4/4] bpf: Allow only fentry on a subprog that can throw Alexei Starovoitov
2026-11-27  6:20 ` [PATCH bpf-next 0/4] bpf: Fixes for calls, struct_ops and bpf_throw() patchwork-bot+netdevbpf

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