Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mm/mempolicy: Allow lookup_node() to handle fatal signal
lookup_node() uses gup to pin the page and get node information. It checks against ret>=0 assuming the page will be filled in. However it's also possible that gup will return zero, for example, when the thread is quickly killed with a fatal signal. Teach lookup_node() to gracefully return an error -EFAULT if it happens. Reported-by: syzbot+693dc11fcb53120b5559@syzkaller.appspotmail.com Fixes: 4426e94 ("mm/gup: allow VM_FAULT_RETRY for multiple times") Signed-off-by: Peter Xu <peterx@redhat.com>
- Loading branch information