Commit 2291f61
ROX-31971: Fix verifier issues with clang > 19 (#96)
* Adapt the modern probe to clang 21
The code generated by clang 21 is more 'complex' and reaches
1000000 instructions on execve().
* Force casting size(r2) parameter to bpf_probe_read_user()
...otherwise, the compiler thinks that the calling convention allows
to optimize unsigned truncation, a the verifier disagrees.
* Decrease MAX_IOVCNT to satisfy the verifier on rhel1 parent d1a708b commit 2291f61
File tree
4 files changed
+6
-7
lines changed- driver/modern_bpf
- helpers/base
- programs
- attached/events
- tail_called/events/syscall_dispatched_events
4 files changed
+6
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
265 | | - | |
| 265 | + | |
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
| 107 | + | |
106 | 108 | | |
107 | 109 | | |
108 | 110 | | |
| |||
Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
| 67 | + | |
| 68 | + | |
72 | 69 | | |
73 | 70 | | |
74 | 71 | | |
| |||
0 commit comments