git: kernel - Fix nstopped SMP race during core dump

Matthew Dillon dillon at crater.dragonflybsd.org
Thu Nov 29 10:38:39 PST 2018


commit ac39aef5784e98daa12380ddfdd32914cbd79141
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed Nov 28 22:56:24 2018 -0800

    kernel - Fix nstopped SMP race during core dump
    
    * During a process core dump, p->p_nstopped can be adjusted without
      holding p->p_token, resulting in a SMP race which can cause
      p_nstopped to become permanently desynchronized and deadlock the
      process.
    
    * Be robust in a p_nstopped handling case in kern_exit, just in case.

Summary of changes:
 sys/kern/kern_exit.c  |  2 +-
 sys/kern/kern_synch.c | 11 +++++++----
 2 files changed, 8 insertions(+), 5 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ac39aef5784e98daa12380ddfdd32914cbd79141


-- 
DragonFly BSD source repository


More information about the Commits mailing list