Thread (107 messages) 107 messages, 6 authors, 2023-01-05

Re: [PATCH v4 11/39] x86/mm: Update pte_modify for _PAGE_COW

flat view

From: Borislav Petkov <bp@alien8.de>
Date: 2023-01-04 13:31:47
Also in: linux-arch, linux-doc, linux-mm, lkml

On Tue, Dec 27, 2022 at 11:31:37PM +0000, Edgecombe, Rick P wrote:
The comment is referring to the dirty bits possibly coming from
newprot,
Ah right, ofc.
but looking at it now I think the code was broken trying to
fix the recent soft dirty test breakage. Now it might lose pre-existing
dirty bits in the pte unessarily... I think.
Right, does this code need to be simplified?

I.e., match the shadow stack PTE (Write=0,Dirty=1) and handle that in a separate
helper?

So that the flows are separate. I'm not a mm guy but this function makes my head
hurt - dunno about other folks. :)

Thx.

-- 
Regards/Gruss,
    Boris.

https://people.kernel.org/tglx/notes-about-netiquette
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help