panic: mutex 0xfffffd806bcd6d80 not held in mtx_leave Starting stack trace... panic(ffffffff830777cb) at panic+0x1d0 sys/kern/subr_prf.c:229 mtx_leave(fffffd806bcd6d80) at mtx_leave+0x17c sys/kern/kern_lock.c:335 msleep(fffffd806bcd6c98,fffffd806bcd6d80,4,ffffffff832017c0,0) at msleep+0x125 sys/kern/kern_synch.c:249 vm_map_lock_ln(fffffd806bcd6c68,fffffd805e2d5230,0) at vm_map_lock_ln+0xd4 sys/uvm/uvm_map.c:5250 uvm_mapanon(fffffd806bcd6c68,ffff80002a042b60,21000,1000,2080713) at uvm_mapanon+0x292 uvm_mmapanon(fffffd806bcd6c68,ffff80002a042b60,21000,3,7,5002,c3fa38182812b5b9,5002) at uvm_mmapanon+0x1d0 sys/uvm/uvm_mmap.c:1019 sys_mmap(ffff800033b976f0,ffff80002a042cd0,ffff80002a042c20) at sys_mmap+0xa96 sys/uvm/uvm_mmap.c:421 syscall(ffff80002a042cd0) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff80002a042cd0) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7affc59d4150, count: 248 End of stack trace. syncing disks...panic: kernel diagnostic assertion "rw_write_held(uobj->vmobjlock)" failed: file "/syzkaller/managers/multicore/kernel/sys/uvm/uvm_vnode.c", line 611 Starting stack trace... panic(ffffffff830e780f) at panic+0x1d0 sys/kern/subr_prf.c:229 __assert(ffffffff8309a24d,ffffffff82fdf167,263,ffffffff8301d9e9) at __assert+0x29 uvn_flush(fffffd806d822a70,0,0,31) at uvn_flush+0xdfd sys/uvm/uvm_vnode.c:754 uvm_vnp_sync(ffff800000b5e000) at uvm_vnp_sync+0x1e7 sys/uvm/uvm_vnode.c:1542 sys_sync(ffff800033b976f0,0,0) at sys_sync+0xd4 sys/kern/vfs_syscalls.c:536 vfs_syncwait(ffff800033b976f0,1) at vfs_syncwait+0x44 vfs_shutdown(ffff800033b976f0) at vfs_shutdown+0x97 sys/kern/vfs_subr.c:1788 boot(100) at boot+0x15c sys/arch/amd64/amd64/machdep.c:907 reboot(100) at reboot+0xb1 panic(ffffffff830777cb) at panic+0x1f9 sys/kern/subr_prf.c:231 mtx_leave(fffffd806bcd6d80) at mtx_leave+0x17c sys/kern/kern_lock.c:335 msleep(fffffd806bcd6c98,fffffd806bcd6d80,4,ffffffff832017c0,0) at msleep+0x125 sys/kern/kern_synch.c:249 vm_map_lock_ln(fffffd806bcd6c68,fffffd805e2d5230,0) at vm_map_lock_ln+0xd4 sys/uvm/uvm_map.c:5250 uvm_mapanon(fffffd806bcd6c68,ffff80002a042b60,21000,1000,2080713) at uvm_mapanon+0x292 uvm_mmapanon(fffffd806bcd6c68,ffff80002a042b60,21000,3,7,5002,c3fa38182812b5b9,5002) at uvm_mmapanon+0x1d0 sys/uvm/uvm_mmap.c:1019 sys_mmap(ffff800033b976f0,ffff80002a042cd0,ffff80002a042c20) at sys_mmap+0xa96 sys/uvm/uvm_mmap.c:421 syscall(ffff80002a042cd0) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff80002a042cd0) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7affc59d4150, count: 239 End of stack trace. dump to dev 4,1 not possible