Disable witness for mutexes created on the stack which allows
authorkurt <kurt@openbsd.org>
Thu, 25 May 2023 19:35:58 +0000 (19:35 +0000)
committerkurt <kurt@openbsd.org>
Thu, 25 May 2023 19:35:58 +0000 (19:35 +0000)
commit7bcaece1a14ea6159682e63e931110f9d520ce67
treea0e970c851cb3a5074a58d2cfe82fcb88edf3f25
parent5d007d6b82241f4e7fba5991516ebfd7fc6adb50
Disable witness for mutexes created on the stack which allows
the ddb command 'show witness' to succeed without panicking.
Leaving witness enabled on these mutexes saves a pointer to
struct lock_type on the stack which gets clobbered resulting
in a panic in witness_ddb_display_descendants().

okay miod@
sys/dev/ic/mfi.c
sys/dev/ic/mpi.c
sys/dev/pci/mfii.c
sys/dev/pci/mpii.c
sys/scsi/scsi_base.c