diff options
| author | 2026-07-08 18:18:05 +0800 | |
|---|---|---|
| committer | 2026-07-08 23:24:41 -0700 | |
| commit | 9a6df65d5c6a9947ddab4e563e329720f44b8747 (patch) | |
| tree | ad97986c8239e8fcb88cfb7fdb25ca3ed7f0309a /scripts/Makefile.thinlto | |
| parent | bpf: Fix use-after-free on mm_struct in bpf_find_vma() (diff) | |
bpf: Introduce jit_required flag and remove bpf_prog_has_kfunc_call()
Introduce a 'jit_required' bitfield flag in struct bpf_prog to track
whether a BPF program strictly requires the JIT compiler to run. This
prevents a dangerous runtime fallback to the interpreter for features
that are only implemented in the JIT compiler.
Currently, bpf_prog_has_kfunc_call() is used only for kernel function
calls, replace the kfunc-specific helper with the new 'jit_required'
flag. This makes it easy to support other JIT-only BPF features, such
as inlined helpers.
Suggested-by: Alexei Starovoitov <ast@kernel.org>
Suggested-by: KaFai Wan <kafai.wan@linux.dev>
Suggested-by: Leon Hwang <leon.hwang@linux.dev>
Acked-by: Leon Hwang <leon.hwang@linux.dev>
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
