[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240531190816.GLZlogIGgpc5maOeLN@fat_crate.local>
Date: Fri, 31 May 2024 21:08:16 +0200
From: Borislav Petkov <bp@...en8.de>
To: Kees Cook <kees@...nel.org>
Cc: Jeff Johnson <quic_jjohnson@...cinc.com>,
Nikolay Borisov <nik.borisov@...e.com>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>,
Dave Hansen <dave.hansen@...ux.intel.com>, x86@...nel.org,
"H. Peter Anvin" <hpa@...or.com>, linux-kernel@...r.kernel.org,
linux-hardening@...r.kernel.org, kernel-janitors@...r.kernel.org
Subject: Re: [PATCH] x86/boot: add prototype for __fortify_panic()
On Fri, May 31, 2024 at 09:53:28AM -0700, Kees Cook wrote:
> Under CONFIG_FORTIFY_SOURCE, the boot code *does* still uses
> fortify-string.h. It lets us both catch mistakes we can discover at
> compile and will catch egregious runtime mistakes, though the reporting
> is much simpler in the boot code.
>From where I'm standing, we're not catching anything in the
decompressor:
$ objdump -D arch/x86/boot/compressed/vmlinux | grep __fortify_panic
0000000001bec250 <__fortify_panic>:
$
Sure, in vmlinux proper (allmodconfig) we do:
objdump -D vmlinux | grep __fortify_panic | wc -l
1417
but not in the decompressor which is special anyway.
So we can just as well disable CONFIG_FORTIFY_SOURCE in the decompressor
and not do silly prototypes.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette
Powered by blists - more mailing lists