aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/class/cdc-acm.c
diff options
context:
space:
mode:
authorHugh Dickins <[email protected]>2020-08-07 06:26:25 +0000
committerLinus Torvalds <[email protected]>2020-08-07 18:33:29 +0000
commitbbe98f9cadff58cdd6a4acaeba0efa8565dabe65 (patch)
treea1a006139ee1f1335ed085830965f9962fd068da /drivers/usb/class/cdc-acm.c
parentkhugepaged: retract_page_tables() remember to test exit (diff)
downloadkernel-bbe98f9cadff58cdd6a4acaeba0efa8565dabe65.tar.gz
kernel-bbe98f9cadff58cdd6a4acaeba0efa8565dabe65.zip
khugepaged: khugepaged_test_exit() check mmget_still_valid()
Move collapse_huge_page()'s mmget_still_valid() check into khugepaged_test_exit() itself. collapse_huge_page() is used for anon THP only, and earned its mmget_still_valid() check because it inserts a huge pmd entry in place of the page table's pmd entry; whereas collapse_file()'s retract_page_tables() or collapse_pte_mapped_thp() merely clears the page table's pmd entry. But core dumping without mmap lock must have been as open to mistaking a racily cleared pmd entry for a page table at physical page 0, as exit_mmap() was. And we certainly have no interest in mapping as a THP once dumping core. Fixes: 59ea6d06cfa9 ("coredump: fix race condition between collapse_huge_page() and core dumping") Signed-off-by: Hugh Dickins <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Cc: Andrea Arcangeli <[email protected]> Cc: Song Liu <[email protected]> Cc: Mike Kravetz <[email protected]> Cc: Kirill A. Shutemov <[email protected]> Cc: <[email protected]> [4.8+] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/usb/class/cdc-acm.c')
0 files changed, 0 insertions, 0 deletions