commit e4195c01c3e5157c369c80c59a70ef4640463213 Author: Ryota Ozaki Date: Thu Feb 8 12:03:50 2018 +0900 Fix race condition on LP_BOUND diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c index 93aab1558a0..9fe0f735b20 100644 --- a/sys/kern/kern_synch.c +++ b/sys/kern/kern_synch.c @@ -589,7 +589,8 @@ mi_switch(lwp_t *l) * be reset here, if interrupt/preemption happens * early in idle LWP. */ - if (l->l_target_cpu != NULL) { + if (l->l_target_cpu != NULL && + (l->l_pflag & LP_BOUND) == 0) { KASSERT((l->l_pflag & LP_INTR) == 0); spc->spc_migrating = l; }