In the Linux kernel, the following vulnerability has been resolved: md/dm-raid: don't call mdreapsyncthread() directly Currently mdreapsyncthread() is called from raidmessage() directly without holding 'reconfigmutex', this is definitely unsafe because mdreapsyncthread() can change many fields that is protected by 'reconfigmutex'. However, hold 'reconfigmutex' here is still problematic because this will cause deadlock, for example, commit 130443d60b1b ("md: refactor idle/frozensyncthread() to fix deadlock"). Fix this problem by using stopsyncthread() to unregister syncthread, like md/raid did.