Thread (95 messages) 95 messages, 16 authors, 2021-01-15

Re: [PATCH 2/2] mm: soft_dirty: userfaultfd: introduce wrprotect_tlb_flush_pending

From: Linus Torvalds <torvalds@linux-foundation.org>
Date: 2021-01-07 22:43:30
Also in: lkml

On Thu, Jan 7, 2021 at 2:31 PM Andrea Arcangeli [off-list ref] wrote:
Random memory corruption will still silently materialize as result of
the speculative lookups in the above scenario.
Explain.

Yes, you'll get random memory corruption if you keep doing wrprotect()
without mmap_sem held for writing.

But I thought we agreed earlier that that is a bug. And I thought the
softdirty code already got it for writing.

           Linus
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help