Re: [PATCH bpf-next v7 02/11] bpf: Disallow interpreter fallback for user BPF_ADDR_SPACE_CAST insn

From: Leon Hwang

Date: Wed Jun 24 2026 - 00:10:36 EST


On 24/6/26 06:45, Andrii Nakryiko wrote:
> On Mon, Jun 22, 2026 at 7:37 AM Leon Hwang <leon.hwang@xxxxxxxxx> wrote:
>>
>> Since interpreter is unable to handle the 'insn_is_cast_user()' insn,
>> require JIT in __bpf_prog_select_runtime() when the prog has the insn.
>>
>> Fixes: 142fd4d2dcf5 ("bpf: Add x86-64 JIT support for bpf_addr_space_cast instruction.")
>> Signed-off-by: Leon Hwang <leon.hwang@xxxxxxxxx>
>> ---
>> include/linux/bpf.h | 1 +
>> kernel/bpf/core.c | 1 +
>> kernel/bpf/fixups.c | 2 ++
>> 3 files changed, 4 insertions(+)
>>
>
> apologies if this was discussed before, but this seems unrelated to
> the main patch set, why not send it as its own fix separately? same
> for the next patch, no?
>

Will send separately to fix the issues of interpreter fallback.

Thanks,
Leon