Module Name: src Committed By: ad Date: Sun Nov 24 13:23:57 UTC 2019
Modified Files: src/sys/kern: kern_lwp.c Log Message: lwp_start(): don't try to change the target CPU. Fixes potential panic in setrunnable(). Oops, experimental change that escaped. To generate a diff of this commit: cvs rdiff -u -r1.213 -r1.214 src/sys/kern/kern_lwp.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/kern/kern_lwp.c diff -u src/sys/kern/kern_lwp.c:1.213 src/sys/kern/kern_lwp.c:1.214 --- src/sys/kern/kern_lwp.c:1.213 Sun Nov 24 13:14:23 2019 +++ src/sys/kern/kern_lwp.c Sun Nov 24 13:23:57 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: kern_lwp.c,v 1.213 2019/11/24 13:14:23 ad Exp $ */ +/* $NetBSD: kern_lwp.c,v 1.214 2019/11/24 13:23:57 ad Exp $ */ /*- * Copyright (c) 2001, 2006, 2007, 2008, 2009, 2019 The NetBSD Foundation, Inc. @@ -209,7 +209,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: kern_lwp.c,v 1.213 2019/11/24 13:14:23 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kern_lwp.c,v 1.214 2019/11/24 13:23:57 ad Exp $"); #include "opt_ddb.h" #include "opt_lockdebug.h" @@ -1003,7 +1003,6 @@ lwp_start(lwp_t *l, int flags) p->p_nrlwps--; lwp_unlock(l); } else { - l->l_cpu = curcpu(); setrunnable(l); /* LWP now unlocked */ }