Discussion:
git: kernel - Fix nstopped SMP race during core dump
Matthew Dillon
2018-11-29 18:38:39 UTC
Permalink
commit ac39aef5784e98daa12380ddfdd32914cbd79141
Author: Matthew Dillon <***@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
Loading...