summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/compressed/misc.c
diff options
context:
space:
mode:
authorArd Biesheuvel <ardb@kernel.org>2021-10-26 10:23:31 +0200
committerArd Biesheuvel <ardb@kernel.org>2021-12-03 15:11:24 +0100
commit672513bf583157cc088a32e75bd850dd9f81564c (patch)
tree616ae2a0cde52f4c405b581a83f4785475f943c5 /arch/arm/boot/compressed/misc.c
parentLinux 5.16-rc1 (diff)
downloadlinux-672513bf583157cc088a32e75bd850dd9f81564c.tar.xz
linux-672513bf583157cc088a32e75bd850dd9f81564c.zip
ARM: decompressor: disable stack protector
Enabling the stack protector in the decompressor is of dubious value, given that it uses a fixed value for the canary, cannot print any output unless CONFIG_DEBUG_LL is enabled (which relies on board specific build time settings), and is already disabled for a good chunk of the code (libfdt). So let's just disable it in the decompressor. This will make it easier in the future to manage the command line options that would need to be removed again in this context for the TLS register based stack protector. Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'arch/arm/boot/compressed/misc.c')
-rw-r--r--arch/arm/boot/compressed/misc.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/arch/arm/boot/compressed/misc.c b/arch/arm/boot/compressed/misc.c
index e1e9a5dde853..c3c66ff2d696 100644
--- a/arch/arm/boot/compressed/misc.c
+++ b/arch/arm/boot/compressed/misc.c
@@ -128,13 +128,6 @@ asmlinkage void __div0(void)
error("Attempting division by 0!");
}
-const unsigned long __stack_chk_guard = 0x000a0dff;
-
-void __stack_chk_fail(void)
-{
- error("stack-protector: Kernel stack is corrupted\n");
-}
-
extern int do_decompress(u8 *input, int len, u8 *output, void (*error)(char *x));