aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorHugh Dickins <[email protected]>2020-08-20 17:42:02 -0700
committerLinus Torvalds <[email protected]>2020-08-21 09:52:53 -0700
commitf3f99d63a8156c7a4a6b20aac22b53c5579c7dc1 (patch)
treec4fbc902f78e39e40b6dd07c55b31316eb38e7d8 /tools/perf/scripts/python/exported-sql-viewer.py
parentd5a1695977cf60d3f7b387f4d18bd2fb2a9a7a01 (diff)
khugepaged: adjust VM_BUG_ON_MM() in __khugepaged_enter()
syzbot crashes on the VM_BUG_ON_MM(khugepaged_test_exit(mm), mm) in __khugepaged_enter(): yes, when one thread is about to dump core, has set core_state, and is waiting for others, another might do something calling __khugepaged_enter(), which now crashes because I lumped the core_state test (known as "mmget_still_valid") into khugepaged_test_exit(). I still think it's best to lump them together, so just in this exceptional case, check mm->mm_users directly instead of khugepaged_test_exit(). Fixes: bbe98f9cadff ("khugepaged: khugepaged_test_exit() check mmget_still_valid()") Reported-by: syzbot <[email protected]> Signed-off-by: Hugh Dickins <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Acked-by: Yang Shi <[email protected]> Cc: "Kirill A. Shutemov" <[email protected]> Cc: Andrea Arcangeli <[email protected]> Cc: Song Liu <[email protected]> Cc: Mike Kravetz <[email protected]> Cc: Eric Dumazet <[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 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions