[PATCH 0/4] arm64: Fix instrumentation escapes from noinstr path
Jisheng Zhang
jszhang at kernel.org
Fri Nov 6 23:13:35 PST 2026
Code marked with noinstr can only safely call other noinstr or
__always_inline functions. When reading arm64 source code, I found
necessary noinstr markers is missing somewhere. So I asked AI to scan
the arm64, this series is the result.
Jisheng Zhang (4):
arm64: percpu: Always inline helpers used by noinstr code
arm64: entry: Always inline helpers used by non-instrumentable paths
arm64: stacktrace: Always inline internal stack boundary helpers
arm64: alternatives: Make branch and ADRP offset helpers noinst
arch/arm64/include/asm/cpufeature.h | 8 +--
arch/arm64/include/asm/entry-common.h | 2 +-
arch/arm64/include/asm/fpsimd.h | 4 +-
arch/arm64/include/asm/mte-kasan.h | 4 +-
arch/arm64/include/asm/mte.h | 6 +--
arch/arm64/include/asm/percpu.h | 6 +--
arch/arm64/include/asm/stacktrace.h | 16 +++---
arch/arm64/include/asm/stacktrace/common.h | 12 ++---
arch/arm64/lib/insn.c | 57 ++++++++++++++--------
9 files changed, 66 insertions(+), 49 deletions(-)
--
2.55.0
More information about the linux-arm-kernel
mailing list