Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern lwp_start(): don't try to change the target CPU. F...



details:   https://anonhg.NetBSD.org/src/rev/30a1fd1662ad
branches:  trunk
changeset: 846613:30a1fd1662ad
user:      ad <ad%NetBSD.org@localhost>
date:      Sun Nov 24 13:23:57 2019 +0000

description:
lwp_start(): don't try to change the target CPU.  Fixes potential panic
in setrunnable(). Oops, experimental change that escaped.

diffstat:

 sys/kern/kern_lwp.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r fc30df3c5f3b -r 30a1fd1662ad sys/kern/kern_lwp.c
--- a/sys/kern/kern_lwp.c       Sun Nov 24 13:14:23 2019 +0000
+++ b/sys/kern/kern_lwp.c       Sun Nov 24 13:23:57 2019 +0000
@@ -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 @@
                p->p_nrlwps--;
                lwp_unlock(l);
        } else {
-               l->l_cpu = curcpu();
                setrunnable(l);
                /* LWP now unlocked */
        }



Home | Main Index | Thread Index | Old Index