Re: [PATCH] khugepaged: adjust VM_BUG_ON_MM() in __khugepaged_enter()

2020-08-17 Thread Yang Shi
On Fri, Aug 14, 2020 at 3:13 PM Hugh Dickins wrote: > > 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()

[PATCH] khugepaged: adjust VM_BUG_ON_MM() in __khugepaged_enter()

2020-08-14 Thread Hugh Dickins
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