Commit 0aacbba
Fix remaining BPF verifier failures
1. Mask ret with & 0xFFFF in recvfrom_x, recvmsg_x, and sendmsg_x.
The BPF verifier on older kernels rejects bpf_probe_read_user calls
where the size argument (ret) could be negative. The mask bounds the
value for the verifier. Only applied to programs collector subscribes
to (kSendRecvSyscalls) — other programs with this pattern are already
excluded via MODERN_BPF_EXCLUDE_PROGS.
2. Stub out t1_execveat_x and t2_execveat_x with #if 0 (ROX-31971).
Collector does not subscribe to execveat, but these programs are
compiled into the skeleton and verified during load. Their complexity
exceeded the 1M instruction verifier limit on RHCOS 4.16/4.18 and
RHEL SAP 9.4.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent d63a342 commit 0aacbba
File tree
4 files changed
+13
-3
lines changed- driver/modern_bpf/programs/tail_called/events/syscall_dispatched_events
4 files changed
+13
-3
lines changedLines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
134 | 140 | | |
135 | 141 | | |
136 | 142 | | |
| |||
254 | 260 | | |
255 | 261 | | |
256 | 262 | | |
| 263 | + | |
257 | 264 | | |
258 | 265 | | |
259 | 266 | | |
260 | 267 | | |
261 | 268 | | |
| 269 | + | |
| 270 | + | |
262 | 271 | | |
263 | 272 | | |
264 | 273 | | |
| |||
289 | 298 | | |
290 | 299 | | |
291 | 300 | | |
| 301 | + | |
292 | 302 | | |
293 | 303 | | |
294 | 304 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
0 commit comments