kernel - More threaded core dump fixes
commit9c9601535e4aadc2fa938d27d69061a0045ea117
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 30 Aug 2016 17:25:59 +0000 (30 10:25 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 30 Aug 2016 17:25:59 +0000 (30 10:25 -0700)
treeae74abb0920d980cb9c8c21f31ea6c90ce06ab94
parenteee86d5a9b698bc2d10bfce462dd5172ed60b767
kernel - More threaded core dump fixes

* Try to make a more comprehensive fix for this, fixing an endless cpu
  loop in the kernel in the process due to mismatched tests.  Incorporate
  the LWP_MP_WEXIT flag into a new test, STOPLWP().

* tsleep() is now more consistent in setting lwp_stat.

* lwpsignal() needs to allow SIGKILL through during the exit sequence
  in order to wakeup any PCATCH tsleep()s.

* Fix bug in the panic coredump code where the dump_stop_usertds variable
  could cause an endless tstop() loop.

Reported-by: zrj
sys/kern/kern_exit.c
sys/kern/kern_sig.c
sys/kern/kern_synch.c
sys/platform/pc64/x86_64/trap.c
sys/sys/proc.h