BPF List
 help / color / mirror / Atom feed
* [PATCH bpf-next v1 00/73] Cancellations
@ 2026-12-01  4:38 Kumar Kartikeya Dwivedi
  2026-12-01  4:38 ` [PATCH bpf-next v1 01/73] bpf: Refuse a program that is too large for bpf_prog->pages Kumar Kartikeya Dwivedi
                   ` (72 more replies)
  0 siblings, 73 replies; 74+ messages in thread
From: Kumar Kartikeya Dwivedi @ 2026-12-01  4:38 UTC (permalink / raw)
  To: bpf
  Cc: Alexei Starovoitov, Andrii Nakryiko, Daniel Borkmann,
	Eduard Zingerman, Emil Tsalapatis, Ihor Solodrai, kkd,
	kernel-team

The BPF runtime today uses a mix of static analysis and bespoke runtime
checks to guarantee safety while reducing proof obligations for BPF
programs, in order to permit more flexibility. Often, the runtime
encounters cases where the program has entered an error state, and
continuing it is futile. Examples of such instances include a loop runs
past its time slice, a recursion gets too deep, an access to arena
faults, or the program calls bpf_throw().

Today, every case is handled differently. A may_goto that the verifier
adds to a loop only leaves the loop, so the code after the loop has to
be safe without the loop's result. A may_goto of the program (can_loop,
cond_break) jumps to code that continues with half a result.  A load
from arena that faults reads 0 and the program continues.  bpf_throw()
is rejected while the program holds anything.  Recursion checks also do
not halt the execution of a program.

Instead, it would be useful to have a core runtime primitive to halt the
execution of the program at a given point, reclaim all resources it has
acquired during its execution, and optionally, eject it from the system
when supported.

Prior attempts [0][1][2] have aimed at various approaches to resolve
this problem with varying semantics (short-circuiting constructs like
loops that delay program execution and steer execution to exit, or use
object tables generated during verification to feed to the runtime
unwinder).

In this series, we take the approach of treating all of the instances
above as points where a program will halt execution or abort, and treat
them using a unified cancellations mechanism.

When a program is cancelled, every frame on the stack releases what it
holds, and the program returns a value chosen for its type, such as
TC_ACT_SHOT for tc or -EPERM for an LSM hook that returns an errno. The
exception callback can be used to override the return value as a final
resort.

The verifier generates the code that cleans up. An insn at which a
program can be cancelled is a site: a may_goto, the stack check of a
recursive function, an access to arena, a call of bpf_throw(), and every
call whose callee can be cancelled. For each site the verifier emits a
landing pad after the body of the function. The pad releases what the
frame holds at the site and leaves the frame:

	bpf_rcu_read_lock();			   call bpf_rcu_read_lock
	do {					1: ...
		p = bpf_map_lookup_elem(...);	   call bpf_map_lookup_elem
	} while (!p);				   may_goto pad
	v = *p;					   if r0 == 0 goto 1b
	bpf_rcu_read_unlock();			   ...
	return v;				   exit
					      pad: call bpf_rcu_read_unlock
						   r0 = 0
						   exit

A pad takes each pointer from the register or stack slot where the
program keeps it, which costs nothing at run time. This works when every
path to the site keeps the pointer in the same location. When the paths
disagree, or only some of them hold the resource, the function gets a
hidden stack slot, and stores that the verifier emits record the resource
when it is acquired and clear the slot when it is released. When a callee
releases a reference of its caller, the call hands the reference over
where it can, and the callee owns it from its entry, without stores.

Frames are unwound one at a time, and there is no stack walk. A cancelled
frame leaves with cancel_exit and returns to the cancel_goto after its
call, which jumps to the pad of the caller. Only the verifier emits these
two insns. They mirror unwind_exit and unwind_goto, which a program uses
for its own unwinding in C++ or Rust, and like them they are exception
table entries that cost nothing when the callee returns. They are a
separate pair because a landing pad of the program is ordinary code that
may catch and continue running, and a cancelled program must not
continue. A call can therefore end in three ways: the callee returns,
unwinds, or is cancelled. The caller tells them apart by where the callee
returns to. A flag in a register would not do, because it is lost in the
C frame of a helper such as bpf_loop() that sits between a callback and
its caller.

