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

Borislav Petkov
2023-03-03T15:37:36Z

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.