[PATCH v4 22/26] arm64: mm: move ro_after_init section into the data segment
Kees Cook
keescook at chromium.org
Mon Jun 13 10:00:47 PDT 2022
On Mon, Jun 13, 2022 at 04:45:46PM +0200, Ard Biesheuvel wrote:
> Currently, the ro_after_init sections sits right in the middle of the
> text/rodata/inittext segment, making it difficult to map any of those
> non-writable during early boot. So instead, move it to the start of
> .data, and update the init sequences so that the section is remapped
> read-only once startup completes.
>
> Note that this moves the entire HYP data section into .data as well -
> this likely needs to remain as a single block for now, but could perhaps
> split into a .rodata and .data..ro_after_init section later.
If I'm reading this correctly, this means that .data..ro_after_init now
lives between .data and .rodata?
Do the various LKDTM tests still pass after this change?
Reviewed-by: Kees Cook <keescook at chromium.org>
--
Kees Cook
More information about the linux-arm-kernel
mailing list