On Mon, 7 Jun 2010, Balbir Singh wrote: > > 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. > Right, it's the inheritance from init_task that is the key which gets cleared on exec for all user threads. -- 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>