|
2 | 2 | # |
3 | 3 | # [xfail] — tests expected to fail. |
4 | 4 | # key = path relative to tests/ |
5 | | -# value = {reason = "...", level = "ir" | "llc"} |
6 | | -# level "ir" = fails during pythonbpf IR generation (exception or ERROR log) |
7 | | -# level "llc" = IR generates but llc rejects it |
| 5 | +# value = {reason = "...", level = "ir" | "llc" | "verifier"} |
| 6 | +# level "ir" = fails during pythonbpf IR generation (exception or ERROR log) |
| 7 | +# level "llc" = IR generates but llc rejects it |
| 8 | +# level "verifier" = IR and llc both succeed, but the kernel verifier rejects it |
| 9 | +# |
| 10 | +# A failure at one level implies failure at every later one, so the declared |
| 11 | +# level marks that level and all later ones xfail. |
8 | 12 | # |
9 | 13 |
|
10 | 14 | [xfail] |
11 | 15 |
|
12 | 16 | "failing_tests/conditionals/struct_ptr.py" = {reason = "Struct pointer used directly as boolean condition not supported", level = "ir"} |
13 | 17 |
|
| 18 | +# Compiles cleanly; rejected by the kernel. The `data + 34 < data_end` guard is |
| 19 | +# emitted as a signed compare over values round-tripped through the stack, so the |
| 20 | +# verifier never narrows the packet range (it stays r=0) and the later |
| 21 | +# `iph.saddr` read fails with "invalid access to packet, off=26 size=4" / |
| 22 | +# "R1 offset is outside of the packet". Direct packet access needs bounds checks |
| 23 | +# in a form the verifier can follow. |
| 24 | +"failing_tests/xdp/xdp_test_1.py" = {reason = "XDP direct packet access: the data/data_end guard does not establish a packet range the verifier can use", level = "verifier"} |
| 25 | + |
14 | 26 | "failing_tests/license.py" = {reason = "Missing LICENSE global produces IR that llc rejects — should be caught earlier with a clear error message", level = "llc"} |
15 | 27 |
|
16 | 28 | "failing_tests/undeclared_values.py" = {reason = "Undeclared variable used in f-string — should raise SyntaxError (correct behaviour, test documents it)", level = "ir"} |
|
0 commit comments