Repository navigation
Conversation
xdp.program and tc.program take `error`, an action of the program's type, which every stop of the program returns, from any frame: the tail each stop's block jumps to after it counts the stop and logs its line loads it in place of the type's constant. A file that names none gets XDP_ABORTED in XDP and TC_ACT_SHOT in TC, as before, and a stop that is to take the default names the same action as `default`. The value is held to the check the default verdict has, refused at the line of the program's function as "xdp.program's error verdict is not an integer" or "is not an XDP action", tc.program's alike. The kernel fires xdp:xdp_exception for XDP_ABORTED, and for an XDP_TX or an XDP_REDIRECT it fails to carry out (netif_receive_generic_xdp and generic_xdp_tx in net/core/dev.c, ixgbe_run_xdp among the drivers), so the stops of an XDP program whose error verdict is another action are not read there: they are read in the trace ring and with `lunatik bpf --errors`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Contributor
Author
|
Note This comment was written by an LLM, not a human. What #45 requires, as the review read the change meeting it:
The matrix the change is held to: The diff carries no test: luaebpf's cases live in Lunatik's tests/luaebpf, and the Update's point 2 puts them in Lunatik's run. The cells below marked "probe" are what this review ran on the host with lua5.5 over the branch's compiler (scratch/luaebpf-45/review-error-verdict/probe.lua, compile.lua, progs/). The probes compile and disassemble; they load nothing and touch no device. Matrix, operation by type by outcome:
What nothing on this kernel can see:
Also checked: |
This was referenced Nov 27, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A compiled program that stops, at a read past the packet, a division by 0 or a map update the map refuses, drops the packet whatever its default verdict, so a filter in a device's forwarding path that is to fail open cannot be written as a program file.
xdp.programandtc.programnow takeerror, the verdict every stop of the program returns, an action of its type asdefaultis. A frame too short for byte 20 stops the program below, which counts the stop at its line, logs<file>:<line>: out of boundsto the trace ring as today, and returnsXDP_PASS, so the frame goes on:A file that names no
errorreturnsXDP_ABORTEDin XDP andTC_ACT_SHOTin TC, as today; a stop that is to take the default names the same action twice, and anerrorthat is no action is refused at the line of the program's function, "xdp.program's error verdict is not an XDP action". The verdict is the program's, so two programs of one file may name two. Nothing else is added: no kernel API, no change to the license a program that may stop needs. The kernel firesxdp:xdp_exceptionforXDP_ABORTED, and for anXDP_TXor anXDP_REDIRECTit fails to carry out, so the stops of an XDP program whose error verdict is another action are not read there, but in the trace ring and withlunatik bpf --errors.The change reaches a device with Lunatik's move of its
luaebpf/mount to this commit, and the programs that run a short frame througherror, in XDP and in TC, come with that move: until it no program of Lunatik's suite nameserror, and none has run on a device. No example of Lunatik's is a program file or requires a module this changes, so none ran.#45, which it does not close