Re: [PATCH] x86/mm: Do not verify W^X at boot up

From: Peter Zijlstra
Date: Tue Oct 25 2022 - 05:41:25 EST


On Mon, Oct 24, 2022 at 12:08:49PM -0700, Linus Torvalds wrote:
> I suspect it would be fixed by just moving 'poking_init()' earlier. In
> many ways I suspect it would make most sense as part of 'mm_init()',
> not as a random call fairly late in start_kernel().

dup_mm() doesn't work until after proc_caches_init() at the very least.

Let me see if I can untangle some of this..