[PATCH 0/2] mm: Two small fixes for recent syzbot reports
From: Peter Xu
Date: Tue Apr 07 2020 - 21:40:24 EST
The two patches should fix below syzbot reports:
BUG: unable to handle kernel paging request in kernel_get_mempolicy
https://lore.kernel.org/lkml/0000000000002b25f105a2a3434d@xxxxxxxxxx/
WARNING: bad unlock balance in __get_user_pages_remote
https://lore.kernel.org/lkml/00000000000005c65d05a2b90e70@xxxxxxxxxx/
Note that the 1st patch also applied two extra small changes comparing
to when posted on the list in that: (1) it squashed an "interupt"
spelling error that Andrew has pointed out when picked up, and (2) it
also initializes the "page" pointer to NULL. But I'm fairly confident
it shouldn't affect the correctness of the patch.
The 2nd patch is exactly the patch posted previously.
Thanks,
Peter Xu (2):
mm/mempolicy: Allow lookup_node() to handle fatal signal
mm/gup: Mark lock taken only after a successful retake
mm/gup.c | 2 +-
mm/mempolicy.c | 7 +++++--
2 files changed, 6 insertions(+), 3 deletions(-)
--
2.24.1