Re: [PATCH 2/3] bpf: introduce bpf_jit_insn_aux_data

From: Alexei Starovoitov

Date: Fri Mar 06 2026 - 17:34:08 EST


On Fri, Mar 6, 2026 at 2:13 PM Yeoreum Yun <yeoreum.yun@xxxxxxx> wrote:
>
> This patch prepares for fixing the BTI exception related to gotox.
>
> bpf_jit_insn_aux_data contains per-instruction auxiliary data for the JIT,
> extracted from env->insn_aux_data.
>
> For example, it is used to determine whether an instruction is
> a destination of a gotox, allowing the JIT to emit
> the appropriate BTI instruction at that location in arm64.
>
> Signed-off-by: Yeoreum Yun <yeoreum.yun@xxxxxxx>
> ---
> include/linux/bpf.h | 6 +++++
> include/linux/filter.h | 4 +++
> kernel/bpf/core.c | 59 +++++++++++++++++++++++++++++++++++++++++-
> kernel/bpf/verifier.c | 30 ++++++++++++++++++++-
> 4 files changed, 97 insertions(+), 2 deletions(-)

before posting patches please scan the mailing list to see whether
a particular issue was discussed.

pw-bot: cr