Skip to content
Commit 3db03fb4 authored by Peter Zijlstra's avatar Peter Zijlstra
Browse files

x86/mm: Fix pti_clone_entry_text() for i386

While x86_64 has PMD aligned text sections, i386 does not have this
luxery. Notably ALIGN_ENTRY_TEXT_END is empty and _etext has PAGE
alignment.

This means that text on i386 can be page granular at the tail end,
which in turn means that the PTI text clones should consistently
account for this.

Make pti_clone_entry_text() consistent with pti_clone_kernel_text().

Fixes: 16a3fe63

 ("x86/mm/pti: Clone kernel-image on PTE level for 32 bit")
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
parent 41e71dbb
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment