On Fri, Nov 25, 2022 at 7:17 PM David Hildenbrand <david@xxxxxxxxxx> wrote: > > On 25.11.22 12:15, hev wrote: > > Hi, David, > > > >> > >> Just to ask again, > >> > >> is code like > >> maybe_mkwrite(pte_mkdirty(entry), vma); > >> > >> Like we have in copy_present_page(), wp_page_reuse(), wp_page_copy() ... > >> broken on LoongArch of the VMA lacks VM_WRITE? > > > > Sorry for the late reply. In this test case, The VMA doesn't lack VM_WRITE. > > > > Let me ask again: is this a problem in all of the functions I mentioned > above were we *could* lack VM_WRITE? > > Because that needs fixing independently of this issue here. Oops. sorry I don't know. Peter?