A program with landing pads of its own still gets to clean up. A pad that
can only clean up and continue unwinding, such as a C++ destructor or
Rust drop glue, runs when its frame is cancelled, and generated code then
releases what the frame still holds. A pad that can catch is skipped, and
a generated pad runs in its place.

A struct_ops is told when one of its programs was cancelled and can say
what such a program returns. sched_ext treats a cancelled program as an
error of the scheduler.

A program is cancelled in this way only if it is loaded with CAP_PERFMON,
because landing pads are not hardened against speculation, and only on
x86-64 and arm64.

Patches 1-4 are fixes and preparation. Patches 5-10 give the helpers
that call a callback an unwind label, so that a callback can be unwound
through the helper. Patches 11-22 add the landing pads: RCU and
preemption sections, locks and irq flags, references, iterators and
dynptrs, calls of subprogs and of helpers with a callback. Patches 23-31
add hidden stack slots and handle calls that acquire or release for
their caller, including the hand-over of a reference. Patches 32-37
cancel a program at a fault in arena. Patches 38-47 make bpf_throw()
cancel the program through the landing pads and remove the exception
boundary from the JITs and the stack walk. Patches 48-51 cancel a
program at its own may_goto and add verifier log lines. Patches 52-58
add cancel_goto and cancel_exit. Patches 59-68 run the cleanup pads of a
program on a cancellation. Patches 69-73 tell a struct_ops about a
cancelled program, choose return values for tcp_congestion_ops, and make
sched_ext raise a scheduler error.

  [0]: https://lore.kernel.org/bpf/20240201042109.1150490-1-memxor@gmail.com
  [1]: https://lore.kernel.org/bpf/cover.1794399387.git.memxor@gmail.com
  [2]: https://lore.kernel.org/bpf/20250907230415.289327-1-sidchintamaneni@gmail.com

Alexei Starovoitov (21):
  bpf: Drop the edge after bpf_throw() from the control flow graph
  bpf: Let a state leave its frame at may_goto without an exit insn
  bpf: Emit landing pads that leave RCU sections
  bpf: Release locks and irq flags in landing pads
  bpf: Add unwind_goto after calls of subprogs
  bpf: Let the kernel cancel a program in a global subprog
  bpf: Let the kernel cancel a frame that holds references
  bpf: Let a may_goto that the verifier adds go to its landing pad only
  bpf: Use hidden slots for a pointer that has no location at a site
  bpf: Give unwind_goto a 32 bit offset and prepare it for arena
    accesses
  bpf, arm64: Go to the landing pad when an access to arena faults
  bpf: Let a register be the location of a lock in a global variable
  bpf: Share one landing pad among accesses to arena where nothing is
    held
  bpf: Refuse freplace on a function that can unwind
  bpf: Let landing pads pass on the value of unwind_exit
  bpf: Make bpf_throw() cancel the program through landing pads
  bpf, x86: Remove the exception boundary
  bpf, arm64: Remove the exception boundary
  s390/bpf: Remove the exception boundary
  powerpc64/bpf: Remove the exception boundary
  bpf: Remove the stack walk of bpf_throw()

