Re: [PATCH v2 2/2] x86/mm/64: free the gap between BSS_MAIN and BSS_DECRYPTED
From: Borislav Petkov
Date: Thu Jul 09 2026 - 18:37:13 EST
On Tue, Jun 23, 2026 at 11:24:30AM -0400, Hamza Mahfooz wrote:
> This region is unused after mark_rodata_ro() and takes up, up to 2 MiB
> of memory. So, free it in mark_rodata_ro().
>
> Co-developed-by: Jared White <jaredwhite@xxxxxxxxxxxxx>
> Signed-off-by: Jared White <jaredwhite@xxxxxxxxxxxxx>
> Signed-off-by: Hamza Mahfooz <hamzamahfooz@xxxxxxxxxxxxxxxxxxx>
> ---
> arch/x86/include/asm/sections.h | 1 +
> arch/x86/kernel/vmlinux.lds.S | 2 ++
> arch/x86/mm/init_64.c | 4 ++++
> 3 files changed, 7 insertions(+)
Sashiko has comments:
https://sashiko.dev/#/patchset/20260623152430.1473481-1-hamzamahfooz%40linux.microsoft.com
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette