HomeFreeBSD

Don't make assertions about td_critnest when the scheduler is stopped.

Description

Don't make assertions about td_critnest when the scheduler is stopped.

A panicking thread always executes with a critical section held, so any
attempt to allocate or free memory while dumping will otherwise cause a
second panic. This can occur, for example, if xpt_polled_action() completes
non-dump I/O that was pending at the time of the panic. The fact that this
can occur is itself a bug, but asserting in this case does little but
reduce the reliability of kernel dumps.

Suggested by: kib
Reported by: pho

Details

Provenance
markjAuthored on
Parents
rS292116: elfcopy: include extension but replace . when converting from binary
Branches
Unknown
Tags
Unknown