]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/boot: Split off PE/COFF .data section
authorArd Biesheuvel <ardb@kernel.org>
Fri, 15 Sep 2023 17:16:31 +0000 (17:16 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Feb 2024 08:25:27 +0000 (09:25 +0100)
commitf7eedad780689ebd4ba93b9ef5e90048e7ff3c2e
tree262e04a24c25dec6fd2dd85b1cb4eebe8b118d4c
parent476316bb48c1eea1ad1d317615f715f8d067166d
x86/boot: Split off PE/COFF .data section

commit 34951f3c28bdf6481d949a20413b2ce7693687b2 upstream.

Describe the code and data of the decompressor binary using separate
.text and .data PE/COFF sections, so that we will be able to map them
using restricted permissions once we increase the section and file
alignment sufficiently. This avoids the need for memory mappings that
are writable and executable at the same time, which is something that
is best avoided for security reasons.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20230915171623.655440-17-ardb@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/boot/Makefile
arch/x86/boot/header.S