Re: [PATCH bpf-next 6/6] bpf, arm64: Remove instruction sync when invalidating freed memory

From: bot+bpf-ci

Date: Sun Dec 06 2026 - 05:19:43 EST


> bpf, arm64: Remove instruction sync when invalidating freed memory

TL;DR: Nit only: aarch64_insn_set() now has no callers after this change;
consider dropping it or making it skip the IPI instead of keeping both it and
aarch64_insn_set_nosync().

> diff --git a/arch/arm64/net/bpf_jit_comp.c b/arch/arm64/net/bpf_jit_comp.c
> index 7b5519f1159c..605deb44ccff 100644
> --- a/arch/arm64/net/bpf_jit_comp.c
> +++ b/arch/arm64/net/bpf_jit_comp.c
> @@ -353,7 +353,7 @@ static void jit_fill_hole(void *area, unsigned int size)
>
> int bpf_arch_text_invalidate(void *dst, size_t len)
> {
> - if (!aarch64_insn_set(dst, AARCH64_BREAK_FAULT, len))
> + if (!aarch64_insn_set_nosync(dst, AARCH64_BREAK_FAULT, len))
> return -EINVAL;
>
> return 0;

This isn't a bug, but now that bpf_arch_text_invalidate() no longer calls
aarch64_insn_set(), nothing else in the tree does either. Should
aarch64_insn_set() be dropped, or changed in place to skip the IPI,
instead of keeping both it and aarch64_insn_set_nosync()?


---
AI reviewed your patch. Please fix the bug or email reply why it's not a bug.
See: https://github.com/kernel-patches/vmtest/blob/master/ci/claude/README.md

CI run summary: https://github.com/kernel-patches/bpf/actions/runs/47636473460