kernel - Fix multi-threaded coredump
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 9 Sep 2015 03:11:00 +0000 (20:11 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 9 Sep 2015 03:11:00 +0000 (20:11 -0700)
commit1a3f33f1f01a6bd58a18d49ce378cf1e03d9e5a4
tree55dab67cfc49805be6c2a9e5e97f0594712e95c1
parent847f4e7544fc2c59db22ea52e93ea7f40bedd370
kernel - Fix multi-threaded coredump

* Recent commits to freeze threads on a coredump introduced a bug
  where threads entering a wait state could stall the coredump
  indefinitely.

* Fix by counting such threads as being stopped before entering the
  wait state, allowing the coredump to proceed.  Do not try to issue
  an early signal which could disrupt the state the coredump is trying
  to save.

Reported-by: Justin C. Sherrill <justin@shiningsilence.com>
sys/kern/kern_synch.c