git: kernel - Fix panic in sysctl_kern_proc()

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Oct 16 15:12:19 PDT 2013


commit 849425f7e706be67a8ab9b970375d0a9896476bd
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed Oct 16 15:10:50 2013 -0700

    kernel - Fix panic in sysctl_kern_proc()
    
    * sysctl_kern_proc() loops through ncpus and moves the thread to each cpu
      in turn in order to access its local thread list.
    
    * Fix a panic where the function does not return on the same cpu it was
      called on.  The userland scheduler expects threads to return to usermode
      on the same cpu they left usermode on and is responsible for moving the
      thread to another cpu (for userland scheduling purposes) itself.

Summary of changes:
 sys/kern/kern_proc.c | 8 ++++++++
 1 file changed, 8 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/849425f7e706be67a8ab9b970375d0a9896476bd


-- 
DragonFly BSD source repository


More information about the Commits mailing list