Re: [PATCH 30/39] x86/mm/pti: Clone entry-text again in pti_finalize()

From: Andy Lutomirski
Date: Fri Jul 13 2018 - 19:22:10 EST


On Wed, Jul 11, 2018 at 4:29 AM, Joerg Roedel <joro@xxxxxxxxxx> wrote:
> From: Joerg Roedel <jroedel@xxxxxxx>
>
> The mapping for entry-text might have changed in the kernel
> after it was cloned to the user page-table. Clone again
> to update the user page-table to bring the mapping in sync
> with the kernel again.

Can't we just defer pti_init() until after mark_readonly()? What am I missing?