# Re: \[PATCH v20 07/25\] x86/mm: Remove \_PAGE\_DIRTY from kernel RO pages

- From: Kees Cook \<hidden\>
- Date: 2021-02-10 19:37:23 
- List: linux-arch
- Page: https://ratatoskr.run/linux-arch/2021/02/6266393
- Thread: https://ratatoskr.run/linux-doc/2021/02/6266248/t.md

```text
On Wed, Feb 10, 2021 at 09:56:45AM -0800, Yu-cheng Yu wrote:
> The x86 family of processors do not directly create read-only and Dirty
> PTEs.  These PTEs are created by software.  One such case is that kernel
> read-only pages are historically setup as Dirty.
> 
> New processors that support Shadow Stack regard read-only and Dirty PTEs as
> shadow stack pages.  This results in ambiguity between shadow stack and
> kernel read-only pages.  To resolve this, removed Dirty from kernel read-
> only pages.
> 
> Signed-off-by: Yu-cheng Yu <redacted>

Reviewed-by: Kees Cook <redacted>

-- 
Kees Cook
```
