Pointer to BTF object is a pointer to kernel object or NULL. The memory access in the interpreter has to be done via probe_kernel_read to avoid page faults.
Showing the changes to include/linux (1 of 3 files). Show all
Unified · Split
| @@ -65,6 +65,9 @@ struct ctl_table_header; · 64 unmodified lines | |||
| 65 | /* unused opcode to mark special call to bpf_tail_call() helper */ | 65 | /* unused opcode to mark special call to bpf_tail_call() helper */ |
| 66 | #define BPF_TAIL_CALL 0xf0 | 66 | #define BPF_TAIL_CALL 0xf0 |
| 67 | 67 | ||
| 68 | /* unused opcode to mark special load instruction. Same as BPF_ABS */ | ||
| 69 | #define BPF_PROBE_MEM 0x20 | ||
| 70 | |||
| 68 | /* unused opcode to mark call to interpreter with arguments */ | 71 | /* unused opcode to mark call to interpreter with arguments */ |
| 69 | #define BPF_CALL_ARGS 0xe0 | 72 | #define BPF_CALL_ARGS 0xe0 |
| 70 | 73 | ||