]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
arm64: Fail module loading if dynamic SCS patching fails
authorAdrian Barnaś <abarnas@google.com>
Mon, 22 Sep 2025 13:04:26 +0000 (13:04 +0000)
committerWill Deacon <will@kernel.org>
Fri, 7 Nov 2025 15:00:09 +0000 (15:00 +0000)
commit6d4a0fbd34a40c9f877b136de874dc3498031309
treeed7439300bd4eede8c208b00e32a3326adc6a6d9
parent7f1635737823a6c0c412ccf3767a12bec642c10f
arm64: Fail module loading if dynamic SCS patching fails

Disallow a module to load if SCS dynamic patching fails for its code. For
module loading, instead of running a dry-run to check for patching errors,
try to run patching in the first run and propagate any errors so module
loading will fail.

Signed-off-by: Adrian Barnaś <abarnas@google.com>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/scs.h
arch/arm64/kernel/module.c
arch/arm64/kernel/pi/map_kernel.c
arch/arm64/kernel/pi/patch-scs.c
arch/arm64/kernel/pi/pi.h