Re: [PATCH] mm/userfaultfd: fix memory corruption due to writeprotect
From: Linus Torvalds
Date: Mon Dec 21 2020 - 15:27:24 EST
On Mon, Dec 21, 2020 at 12:23 PM Nadav Amit <nadav.amit@xxxxxxxxx> wrote:
>
> Using mmap_write_lock() was my initial fix and there was a strong pushback
> on this approach due to its potential impact on performance.
>From whom?
Somebody who doesn't understand that correctness is more important
than performance? And that userfaultfd is not the most important part
of the system?
The fact is, userfaultfd is CLEARLY BUGGY.
Linus