Re: [RFC PATCH] x86/Kconfig: Disable KASLR on debug builds
From: Borislav Petkov
Date: Thu Nov 30 2023 - 07:49:26 EST
On Thu, Nov 30, 2023 at 01:08:31PM +0100, Peter Zijlstra wrote:
> Works for me, but I have "nokaslr no_hash_pointers" on all my machines
> by now. It goes right along with "debug ignore_loglevel
> sysrq_always_enabled earlyprintk=serial,ttyS0,115200" :-)
Bah, there's cmdline switches. Lemme add them to all my scripts starting
guests and grub too. Thanks for the hint!
I guess we could still do the Kconfig dependency when we're on new
machines, without the scripts.
Btw, I'm not the only one who's walked right into this one:
config KCOV
bool "Code coverage for fuzzing"
...
If RANDOMIZE_BASE is enabled, PC values will not be stable across
different machines and across reboots. If you need stable PC values,
disable RANDOMIZE_BASE.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette