Re: [PATCH v4 13/39] x86/mm: Start actually marking _PAGE_COW
From: Kees Cook <hidden>
Date: 2022-12-03 02:33:36
Also in:
linux-api, linux-arch, linux-doc, lkml
From: Kees Cook <hidden>
Date: 2022-12-03 02:33:36
Also in:
linux-api, linux-arch, linux-doc, lkml
On Fri, Dec 02, 2022 at 04:35:40PM -0800, Rick Edgecombe wrote:
The recently introduced _PAGE_COW should be used instead of the HW Dirty bit whenever a PTE is Write=0, in order to not inadvertently create shadow stack PTEs. Update pte_mk*() helpers to do this, and apply the same changes to pmd and pud. Tested-by: Pengfei Xu <redacted> Tested-by: John Allen <john.allen@amd.com> Co-developed-by: Yu-cheng Yu <redacted> Signed-off-by: Yu-cheng Yu <redacted>
Reviewed-by: Kees Cook <redacted> -- Kees Cook