Re: [PATCH v2 RESEND] x86/kaslr: Ingest nokaslr to avoid passing it to init process

From: Borislav Petkov
Date: Tue Jan 14 2025 - 15:31:09 EST


On Tue, Jan 14, 2025 at 03:02:34PM +0000, Nir Lichtman wrote:
> Yes indeed, when I made an initramfs with cpio and put a static bash build
> as ./init, It got the nokaslr as the first argument and crashed, this causes
> a general panic since the init process crashed.
>
> This behavior of passing unrecognized params to the init process is
> documented in the kernel docs, and also in the corresponding warning
> message.

So you must be doing something special because all of our systems are running
fine with "nokaslr". As said, stuff would be breaking left'n'right if this
were really a problem.

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette