Skip to content

Cancellations

Kumar Kartikeya Dwivedi bpf 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest73 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/73bpf: Refuse a program that is too large for bpf_prog->pagesinclude/linux/filter.h kernel/bpf/core.c kernel/bpf/fixups.c+20 -10 replies
2/73bpf: Require CAP_PERFMON for unwind_exit and unwind_gotoinclude/linux/bpf_verifier.h kernel/bpf/verifier.c tools/testing/selftests/bpf/progs/verifier_unwind.c+19 -240 replies
3/73bpf: Reject bpf_percpu_obj_drop() of a type with special fieldskernel/bpf/verifier.c+10 -00 replies
4/73bpf: Drop the edge after bpf_throw() from the control flow graphinclude/linux/bpf_verifier.h kernel/bpf/liveness.c kernel/bpf/verifier.c +1 more+17 -70 replies
5/73bpf: Let a helper call its callback with an unwind labelarch/arm64/net/bpf_jit_comp.c arch/x86/net/bpf_jit_comp.c include/linux/bpf_unwind.h +2 more+365 -100 replies
6/73bpf, x86, arm64: Add landings that redo what follows a helper callarch/arm64/net/bpf_jit_comp.c arch/x86/net/bpf_jit_comp.c include/linux/bpf_unwind.h+110 -190 replies
7/73bpf: Let a callback unwind out of a helper that has an unwind labelinclude/linux/bpf_verifier.h include/uapi/linux/bpf.h kernel/bpf/const_fold.c +5 more+168 -250 replies
8/73bpf: Let the inlined bpf_loop pass on a callback that unwindsinclude/linux/bpf_verifier.h kernel/bpf/core.c kernel/bpf/fixups.c+71 -100 replies
9/73bpf: Give the helpers that call a callback an unwind labelkernel/bpf/arraymap.c kernel/bpf/bpf_iter.c kernel/bpf/hashtab.c +4 more+112 -210 replies
10/73bpf: Let the comparator of bpf_rbtree_add unwindkernel/bpf/helpers.c kernel/bpf/verifier.c+100 -240 replies
11/73bpf: Let a state leave its frame at may_goto without an exit insninclude/linux/bpf_verifier.h kernel/bpf/const_fold.c kernel/bpf/failing_path.c +6 more+88 -410 replies
12/73bpf: Choose what a cancelled program returns by its typeinclude/linux/bpf_verifier.h include/linux/filter.h kernel/bpf/fixups.c +5 more+82 -400 replies
13/73bpf: Emit landing pads that leave RCU sectionsinclude/linux/bpf_verifier.h kernel/bpf/Makefile kernel/bpf/fixups.c +7 more+673 -1900 replies
14/73bpf: Release locks and irq flags in landing padsinclude/linux/bpf_verifier.h kernel/bpf/fixups.c kernel/bpf/pads.c +1 more+598 -320 replies
15/73bpf: Add unwind_goto after calls of subprogsinclude/linux/bpf_verifier.h kernel/bpf/fixups.c kernel/bpf/pads.c +6 more+383 -5920 replies
16/73bpf: Let the kernel cancel a program in a global subproginclude/linux/bpf_verifier.h kernel/bpf/fixups.c kernel/bpf/pads.c +1 more+87 -120 replies
17/73bpf: Release references in landing padsinclude/linux/bpf_verifier.h include/linux/btf.h kernel/bpf/btf.c +3 more+457 -320 replies
18/73bpf: Release iterators and dynptrs in landing padsinclude/linux/bpf_verifier.h kernel/bpf/pads.c kernel/bpf/verifier.c+173 -520 replies
19/73bpf: Check pointers for NULL in landing padsinclude/linux/bpf_verifier.h kernel/bpf/liveness.c kernel/bpf/pads.c+253 -580 replies
20/73bpf: Let the kernel cancel a frame that holds referenceskernel/bpf/verifier.c tools/testing/selftests/bpf/progs/plain_c_rbtree_search_kptr.c tools/testing/selftests/bpf/progs/verifier_budget.c +2 more+10 -320 replies
21/73bpf: Add unwind_goto after helpers with a callbackinclude/linux/bpf.h include/linux/bpf_verifier.h kernel/bpf/pads.c +2 more+81 -680 replies
22/73bpf: Let a may_goto that the verifier adds go to its landing pad onlyDocumentation/bpf/verifier.rst include/linux/bpf_verifier.h kernel/bpf/const_fold.c +15 more+333 -3830 replies
23/73bpf: Record why a callee is cancelled when its call gets no landing padinclude/linux/bpf_verifier.h kernel/bpf/pads.c kernel/bpf/precision.c +1 more+199 -20 replies
24/73bpf: Record what each call acquires and releasesinclude/linux/bpf_verifier.h kernel/bpf/fixups.c kernel/bpf/pads.c +1 more+406 -350 replies
25/73bpf: Add hidden stack slots for landing padsinclude/linux/bpf_verifier.h kernel/bpf/fixups.c kernel/bpf/pads.c +3 more+525 -200 replies
26/73bpf: Use hidden slots for a pointer that has no location at a siteinclude/linux/bpf_verifier.h kernel/bpf/pads.c+47 -100 replies
27/73bpf: Restore the sections of the call when a frame is cancelledinclude/linux/bpf_verifier.h kernel/bpf/pads.c kernel/bpf/verifier.c +1 more+186 -320 replies
28/73bpf: Let hidden slots follow what a subprog does for its callerinclude/linux/bpf_verifier.h kernel/bpf/fixups.c kernel/bpf/pads.c +1 more+659 -1120 replies
29/73bpf: Let a callee hold a reference that its call hands overDocumentation/bpf/verifier.rst include/linux/bpf_verifier.h kernel/bpf/join.c +2 more+330 -140 replies
30/73bpf: Let a call clear the hidden slot of what its callee releasesDocumentation/bpf/verifier.rst include/linux/bpf_verifier.h kernel/bpf/join.c +3 more+349 -710 replies
31/73bpf: Give a callee a hidden slot for the reference that it is handedDocumentation/bpf/verifier.rst include/linux/bpf_verifier.h kernel/bpf/pads.c +1 more+129 -530 replies
32/73bpf: Give unwind_goto a 32 bit offset and prepare it for arena accessesarch/arm64/net/bpf_jit_comp.c arch/x86/net/bpf_jit_comp.c include/linux/bpf_verifier.h +5 more+49 -220 replies
33/73bpf, x86: Go to the landing pad when an access to arena faultsarch/arm64/net/bpf_jit_comp.c arch/x86/net/bpf_jit_comp.c include/linux/bpf.h +3 more+92 -510 replies
34/73bpf, arm64: Go to the landing pad when an access to arena faultsarch/arm64/net/bpf_jit_comp.c+29 -60 replies
35/73bpf: Let a register be the location of a lock in a global variablekernel/bpf/pads.c+6 -20 replies
36/73bpf: Cancel a program at a fault in arenainclude/linux/bpf_verifier.h kernel/bpf/fixups.c kernel/bpf/join.c +14 more+495 -1020 replies
37/73bpf: Share one landing pad among accesses to arena where nothing is heldarch/arm64/net/bpf_jit_comp.c arch/x86/net/bpf_jit_comp.c include/linux/bpf.h +6 more+120 -480 replies
38/73bpf: Keep R0, R6-R9 and the stack live at a call of bpf_throw()kernel/bpf/liveness.c+14 -30 replies
39/73bpf: Refuse freplace on a function that can unwindinclude/linux/bpf_verifier.h kernel/bpf/fixups.c kernel/bpf/verifier.c +1 more+18 -80 replies
40/73bpf: Let landing pads pass on the value of unwind_exitinclude/linux/bpf_verifier.h kernel/bpf/const_fold.c kernel/bpf/fixups.c +6 more+138 -400 replies
41/73bpf: Keep a reference of the caller that a function finds NULLinclude/linux/bpf_verifier.h kernel/bpf/verifier.c+67 -130 replies
42/73bpf: Make bpf_throw() cancel the program through landing padsDocumentation/bpf/verifier.rst include/linux/bpf.h include/linux/bpf_verifier.h +19 more+249 -3330 replies
43/73bpf, x86: Remove the exception boundaryarch/x86/net/bpf_jit_comp.c+17 -780 replies
44/73bpf, arm64: Remove the exception boundaryarch/arm64/net/bpf_jit_comp.c+37 -910 replies
45/73s390/bpf: Remove the exception boundaryarch/s390/net/bpf_jit_comp.c+9 -290 replies
46/73powerpc64/bpf: Remove the exception boundaryarch/powerpc/net/bpf_jit.h arch/powerpc/net/bpf_jit_comp.c arch/powerpc/net/bpf_jit_comp64.c+19 -1300 replies
47/73bpf: Remove the stack walk of bpf_throw()arch/arm64/net/bpf_jit_comp.c arch/powerpc/net/bpf_jit_comp.c arch/s390/net/bpf_jit_comp.c +8 more+17 -1040 replies
48/73bpf: Find at a site that a frame holds more than a landing pad releasesinclude/linux/bpf_verifier.h kernel/bpf/pads.c+16 -30 replies
49/73bpf: Cancel the program when the time of its own may_goto is upinclude/linux/bpf_verifier.h kernel/bpf/fixups.c kernel/bpf/pads.c +17 more+1082 -2480 replies
50/73bpf: Reject a program that has no landing pad for a fault in arenainclude/linux/bpf_verifier.h kernel/bpf/pads.c kernel/bpf/verifier.c +4 more+272 -2820 replies
51/73bpf: Log why a call is a site and which functions cannot be cancelledinclude/linux/bpf_verifier.h kernel/bpf/pads.c kernel/bpf/verifier.c+138 -250 replies
52/73bpf: Add cancel_goto and cancel_exit, which only the verifier emitsinclude/linux/filter.h kernel/bpf/core.c kernel/bpf/disasm.c +2 more+89 -140 replies
53/73bpf: Give the unwind label of a helper a second way ininclude/linux/bpf_unwind.h kernel/bpf/arraymap.c kernel/bpf/bpf_iter.c +4 more+114 -670 replies
54/73bpf, x86: Put the landing of unwind_goto after the functionarch/x86/net/bpf_jit_comp.c tools/testing/selftests/bpf/progs/verifier_unwind.c+87 -210 replies
55/73bpf, x86: Return to cancel_goto at cancel_exitarch/x86/net/bpf_jit_comp.c include/linux/bpf_unwind.h+168 -670 replies
56/73bpf, arm64: Return to cancel_goto at cancel_exitarch/arm64/net/bpf_jit_comp.c+132 -430 replies
57/73bpf: Use cancel_exit to leave a frame that the kernel cancelsDocumentation/bpf/verifier.rst include/linux/bpf_verifier.h kernel/bpf/const_fold.c +8 more+956 -4060 replies
58/73bpf: Check that a helper whose callback may unwind has an unwind labelarch/arm64/net/bpf_jit_comp.c arch/x86/net/bpf_jit_comp.c include/linux/bpf_verifier.h +1 more+88 -180 replies
59/73bpf: Find the landing pads of a program that can only clean upinclude/linux/bpf_verifier.h kernel/bpf/pads.c+117 -00 replies
60/73bpf: Don't let hidden stack words turn on the private stackinclude/linux/bpf_verifier.h kernel/bpf/pads.c kernel/bpf/verifier.c+52 -140 replies
61/73bpf: Add a landing pad per site for frames that are cancelled alreadyinclude/linux/bpf_verifier.h kernel/bpf/fixups.c kernel/bpf/pads.c +1 more+143 -430 replies
62/73bpf: Verify a cleanup pad for a frame that is cancelledinclude/linux/bpf_verifier.h kernel/bpf/fixups.c kernel/bpf/pads.c +1 more+521 -1080 replies
63/73bpf: Reject a program whose cleanup pad a cancellation cannot enterinclude/linux/bpf_verifier.h kernel/bpf/pads.c kernel/bpf/verifier.c+399 -750 replies
64/73bpf: Find the code that a cleanup pad can reachinclude/linux/bpf_verifier.h kernel/bpf/pads.c+110 -190 replies
65/73bpf: Emit the stub, the entry and the remainder of a cleanup padinclude/linux/bpf_verifier.h kernel/bpf/fixups.c kernel/bpf/pads.c +1 more+621 -1630 replies
66/73bpf: Let the entry of a cleanup pad save the pointers of the frameinclude/linux/bpf_verifier.h kernel/bpf/fixups.c kernel/bpf/pads.c +2 more+581 -860 replies
67/73bpf: Run the cleanup pads of a program when the kernel cancels itDocumentation/bpf/verifier.rst include/uapi/linux/bpf.h kernel/bpf/verifier.c +1 more+144 -30 replies
68/73bpf: End the path at a call of a global subprog that never returnsinclude/linux/bpf_verifier.h kernel/bpf/cfg.c kernel/bpf/fixups.c +3 more+197 -210 replies
69/73bpf: Tell struct_ops when a program was cancelledinclude/linux/bpf.h include/linux/bpf_verifier.h include/linux/filter.h +4 more+77 -50 replies
70/73bpf: Tell struct_ops when cancel_exit returns to the kernelarch/arm64/net/bpf_jit_comp.c arch/x86/net/bpf_jit_comp.c include/linux/bpf_unwind.h +3 more+95 -430 replies
71/73bpf: Let a struct_ops say what a cancelled program returnsinclude/linux/bpf.h kernel/bpf/verifier.c net/sched/bpf_qdisc.c+64 -130 replies
72/73bpf: Give cancelled tcp_congestion_ops programs values that TCP can takenet/ipv4/bpf_tcp_ca.c+31 -00 replies
73/73sched_ext: Treat a cancelled program as a scheduler errorkernel/sched/ext/ext.c+21 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH bpf-next v1 00/73] Cancellations

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/[email protected]
[1]: https://lore.kernel.org/bpf/[email protected]
[2]: https://lore.kernel.org/bpf/[email protected]

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

Signature · 1 line
2.53.1-Meta