Kumar Kartikeya Dwivedi (52):
  bpf: Refuse a program that is too large for bpf_prog->pages
  bpf: Require CAP_PERFMON for unwind_exit and unwind_goto
  bpf: Reject bpf_percpu_obj_drop() of a type with special fields
  bpf: Let a helper call its callback with an unwind label
  bpf, x86, arm64: Add landings that redo what follows a helper call
  bpf: Let a callback unwind out of a helper that has an unwind label
  bpf: Let the inlined bpf_loop pass on a callback that unwinds
  bpf: Give the helpers that call a callback an unwind label
  bpf: Let the comparator of bpf_rbtree_add unwind
  bpf: Choose what a cancelled program returns by its type
  bpf: Release references in landing pads
  bpf: Release iterators and dynptrs in landing pads
  bpf: Check pointers for NULL in landing pads
  bpf: Add unwind_goto after helpers with a callback
  bpf: Record why a callee is cancelled when its call gets no landing
    pad
  bpf: Record what each call acquires and releases
  bpf: Add hidden stack slots for landing pads
  bpf: Restore the sections of the call when a frame is cancelled
  bpf: Let hidden slots follow what a subprog does for its caller
  bpf: Let a callee hold a reference that its call hands over
  bpf: Let a call clear the hidden slot of what its callee releases
  bpf: Give a callee a hidden slot for the reference that it is handed
  bpf, x86: Go to the landing pad when an access to arena faults
  bpf: Cancel a program at a fault in arena
  bpf: Keep R0, R6-R9 and the stack live at a call of bpf_throw()
  bpf: Keep a reference of the caller that a function finds NULL
  bpf: Find at a site that a frame holds more than a landing pad
    releases
  bpf: Cancel the program when the time of its own may_goto is up
  bpf: Reject a program that has no landing pad for a fault in arena
  bpf: Log why a call is a site and which functions cannot be cancelled
  bpf: Add cancel_goto and cancel_exit, which only the verifier emits
  bpf: Give the unwind label of a helper a second way in
  bpf, x86: Put the landing of unwind_goto after the function
  bpf, x86: Return to cancel_goto at cancel_exit
  bpf, arm64: Return to cancel_goto at cancel_exit
  bpf: Use cancel_exit to leave a frame that the kernel cancels
  bpf: Check that a helper whose callback may unwind has an unwind label
  bpf: Find the landing pads of a program that can only clean up
  bpf: Don't let hidden stack words turn on the private stack
  bpf: Add a landing pad per site for frames that are cancelled already
  bpf: Verify a cleanup pad for a frame that is cancelled
  bpf: Reject a program whose cleanup pad a cancellation cannot enter
  bpf: Find the code that a cleanup pad can reach
  bpf: Emit the stub, the entry and the remainder of a cleanup pad
  bpf: Let the entry of a cleanup pad save the pointers of the frame
  bpf: Run the cleanup pads of a program when the kernel cancels it
  bpf: End the path at a call of a global subprog that never returns
  bpf: Tell struct_ops when a program was cancelled
  bpf: Tell struct_ops when cancel_exit returns to the kernel
  bpf: Let a struct_ops say what a cancelled program returns
  bpf: Give cancelled tcp_congestion_ops programs values that TCP can
    take
  sched_ext: Treat a cancelled program as a scheduler error

 Documentation/bpf/verifier.rst                |  420 +-
 arch/arm64/net/bpf_jit_comp.c                 |  456 +-
 arch/powerpc/net/bpf_jit.h                    |    2 -
 arch/powerpc/net/bpf_jit_comp.c               |    7 -
 arch/powerpc/net/bpf_jit_comp64.c             |  145 +-
 arch/s390/net/bpf_jit_comp.c                  |   47 +-
 arch/x86/net/bpf_jit_comp.c                   |  499 +-
 include/linux/bpf.h                           |   45 +-
 include/linux/bpf_unwind.h                    |  342 ++
 include/linux/bpf_verifier.h                  |  929 ++-
 include/linux/btf.h                           |    6 +
 include/linux/filter.h                        |   71 +-
 include/uapi/linux/bpf.h                      |   20 +-
 kernel/bpf/Makefile                           |    2 +-
 kernel/bpf/arena.c                            |   28 +-
 kernel/bpf/arraymap.c                         |   14 +-
 kernel/bpf/bpf_iter.c                         |   37 +-
 kernel/bpf/btf.c                              |   43 +
 kernel/bpf/cfg.c                              |  107 +
 kernel/bpf/const_fold.c                       |   22 +-
 kernel/bpf/core.c                             |  149 +-
 kernel/bpf/disasm.c                           |   13 +-
 kernel/bpf/failing_path.c                     |   14 +-
 kernel/bpf/fixups.c                           | 1397 ++++-
 kernel/bpf/flow.c                             |  107 +-
 kernel/bpf/hashtab.c                          |   33 +-
 kernel/bpf/helpers.c                          |  111 +-
 kernel/bpf/join.c                             |   15 +-
 kernel/bpf/liveness.c                         |   95 +-
 kernel/bpf/pads.c                             | 4958 +++++++++++++++++
 kernel/bpf/precision.c                        |   56 +-
 kernel/bpf/ringbuf.c                          |   23 +-
 kernel/bpf/states.c                           |   20 +-
 kernel/bpf/syscall.c                          |   11 +-
 kernel/bpf/task_iter.c                        |   22 +-
 kernel/bpf/verifier.c                         | 2363 ++++++--
 kernel/sched/ext/ext.c                        |   21 +
 net/ipv4/bpf_tcp_ca.c                         |   31 +
 net/sched/bpf_qdisc.c                         |   21 +
 scripts/gdb/linux/bpf.py                      |    4 +-
 tools/include/uapi/linux/bpf.h                |   20 +-
 tools/testing/selftests/bpf/DENYLIST.s390x    |    1 +
 .../testing/selftests/bpf/bpf_experimental.h  |   20 +-
 .../selftests/bpf/prog_tests/arena_stack.c    |    6 +-
 .../selftests/bpf/prog_tests/exceptions.c     |   34 +-
 .../selftests/bpf/prog_tests/may_goto_far.c   |   23 +-
 .../testing/selftests/bpf/prog_tests/stream.c |    3 +-
 .../selftests/bpf/prog_tests/timed_may_goto.c |   89 +-
 .../selftests/bpf/prog_tests/unwind_attach.c  |   15 +-
 .../selftests/bpf/progs/arena_atomics.c       |   96 +-
 .../selftests/bpf/progs/arena_stack_throw.c   |    1 -
 .../bpf/progs/compute_live_registers.c        |    8 +-
 .../selftests/bpf/progs/exceptions_fail.c     |   37 +-
 .../selftests/bpf/progs/jit_insns_arena.c     |   20 +-
 .../selftests/bpf/progs/may_goto_priv_stack.c |    8 +-
 .../selftests/bpf/progs/plain_c_arena_htab.c  |    2 +
 .../bpf/progs/plain_c_arena_strsearch.c       |    2 +
 .../bpf/progs/plain_c_rbtree_search_kptr.c    |    6 -
 .../bpf/progs/plain_c_verifier_arena_large.c  |    2 +
 .../bpf/progs/pro_epilogue_arena_stack.c      |    2 +
 .../selftests/bpf/progs/res_spin_lock_fail.c  |    2 +
 tools/testing/selftests/bpf/progs/stream.c    |   16 +-
 .../selftests/bpf/progs/timed_may_goto.c      |  332 +-
 .../selftests/bpf/progs/timed_may_goto_ext.c  |   22 +-
 .../selftests/bpf/progs/timed_may_goto_user.c |  169 +-
 .../selftests/bpf/progs/verifier_arena.c      |   38 +-
 .../bpf/progs/verifier_arena_large.c          |   51 +-
 .../bpf/progs/verifier_arena_stack.c          |   85 +-
 .../selftests/bpf/progs/verifier_barrier.c    |  141 +-
 .../bpf/progs/verifier_bpf_fastcall.c         |   12 +-
 .../selftests/bpf/progs/verifier_budget.c     |  667 +--
 .../selftests/bpf/progs/verifier_cfg.c        |    4 +-
 .../selftests/bpf/progs/verifier_equations.c  |   11 +-
 .../bpf/progs/verifier_iterating_callbacks.c  |   25 +-
 .../bpf/progs/verifier_jumps_ahead.c          |    2 +-
 .../selftests/bpf/progs/verifier_ldsx.c       |   12 +-
 .../bpf/progs/verifier_linked_scalars.c       |    7 +-
 .../selftests/bpf/progs/verifier_loop_latch.c |   14 -
 .../selftests/bpf/progs/verifier_loop_walk.c  |    2 +
 .../selftests/bpf/progs/verifier_may_goto_1.c |   17 +-
 .../selftests/bpf/progs/verifier_passes.c     |   72 +-
 .../selftests/bpf/progs/verifier_patch_list.c |  101 +-
 .../bpf/progs/verifier_private_stack.c        |   36 +-
 .../selftests/bpf/progs/verifier_stack_arg.c  |    8 +-
 .../selftests/bpf/progs/verifier_stack_ptr.c  |    2 +-
 .../selftests/bpf/progs/verifier_trip_count.c |   26 +-
 .../selftests/bpf/progs/verifier_unwind.c     |   32 +-
 tools/testing/selftests/bpf/verifier/calls.c  |    1 +
 88 files changed, 12435 insertions(+), 2573 deletions(-)
 create mode 100644 include/linux/bpf_unwind.h
 create mode 100644 kernel/bpf/pads.c


