]> git.baikalelectronics.ru Git - kernel.git/commit
mm/gup: Let __get_user_pages_locked() return -EINTR for fatal signal
authorHillf Danton <hdanton@sina.com>
Wed, 8 Apr 2020 15:59:24 +0000 (11:59 -0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 8 Apr 2020 16:05:58 +0000 (09:05 -0700)
commit3706b5a004eda614f6e05dd55111fcfeee072244
tree63df67653103289f0031d7956366af45ad01fe64
parent2a0e90f2f6d77308b54a14fe174104ffdeb41ce3
mm/gup: Let __get_user_pages_locked() return -EINTR for fatal signal

__get_user_pages_locked() will return 0 instead of -EINTR after commit
e856de95bba6c ("mm/gup: allow VM_FAULT_RETRY for multiple times") which
added extra code to allow gup detect fatal signal faster.

Restore the original -EINTR behavior.

Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Fixes: e856de95bba6 ("mm/gup: allow VM_FAULT_RETRY for multiple times")
Reported-by: syzbot+3be1a33f04dc782e9fd5@syzkaller.appspotmail.com
Signed-off-by: Hillf Danton <hdanton@sina.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/gup.c