aarch64_insn_mb_type has AARCH64_INSN_MB_OSH, OSHST and OSHLD, but __get_barrier_crm_val() maps none of them, so aarch64_insn_gen_dmb() and aarch64_insn_gen_dsb() return AARCH64_BREAK_FAULT and print "unknown barrier type" for three values of their own enum. Nothing asks for them: the BPF JIT, the only user of the two encoders, emits ISH barriers only, so neither it nor any other kernel code is affected. Remove the three values rather than map them. Found by checking the encoders against Arm's A64 ISA XML (2026-09). Signed-off-by: Daniel Borkmann --- arch/arm64/include/asm/insn.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm64/include/asm/insn.h b/arch/arm64/include/asm/insn.h index 4834bf8ab87e..b25dfd958f94 100644 --- a/arch/arm64/include/asm/insn.h +++ b/arch/arm64/include/asm/insn.h @@ -314,9 +314,6 @@ enum aarch64_insn_mb_type { AARCH64_INSN_MB_NSH, AARCH64_INSN_MB_NSHST, AARCH64_INSN_MB_NSHLD, - AARCH64_INSN_MB_OSH, - AARCH64_INSN_MB_OSHST, - AARCH64_INSN_MB_OSHLD, }; #define __AARCH64_INSN_FUNCS(abbr, mask, val) \ -- 2.43.0