summaryrefslogtreecommitdiffstats
path: root/arch/x86/boot
diff options
context:
space:
mode:
authorNikolay Borisov <nik.borisov@suse.com>2024-06-13 13:08:37 +0200
committerBorislav Petkov (AMD) <bp@alien8.de>2024-06-14 18:08:45 +0200
commit71315037cb7d40cdb2f4fbefad31927f6e6caba5 (patch)
tree5031a1fc634c4c0a5eb619bf3c01f2a5dc72d937 /arch/x86/boot
parentDocumentation: Remove "mfgpt_irq=" from the kernel-parameters.txt file (diff)
downloadlinux-71315037cb7d40cdb2f4fbefad31927f6e6caba5.tar.xz
linux-71315037cb7d40cdb2f4fbefad31927f6e6caba5.zip
x86/boot: Remove unused function __fortify_panic()
That function is only used when the kernel is compiled with FORTIFY_SOURCE and when the kernel proper string.h header is used. The decompressor code doesn't use the kernel proper header but has local copy which doesn't contain any fortified implementations of the various string functions. As such __fortify_panic() can never be called from the decompressor so remove it. Signed-off-by: Nikolay Borisov <nik.borisov@suse.com> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Link: https://lore.kernel.org/r/20240613110837.300273-1-nik.borisov@suse.com
Diffstat (limited to 'arch/x86/boot')
-rw-r--r--arch/x86/boot/compressed/misc.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/x86/boot/compressed/misc.c b/arch/x86/boot/compressed/misc.c
index b70e4a21c15f..944454306ef4 100644
--- a/arch/x86/boot/compressed/misc.c
+++ b/arch/x86/boot/compressed/misc.c
@@ -531,8 +531,3 @@ asmlinkage __visible void *extract_kernel(void *rmode, unsigned char *output)
return output + entry_offset;
}
-
-void __fortify_panic(const u8 reason, size_t avail, size_t size)
-{
- error("detected buffer overflow");
-}