On Wed, Jul 01, 2020 at 09:07:54PM +0300, Staffan Thomén wrote:
> [ 184722.7286780] panic: lock error: Mutex: mutex_vector_enter,564: locking > against myself: lock 0xffffc380065c6a40 cpu 0 lwp 0xffffc38007290aa0 > [ 184722.7286780] cpu0: Begin traceback... > [ 184722.7286780] vpanic() at netbsd:vpanic+0x143 > [ 184722.7286780] snprintf() at netbsd:snprintf > [ 184722.7286780] filt_logread() at netbsd:filt_logread > [ 184722.7286780] mutex_vector_enter() at netbsd:mutex_vector_enter+0x158 > [ 184722.7286780] ccdopen() at netbsd:ccdopen+0x52 Yep, the locking in the ccd ioctl path is wrong.