Commit 985a412
committed
bpf: cel: require __V511_BPF_PROG or later
Loading the programs in 5.4 and 4.19 fails with:
; tail_call(ctx, tailcalls, TAIL_CALL_ARGS);
3573: (bf) r1 = r6
3574: (18) r2 = 0xffff888138f0e400
3576: (b7) r3 = 3
3577: (85) call bpf_tail_call#12
tail_calls are not allowed in programs with bpf-to-bpf calls
Because tail-calls cannot mix with bpf-to-bpf calls.
Add an appropriate guard for this.
Signed-off-by: Kornilios Kourtis <[email protected]>1 parent 19d4ef6 commit 985a412
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
12 | 17 | | |
13 | 18 | | |
14 | 19 | | |
| |||
0 commit comments