Re: [PATCH RESEND] x86/kaslr: Remove redundant if checks from address selection
From: Borislav Petkov
Date: Thu Jul 30 2026 - 20:08:41 EST
On Tue, Jul 14, 2026 at 10:57:51PM +0200, Thorsten Blum wrote:
> The loop in slots_fetch_random() either returns the slot address or
> exits with i == slot_area_index, making the if check redundant.
>
> The if check in choose_random_location() is also unnecessary since
> commit 8570978ea030 ("x86/boot/compressed/64: Don't pre-map memory in
> KASLR code").
Sorry, you lost me here.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette