Re: [PATCH bpf-next v2] bpf: Fix unaligned interpreter panic on JIT fallback path
From: Leon Hwang
Date: Thu Jun 11 2026 - 06:27:26 EST
On 11/6/26 18:12, Tiezhu Yang wrote:
[...]
> +/* Fix up helper call offsets for inlined helpers on JIT fallback path. */
> +static void bpf_fixup_fallback_inline_helpers(struct bpf_verifier_env *env, struct bpf_prog *fp)
> +{
> + struct bpf_insn *insn = fp->insnsi;
> + const struct bpf_func_proto *fn;
> + int i;
> +
> + if (!env || !env->ops->get_func_proto)
> + return;
> +
> + for (i = 0; i < fp->len; i++, insn++) {
> + if (insn->code == (BPF_JMP | BPF_CALL) && insn->src_reg == 0) {
NIT: better to use bpf_helper_call() here.
Other than that, lgtm:
Acked-by: Leon Hwang <leon.hwang@xxxxxxxxx>
> [...]