[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <171838228550.10875.5357369039737552236.tip-bot2@tip-bot2>
Date: Fri, 14 Jun 2024 16:24:45 -0000
From: "tip-bot2 for Nikolay Borisov" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: Nikolay Borisov <nik.borisov@...e.com>,
"Borislav Petkov (AMD)" <bp@...en8.de>, x86@...nel.org,
linux-kernel@...r.kernel.org
Subject:
[tip: x86/cleanups] x86/boot: Remove unused function __fortify_panic()
The following commit has been merged into the x86/cleanups branch of tip:
Commit-ID: 71315037cb7d40cdb2f4fbefad31927f6e6caba5
Gitweb: https://git.kernel.org/tip/71315037cb7d40cdb2f4fbefad31927f6e6caba5
Author: Nikolay Borisov <nik.borisov@...e.com>
AuthorDate: Thu, 13 Jun 2024 14:08:37 +03:00
Committer: Borislav Petkov (AMD) <bp@...en8.de>
CommitterDate: Fri, 14 Jun 2024 18:08:45 +02:00
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@...e.com>
Signed-off-by: Borislav Petkov (AMD) <bp@...en8.de>
Link: https://lore.kernel.org/r/20240613110837.300273-1-nik.borisov@suse.com
---
arch/x86/boot/compressed/misc.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/arch/x86/boot/compressed/misc.c b/arch/x86/boot/compressed/misc.c
index b70e4a2..9444543 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");
-}
Powered by blists - more mailing lists