* David Rientjes <rientjes@xxxxxxxxxx> [2010-06-06 15:34:00]: > From: Oleg Nesterov <oleg@xxxxxxxxxx> > > select_bad_process() thinks a kernel thread can't have ->mm != NULL, this > is not true due to use_mm(). > > Change the code to check PF_KTHREAD. > Quick check are all kernel threads marked with PF_KTHREAD? daemonize() marks threads as kernel threads and I suppose children of init_task inherit the flag on fork. I suppose both should cover all kernel threads, but just checking to see if we missed anything. > Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx> > Signed-off-by: Oleg Nesterov <oleg@xxxxxxxxxx> > Signed-off-by: David Rientjes <rientjes@xxxxxxxxxx> -- Three Cheers, Balbir -- 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/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>