Re: [PATCH v7 20/41] x86/mm: Teach pte_mkwrite() about stack memory

From: Borislav Petkov
Date: Fri Mar 03 2023 - 10:37:38 EST


On Mon, Feb 27, 2023 at 02:29:36PM -0800, Rick Edgecombe wrote:
> If a VMA has the VM_SHADOW_STACK flag, it is shadow stack memory. So
> when it is made writable with pte_mkwrite(), it should create shadow
> stack memory, not conventionally writable memory. Now that pte_mkwrite()
> takes a VMA, and places where shadow stack memory might be created pass
> one, pte_mkwrite() can know when it should do this.
^^^^

This sentence needs rewriting.

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette