First published: Fri Jun 03 2011(Updated: )
Andrea Righi reported a case where an exiting task can race against ksmd. ksm_scan.mm_slot == the only registered mm CPU 1 (bug program) CPU 2 (ksmd) list_empty() is false lock ksm_scan.mm_slot list_del unlock slot == &ksm_mm_head (but list is now empty_) Close this race by revalidating that the new slot is not simply the list head again. Reproducer: <a href="http://www.spinics.net/lists/linux-mm/msg20233.html">http://www.spinics.net/lists/linux-mm/msg20233.html</a> Proposed patch: <a href="http://www.spinics.net/lists/linux-mm/msg20301.html">http://www.spinics.net/lists/linux-mm/msg20301.html</a> Acknowledgements: Red Hat would like to thank Andrea Righi for reporting this issue.
Credit: secalert@redhat.com secalert@redhat.com
Affected Software | Affected Version | How to fix |
---|---|---|
Linux Linux kernel | =2.6.39-rc7 | |
Linux Linux kernel | <=2.6.39.2 | |
Linux Linux kernel | =2.6.39-rc6 | |
Linux Linux kernel | =2.6.39-rc4 | |
Linux Linux kernel | =2.6.39.1 | |
Linux Linux kernel | =2.6.39-rc1 | |
Linux Linux kernel | =2.6.39-rc3 | |
Linux Linux kernel | =2.6.39 | |
Linux Linux kernel | =2.6.39-rc2 | |
Linux Linux kernel | =2.6.39-rc5 | |
debian/linux-2.6 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.