Skip to content

Commit 7131503

Browse files
Nikolay Borisovbp3tk0v
authored andcommitted
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 <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 9b9eec8 commit 7131503

File tree

1 file changed

+0
-5
lines changed
  • arch/x86/boot/compressed

1 file changed

+0
-5
lines changed

arch/x86/boot/compressed/misc.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -531,8 +531,3 @@ asmlinkage __visible void *extract_kernel(void *rmode, unsigned char *output)
531531

532532
return output + entry_offset;
533533
}
534-
535-
void __fortify_panic(const u8 reason, size_t avail, size_t size)
536-
{
537-
error("detected buffer overflow");
538-
}

0 commit comments

Comments
 (0)