* Andrea Righi (andrea@xxxxxxxxxxxxxxx) wrote: > On Thu, Jun 02, 2011 at 10:35:49AM -0700, Chris Wright wrote: > > 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. > > I confirm this fixes the problem on my side. > > Tested-by: Andrea Righi <andrea@xxxxxxxxxxxxxxx> Great, thanks for verifying. thanks, -chris -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxxx For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>