kernel - Fix excessive call stack depth on stuck interrupt
commit203592a0390a38f65c5ca941c389ca470d73eeeb
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 19 May 2017 17:51:55 +0000 (19 10:51 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 19 May 2017 17:51:55 +0000 (19 10:51 -0700)
treec2e0aa45c0b2cf718485168e5e265783efed94de
parentcb803e4d0614c524dad992c101826e49ef276726
kernel - Fix excessive call stack depth on stuck interrupt

* Fix an issue where a stuck level interrupt can result in an excessively
  deep call-stack and possible panic.

* Fixed by disallow thread preemption when curthread->td_nest_count
  is >= 2.  The critical section count test is not sufficient for the
  fast-interrupt unpend -> preemption case.
sys/kern/kern_intr.c
sys/kern/lwkt_thread.c