Re: mm: fault in __do_fault

From: Andrea Arcangeli
Date: Tue Feb 28 2017 - 10:59:50 EST


On Tue, Feb 28, 2017 at 06:32:20PM +0300, Kirill A. Shutemov wrote:
> Andrea, does it look okay for you?
>
> diff --git a/fs/userfaultfd.c b/fs/userfaultfd.c
> index 625b7285a37b..56f61f1a1dc1 100644
> --- a/fs/userfaultfd.c
> +++ b/fs/userfaultfd.c
> @@ -489,7 +489,7 @@ int handle_userfault(struct vm_fault *vmf, unsigned long reason)
> * in such case.
> */
> down_read(&mm->mmap_sem);
> - ret = 0;
> + ret = VM_FAULT_NOPAGE;
> }
> }

Yes, I did the same fix.