base-commit: 0dbb0bea76960c41194677d39da65cdfd9f813ad
-- 
2.53.1-Meta


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

end of thread, other threads:[~2026-12-01  4:43 UTC | newest]

Thread overview: 74+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-01  4:38 [PATCH bpf-next v1 00/73] Cancellations Kumar Kartikeya Dwivedi
2026-12-01  4:38 ` [PATCH bpf-next v1 01/73] bpf: Refuse a program that is too large for bpf_prog->pages Kumar Kartikeya Dwivedi
2026-12-01  4:38 ` [PATCH bpf-next v1 02/73] bpf: Require CAP_PERFMON for unwind_exit and unwind_goto Kumar Kartikeya Dwivedi
2026-12-01  4:38 ` [PATCH bpf-next v1 03/73] bpf: Reject bpf_percpu_obj_drop() of a type with special fields Kumar Kartikeya Dwivedi
2026-12-01  4:38 ` [PATCH bpf-next v1 04/73] bpf: Drop the edge after bpf_throw() from the control flow graph Kumar Kartikeya Dwivedi
2026-12-01  4:38 ` [PATCH bpf-next v1 05/73] bpf: Let a helper call its callback with an unwind label Kumar Kartikeya Dwivedi
2026-12-01  4:38 ` [PATCH bpf-next v1 06/73] bpf, x86, arm64: Add landings that redo what follows a helper call Kumar Kartikeya Dwivedi
2026-12-01  4:38 ` [PATCH bpf-next v1 07/73] bpf: Let a callback unwind out of a helper that has an unwind label Kumar Kartikeya Dwivedi
2026-12-01  4:38 ` [PATCH bpf-next v1 08/73] bpf: Let the inlined bpf_loop pass on a callback that unwinds Kumar Kartikeya Dwivedi
2026-12-01  4:38 ` [PATCH bpf-next v1 09/73] bpf: Give the helpers that call a callback an unwind label Kumar Kartikeya Dwivedi
2026-12-01  4:38 ` [PATCH bpf-next v1 10/73] bpf: Let the comparator of bpf_rbtree_add unwind Kumar Kartikeya Dwivedi
2026-12-01  4:38 ` [PATCH bpf-next v1 11/73] bpf: Let a state leave its frame at may_goto without an exit insn Kumar Kartikeya Dwivedi
2026-12-01  4:38 ` [PATCH bpf-next v1 12/73] bpf: Choose what a cancelled program returns by its type Kumar Kartikeya Dwivedi
2026-12-01  4:38 ` [PATCH bpf-next v1 13/73] bpf: Emit landing pads that leave RCU sections Kumar Kartikeya Dwivedi
2026-12-01  4:38 ` [PATCH bpf-next v1 14/73] bpf: Release locks and irq flags in landing pads Kumar Kartikeya Dwivedi
2026-12-01  4:38 ` [PATCH bpf-next v1 15/73] bpf: Add unwind_goto after calls of subprogs Kumar Kartikeya Dwivedi
2026-12-01  4:38 ` [PATCH bpf-next v1 16/73] bpf: Let the kernel cancel a program in a global subprog Kumar Kartikeya Dwivedi
2026-12-01  4:38 ` [PATCH bpf-next v1 17/73] bpf: Release references in landing pads Kumar Kartikeya Dwivedi
2026-12-01  4:38 ` [PATCH bpf-next v1 18/73] bpf: Release iterators and dynptrs " Kumar Kartikeya Dwivedi
2026-12-01  4:38 ` [PATCH bpf-next v1 19/73] bpf: Check pointers for NULL " Kumar Kartikeya Dwivedi
2026-12-01  4:38 ` [PATCH bpf-next v1 20/73] bpf: Let the kernel cancel a frame that holds references Kumar Kartikeya Dwivedi
2026-12-01  4:38 ` [PATCH bpf-next v1 21/73] bpf: Add unwind_goto after helpers with a callback Kumar Kartikeya Dwivedi
2026-12-01  4:38 ` [PATCH bpf-next v1 22/73] bpf: Let a may_goto that the verifier adds go to its landing pad only Kumar Kartikeya Dwivedi
2026-12-01  4:38 ` [PATCH bpf-next v1 23/73] bpf: Record why a callee is cancelled when its call gets no landing pad Kumar Kartikeya Dwivedi
2026-12-01  4:38 ` [PATCH bpf-next v1 24/73] bpf: Record what each call acquires and releases Kumar Kartikeya Dwivedi
2026-12-01  4:38 ` [PATCH bpf-next v1 25/73] bpf: Add hidden stack slots for landing pads Kumar Kartikeya Dwivedi
2026-12-01  4:38 ` [PATCH bpf-next v1 26/73] bpf: Use hidden slots for a pointer that has no location at a site Kumar Kartikeya Dwivedi
2026-12-01  4:38 ` [PATCH bpf-next v1 27/73] bpf: Restore the sections of the call when a frame is cancelled Kumar Kartikeya Dwivedi
2026-12-01  4:38 ` [PATCH bpf-next v1 28/73] bpf: Let hidden slots follow what a subprog does for its caller Kumar Kartikeya Dwivedi
2026-12-01  4:38 ` [PATCH bpf-next v1 29/73] bpf: Let a callee hold a reference that its call hands over Kumar Kartikeya Dwivedi
2026-12-01  4:38 ` [PATCH bpf-next v1 30/73] bpf: Let a call clear the hidden slot of what its callee releases Kumar Kartikeya Dwivedi
2026-12-01  4:38 ` [PATCH bpf-next v1 31/73] bpf: Give a callee a hidden slot for the reference that it is handed Kumar Kartikeya Dwivedi
2026-12-01  4:38 ` [PATCH bpf-next v1 32/73] bpf: Give unwind_goto a 32 bit offset and prepare it for arena accesses Kumar Kartikeya Dwivedi
2026-12-01  4:39 ` [PATCH bpf-next v1 33/73] bpf, x86: Go to the landing pad when an access to arena faults Kumar Kartikeya Dwivedi
2026-12-01  4:39 ` [PATCH bpf-next v1 34/73] bpf, arm64: " Kumar Kartikeya Dwivedi
2026-12-01  4:39 ` [PATCH bpf-next v1 35/73] bpf: Let a register be the location of a lock in a global variable Kumar Kartikeya Dwivedi
2026-12-01  4:39 ` [PATCH bpf-next v1 36/73] bpf: Cancel a program at a fault in arena Kumar Kartikeya Dwivedi
2026-12-01  4:39 ` [PATCH bpf-next v1 37/73] bpf: Share one landing pad among accesses to arena where nothing is held Kumar Kartikeya Dwivedi
2026-12-01  4:39 ` [PATCH bpf-next v1 38/73] bpf: Keep R0, R6-R9 and the stack live at a call of bpf_throw() Kumar Kartikeya Dwivedi
2026-12-01  4:39 ` [PATCH bpf-next v1 39/73] bpf: Refuse freplace on a function that can unwind Kumar Kartikeya Dwivedi
2026-12-01  4:39 ` [PATCH bpf-next v1 40/73] bpf: Let landing pads pass on the value of unwind_exit Kumar Kartikeya Dwivedi
2026-12-01  4:39 ` [PATCH bpf-next v1 41/73] bpf: Keep a reference of the caller that a function finds NULL Kumar Kartikeya Dwivedi
2026-12-01  4:39 ` [PATCH bpf-next v1 42/73] bpf: Make bpf_throw() cancel the program through landing pads Kumar Kartikeya Dwivedi
2026-12-01  4:39 ` [PATCH bpf-next v1 43/73] bpf, x86: Remove the exception boundary Kumar Kartikeya Dwivedi
2026-12-01  4:39 ` [PATCH bpf-next v1 44/73] bpf, arm64: " Kumar Kartikeya Dwivedi
2026-12-01  4:39 ` [PATCH bpf-next v1 45/73] s390/bpf: " Kumar Kartikeya Dwivedi
2026-12-01  4:39 ` [PATCH bpf-next v1 46/73] powerpc64/bpf: " Kumar Kartikeya Dwivedi
2026-12-01  4:39 ` [PATCH bpf-next v1 47/73] bpf: Remove the stack walk of bpf_throw() Kumar Kartikeya Dwivedi
2026-12-01  4:39 ` [PATCH bpf-next v1 48/73] bpf: Find at a site that a frame holds more than a landing pad releases Kumar Kartikeya Dwivedi
2026-12-01  4:39 ` [PATCH bpf-next v1 49/73] bpf: Cancel the program when the time of its own may_goto is up Kumar Kartikeya Dwivedi
2026-12-01  4:39 ` [PATCH bpf-next v1 50/73] bpf: Reject a program that has no landing pad for a fault in arena Kumar Kartikeya Dwivedi
2026-12-01  4:39 ` [PATCH bpf-next v1 51/73] bpf: Log why a call is a site and which functions cannot be cancelled Kumar Kartikeya Dwivedi
2026-12-01  4:39 ` [PATCH bpf-next v1 52/73] bpf: Add cancel_goto and cancel_exit, which only the verifier emits Kumar Kartikeya Dwivedi
2026-12-01  4:39 ` [PATCH bpf-next v1 53/73] bpf: Give the unwind label of a helper a second way in Kumar Kartikeya Dwivedi
2026-12-01  4:39 ` [PATCH bpf-next v1 54/73] bpf, x86: Put the landing of unwind_goto after the function Kumar Kartikeya Dwivedi
2026-12-01  4:39 ` [PATCH bpf-next v1 55/73] bpf, x86: Return to cancel_goto at cancel_exit Kumar Kartikeya Dwivedi
2026-12-01  4:39 ` [PATCH bpf-next v1 56/73] bpf, arm64: " Kumar Kartikeya Dwivedi
2026-12-01  4:39 ` [PATCH bpf-next v1 57/73] bpf: Use cancel_exit to leave a frame that the kernel cancels Kumar Kartikeya Dwivedi
2026-12-01  4:39 ` [PATCH bpf-next v1 58/73] bpf: Check that a helper whose callback may unwind has an unwind label Kumar Kartikeya Dwivedi
2026-12-01  4:39 ` [PATCH bpf-next v1 59/73] bpf: Find the landing pads of a program that can only clean up Kumar Kartikeya Dwivedi
2026-12-01  4:39 ` [PATCH bpf-next v1 60/73] bpf: Don't let hidden stack words turn on the private stack Kumar Kartikeya Dwivedi
2026-12-01  4:39 ` [PATCH bpf-next v1 61/73] bpf: Add a landing pad per site for frames that are cancelled already Kumar Kartikeya Dwivedi
2026-12-01  4:39 ` [PATCH bpf-next v1 62/73] bpf: Verify a cleanup pad for a frame that is cancelled Kumar Kartikeya Dwivedi
2026-12-01  4:39 ` [PATCH bpf-next v1 63/73] bpf: Reject a program whose cleanup pad a cancellation cannot enter Kumar Kartikeya Dwivedi
2026-12-01  4:39 ` [PATCH bpf-next v1 64/73] bpf: Find the code that a cleanup pad can reach Kumar Kartikeya Dwivedi
2026-12-01  4:39 ` [PATCH bpf-next v1 65/73] bpf: Emit the stub, the entry and the remainder of a cleanup pad Kumar Kartikeya Dwivedi
2026-12-01  4:39 ` [PATCH bpf-next v1 66/73] bpf: Let the entry of a cleanup pad save the pointers of the frame Kumar Kartikeya Dwivedi
2026-12-01  4:39 ` [PATCH bpf-next v1 67/73] bpf: Run the cleanup pads of a program when the kernel cancels it Kumar Kartikeya Dwivedi
2026-12-01  4:39 ` [PATCH bpf-next v1 68/73] bpf: End the path at a call of a global subprog that never returns Kumar Kartikeya Dwivedi
2026-12-01  4:39 ` [PATCH bpf-next v1 69/73] bpf: Tell struct_ops when a program was cancelled Kumar Kartikeya Dwivedi
2026-12-01  4:39 ` [PATCH bpf-next v1 70/73] bpf: Tell struct_ops when cancel_exit returns to the kernel Kumar Kartikeya Dwivedi
2026-12-01  4:39 ` [PATCH bpf-next v1 71/73] bpf: Let a struct_ops say what a cancelled program returns Kumar Kartikeya Dwivedi
2026-12-01  4:39 ` [PATCH bpf-next v1 72/73] bpf: Give cancelled tcp_congestion_ops programs values that TCP can take Kumar Kartikeya Dwivedi
2026-12-01  4:39 ` [PATCH bpf-next v1 73/73] sched_ext: Treat a cancelled program as a scheduler error Kumar Kartikeya Dwivedi

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