panic: acquiring blockable sleep lock with spinlock or critical section held (kernel_lock) &kernel_lock Stopped at db_enter+0x1c: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *111574 1530 0 0x8000000 0 0 syz-executor276929010 db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff828e57a0) at panic+0x17b sys/kern/subr_prf.c:198 witness_checkorder(ffffffff82e568e8,9,0) at witness_checkorder+0xd03 witness_debugger sys/kern/subr_witness.c:2524 [inline] witness_checkorder(ffffffff82e568e8,9,0) at witness_checkorder+0xd03 sys/kern/subr_witness.c:786 __mp_lock(ffffffff82e566e0) at __mp_lock+0xa2 read_rflags machine/cpufunc.h:195 [inline] __mp_lock(ffffffff82e566e0) at __mp_lock+0xa2 intr_disable machine/cpufunc.h:216 [inline] __mp_lock(ffffffff82e566e0) at __mp_lock+0xa2 sys/kern/kern_lock.c:142 intr_handler(ffff80002a1e37d0,ffff80000067b300) at intr_handler+0x62 sys/arch/amd64/amd64/intr.c:539 Xintr_ioapic_edge26_untramp() at Xintr_ioapic_edge26_untramp+0x18f Xspllower() at Xspllower+0x1d mtx_enter_try(ffffffff82e879e0) at mtx_enter_try+0x103 mtx_enter(ffffffff82e879e0) at mtx_enter+0x4e sys/kern/kern_lock.c:266 pool_get(ffffffff82e879e0,9) at pool_get+0xc4 sys/kern/subr_pool.c:579 uvmspace_alloc(0,411ef000,1,0) at uvmspace_alloc+0x41 sys/uvm/uvm_map.c:3279 vm_impl_init(ffff80002a1abb30,ffff8000ffffc010) at vm_impl_init+0x92 sys/arch/amd64/amd64/vmm_machdep.c:1245 vm_create(ffff800000da8400,ffff8000ffffc010) at vm_create+0x13e sys/dev/vmm/vmm.c:388 vmmioctl(a00,c2585601,ffff800000da8400,1,ffff8000ffffc010) at vmmioctl+0x2de end trace frame: 0xffff80002a1e3c90, count: 0 https://www.openbsd.org/ddb.html describes the minimum info required in bug reports. Insufficient info makes it difficult to find and fix bugs. ddb{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic *cpu0: acquiring blockable sleep lock with spinlock or critical section held (kernel_lock) &kernel_lock ddb{0}> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff828e57a0) at panic+0x17b sys/kern/subr_prf.c:198 witness_checkorder(ffffffff82e568e8,9,0) at witness_checkorder+0xd03 witness_debugger sys/kern/subr_witness.c:2524 [inline] witness_checkorder(ffffffff82e568e8,9,0) at witness_checkorder+0xd03 sys/kern/subr_witness.c:786 __mp_lock(ffffffff82e566e0) at __mp_lock+0xa2 read_rflags machine/cpufunc.h:195 [inline] __mp_lock(ffffffff82e566e0) at __mp_lock+0xa2 intr_disable machine/cpufunc.h:216 [inline] __mp_lock(ffffffff82e566e0) at __mp_lock+0xa2 sys/kern/kern_lock.c:142 intr_handler(ffff80002a1e37d0,ffff80000067b300) at intr_handler+0x62 sys/arch/amd64/amd64/intr.c:539 Xintr_ioapic_edge26_untramp() at Xintr_ioapic_edge26_untramp+0x18f Xspllower() at Xspllower+0x1d mtx_enter_try(ffffffff82e879e0) at mtx_enter_try+0x103 mtx_enter(ffffffff82e879e0) at mtx_enter+0x4e sys/kern/kern_lock.c:266 pool_get(ffffffff82e879e0,9) at pool_get+0xc4 sys/kern/subr_pool.c:579 uvmspace_alloc(0,411ef000,1,0) at uvmspace_alloc+0x41 sys/uvm/uvm_map.c:3279 vm_impl_init(ffff80002a1abb30,ffff8000ffffc010) at vm_impl_init+0x92 sys/arch/amd64/amd64/vmm_machdep.c:1245 vm_create(ffff800000da8400,ffff8000ffffc010) at vm_create+0x13e sys/dev/vmm/vmm.c:388 vmmioctl(a00,c2585601,ffff800000da8400,1,ffff8000ffffc010) at vmmioctl+0x2de VOP_IOCTL(fffffd807e863cb0,c2585601,ffff800000da8400,1,fffffd807f7d38f0,ffff8000ffffc010) at VOP_IOCTL+0x9a sys/kern/vfs_vops.c:264 vn_ioctl(fffffd806e3d0c88,c2585601,ffff800000da8400,ffff8000ffffc010) at vn_ioctl+0xc0 sys/kern/vfs_vnops.c:525 sys_ioctl(ffff8000ffffc010,ffff80002a1e3f90,ffff80002a1e3ee0) at sys_ioctl+0x4a9 syscall(ffff80002a1e3f90) at syscall+0x8cf mi_syscall sys/sys/syscall_mi.h:180 [inline] syscall(ffff80002a1e3f90) at syscall+0x8cf sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7bb09a1ebdf0, count: -19 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80002a1e35c0 rbx 0xffffffff82d55d77 cpu_info_full_primary+0x2d77 rdx 0x3fd rcx 0 rax 0x68 r8 0x101010101010101 r9 0x8080808080808080 r10 0x5973e9b7deaf508c r11 0xdcad40ea3b668668 r12 0xffffffff82d55b78 cpu_info_full_primary+0x2b78 r13 0 r14 0 r15 0x1 rip 0xffffffff8173687c db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff80002a1e35b0 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor276929010) tid=111574 pid=1530 tcnt=1 stat=onproc flags process=8000000 proc=0 runpri=52, usrpri=52, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 forw=0xffffffffffffffff, list=0xffff8000ffffd200,0xffffffff82d80820 process=0xffff8000ffff91d0 user=0xffff80002a1df000, vmspace=0xfffffd8008b8a370 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=0, intr=1 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND * 1530 111574 80089 0 7 0x8000000 syz-executor276929010 80089 115948 38737 0 3 0x8000082 nanoslp syz-executor276929010 38737 221963 53859 0 3 0x810008a sigsusp ksh 53859 5511 33428 0 3 0x1800009a kqread sshd 57759 287641 1 0 3 0x18100083 ttyin getty 33428 141620 1 0 3 0x18000088 kqread sshd 40560 134571 40920 73 3 0x19100010 ffs_fsync syslogd 40920 319681 1 0 3 0x18100082 sbwait syslogd 61519 245725 1 0 3 0x18100080 kqread resolvd 16030 462226 4588 77 3 0x18100092 kqread dhcpleased 98136 383524 4588 77 3 0x18100092 kqread dhcpleased 4588 236003 1 0 3 0x18000080 kqread dhcpleased 25587 169073 0 0 3 0x14200 bored smr 64641 207364 0 0 3 0x14200 pgzero zerothread 48636 180134 0 0 3 0x14200 aiodoned aiodoned 90848 253141 0 0 3 0x14200 syncer update 77194 88518 0 0 3 0x14200 cleaner cleaner 60760 54526 0 0 3 0x14200 reaper reaper 12803 75277 0 0 3 0x14200 pgdaemon pagedaemon 98422 93725 0 0 3 0x14200 bored viomb 78204 318985 0 0 3 0x40014200 acpi0 acpi0 37945 82415 0 0 7 0x40014200 idle1 55887 98878 0 0 3 0x14200 bored softnet3 75447 6692 0 0 3 0x14200 bored softnet2 22455 523665 0 0 3 0x14200 bored softnet1 16961 413557 0 0 3 0x14200 bored softnet0 33700 380275 0 0 3 0x14200 bored systqmp 82904 3250 0 0 3 0x14200 bored systq 10735 301466 0 0 3 0x14200 tmoslp softclockmp 95070 59514 0 0 3 0x40014200 tmoslp softclock 39326 6216 0 0 3 0x40014200 idle0 1 62842 0 0 3 0x8000082 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks CPU 0: exclusive mutex vmsppl r = 0 (0xffffffff82e879f0) #0 witness_lock+0x446 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x446 sys/kern/subr_witness.c:1157 #1 mtx_enter_try+0x103 #2 mtx_enter+0x4e sys/kern/kern_lock.c:266 #3 pool_get+0xc4 sys/kern/subr_pool.c:579 #4 uvmspace_alloc+0x41 sys/uvm/uvm_map.c:3279 #5 vm_impl_init+0x92 sys/arch/amd64/amd64/vmm_machdep.c:1245 #6 vm_create+0x13e sys/dev/vmm/vmm.c:388 #7 vmmioctl+0x2de #8 VOP_IOCTL+0x9a sys/kern/vfs_vops.c:264 #9 vn_ioctl+0xc0 sys/kern/vfs_vnops.c:525 #10 sys_ioctl+0x4a9 #11 syscall+0x8cf mi_syscall sys/sys/syscall_mi.h:180 [inline] #11 syscall+0x8cf sys/arch/amd64/amd64/trap.c:577 #12 Xsyscall+0x128 Process 40560 (syslogd) thread 0xffff8000ffffdc40 (134571) exclusive rrwlock inode r = 0 (0xfffffd806e755810) #0 witness_lock+0x446 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x446 sys/kern/subr_witness.c:1157 #1 rw_enter+0x32d sys/kern/kern_rwlock.c:309 #2 rrw_enter+0x91 sys/kern/kern_rwlock.c:464 #3 VOP_LOCK+0x8b sys/kern/vfs_vops.c:518 #4 vn_lock+0x85 sys/kern/vfs_vnops.c:564 #5 sys_fsync+0xf1 sys/kern/vfs_syscalls.c:2904 #6 syscall+0x854 mi_syscall sys/sys/syscall_mi.h:180 [inline] #6 syscall+0x854 sys/arch/amd64/amd64/trap.c:577 #7 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10143 6388K 6419K 166960K 11221 0 pcb 17 12K 12K 166960K 17 0 rtable 58 1K 2K 166960K 107 0 pf 12 6K 10K 166960K 23 0 ifaddr 12 9K 9K 166960K 12 0 ifgroup 17 1K 1K 166960K 17 0 counters 48 34K 34K 166960K 48 0 ioctlops 1 1K 4K 166960K 3221 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1260 79K 79K 166960K 1279 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 3 5K 5K 166960K 1750 0 VM map 2 1K 1K 166960K 2 0 sem 2 0K 0K 166960K 2 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 1 0K 0K 166960K 1 0 proc 55 78K 79K 166960K 256 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 in_multi 11 0K 0K 166960K 11 0 ether_multi 1 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 25 122K 122K 166960K 25 0 exec 0 0K 1K 166960K 249 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 95 4K 5K 166960K 5870 0 UVM aobj 3 2K 2K 166960K 3 0 pinsyscall 22 44K 48K 166960K 2600 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 NDP 3 0K 0K 166960K 3 0 temp 1 6804K 6868K 166960K 2965 0 kqueue 11 16K 18K 166960K 24 0 SYN cache 2 16K 16K 166960K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 24 0 0 1 0 1 1 0 8 0 rtpcb 120 17 0 14 1 0 1 1 0 8 0 rtentry 112 23 0 1 1 0 1 1 0 8 0 unpcb 144 33 0 20 1 0 1 1 0 8 0 syncache 336 5 0 5 2 2 0 1 0 8 0 tcpqe 32 21 0 21 1 1 0 1 0 8 0 tcpcb 808 8 0 5 1 0 1 1 0 8 0 arp 120 2 0 0 1 0 1 1 0 8 0 inpcb 384 30 0 24 1 0 1 1 0 8 0 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 9 0 7 1 0 1 1 0 8 0 pfstkey 128 9 0 7 1 0 1 1 0 8 0 pfstate 376 9 0 7 1 0 1 1 0 8 0 pfrule 1344 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 97 0 0 7 0 7 7 0 8 0 art_table 32 98 0 0 1 0 1 1 0 8 0 art_node 16 22 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1507 0 40 92 0 92 92 0 8 0 ffsino 272 1507 0 40 98 0 98 98 0 8 0 nchpl 144 1695 0 47 63 1 62 62 0 8 0 uvmvnodes 80 1520 0 0 32 0 32 32 0 8 0 vnodes 216 1520 0 0 85 0 85 85 0 8 0 namei 1024 7941 0 7941 2 1 1 1 0 8 1 percpumem 16 38 0 0 1 0 1 1 0 8 0 vmpool 696 1748 0 1747 1 0 1 1 0 8 0 kstatmem 264 6 0 0 1 0 1 1 0 8 0 scxspl 216 13416 0 13415 10 9 1 8 1 8 0 plimitpl 152 16 0 10 1 0 1 1 0 8 0 sigapl 424 2064 0 2032 4 0 4 4 0 8 0 knotepl 120 44 0 0 2 0 2 2 0 8 0 kqueuepl 216 20 0 13 1 0 1 1 0 8 0 pipepl 320 90 0 87 2 1 1 1 0 8 0 fdescpl 496 2046 0 2032 3 1 2 3 0 8 0 filepl 152 2950 0 2896 3 0 3 3 0 8 0 lockfpl 104 6 0 4 1 0 1 1 0 8 0 lockfspl 48 4 0 2 1 0 1 1 0 8 0 sessionpl 144 17 0 9 1 0 1 1 0 8 0 pgrppl 48 17 0 9 1 0 1 1 0 8 0 ucredpl 104 66 0 56 1 0 1 1 0 8 0 zombiepl 144 2032 0 2032 2 1 1 1 0 8 1 processpl 1136 2064 0 2032 3 0 3 3 0 8 0 procpl 656 2064 0 2032 3 0 3 3 0 8 0 sockpl 664 80 0 58 2 0 2 2 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 373 0 0 47 0 47 47 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 405 0 0 26 0 26 26 0 8 0 bufpl 280 2641 0 97 182 0 182 182 0 8 0 anonpl 24 199606 0 197842 25 14 11 23 0 186 0 amapchunkpl 152 10288 0 10157 7 1 6 7 0 158 0 amappl16 200 7312 0 7311 6 5 1 5 0 8 0 amappl15 192 12 0 11 1 0 1 1 0 8 0 amappl14 184 105 0 96 1 0 1 1 0 8 0 amappl13 176 10 0 10 1 1 0 1 0 8 0 amappl12 168 806 0 794 1 0 1 1 0 8 0 amappl11 160 84 0 74 1 0 1 1 0 8 0 amappl10 152 54 0 54 2 2 0 1 0 8 0 amappl9 144 396 0 396 1 1 0 1 0 8 0 amappl8 136 67 0 65 1 0 1 1 0 8 0 amappl7 128 43 0 42 1 0 1 1 0 8 0 amappl6 120 180 0 169 1 0 1 1 0 8 0 amappl5 112 130 0 118 1 0 1 1 0 8 0 amappl4 104 2167 0 2140 1 0 1 1 0 8 0 amappl3 96 1611 0 1587 1 0 1 1 0 8 0 amappl2 88 2306 0 2253 2 0 2 2 0 8 0 amappl1 80 12311 0 11909 14 4 10 11 0 8 0 amappl 88 5561 0 5512 2 0 2 2 0 92 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 253 0 253 1 1 0 1 0 8 0 dma64 64 6 0 6 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 3793 0 3779 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3793 0 3779 1 0 1 1 0 8 0 vmmpekpl 168 9089 0 9071 1 0 1 1 0 8 0 vmmpepl 168 72556 0 71646 51 9 42 46 0 357 0 vmsppl 440 3792 0 3779 2 0 2 2 0 8 0 rwobjpl 56 22306 0 20188 32 1 31 32 0 8 0 pdppl 4096 7593 0 7558 55 18 37 41 0 8 2 pvpl 32 6311 0 0 52 1 51 51 0 265 0 pmappl 248 3792 0 3779 2 1 1 2 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 339 0 23 10 0 10 10 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff828e57a0) at panic+0x17b sys/kern/subr_prf.c:198 witness_checkorder(ffffffff82e568e8,9,0) at witness_checkorder+0xd03 witness_debugger sys/kern/subr_witness.c:2524 [inline] witness_checkorder(ffffffff82e568e8,9,0) at witness_checkorder+0xd03 sys/kern/subr_witness.c:786 __mp_lock(ffffffff82e566e0) at __mp_lock+0xa2 read_rflags machine/cpufunc.h:195 [inline] __mp_lock(ffffffff82e566e0) at __mp_lock+0xa2 intr_disable machine/cpufunc.h:216 [inline] __mp_lock(ffffffff82e566e0) at __mp_lock+0xa2 sys/kern/kern_lock.c:142 intr_handler(ffff80002a1e37d0,ffff80000067b300) at intr_handler+0x62 sys/arch/amd64/amd64/intr.c:539 Xintr_ioapic_edge26_untramp() at Xintr_ioapic_edge26_untramp+0x18f Xspllower() at Xspllower+0x1d mtx_enter_try(ffffffff82e879e0) at mtx_enter_try+0x103 mtx_enter(ffffffff82e879e0) at mtx_enter+0x4e sys/kern/kern_lock.c:266 pool_get(ffffffff82e879e0,9) at pool_get+0xc4 sys/kern/subr_pool.c:579 uvmspace_alloc(0,411ef000,1,0) at uvmspace_alloc+0x41 sys/uvm/uvm_map.c:3279 vm_impl_init(ffff80002a1abb30,ffff8000ffffc010) at vm_impl_init+0x92 sys/arch/amd64/amd64/vmm_machdep.c:1245 vm_create(ffff800000da8400,ffff8000ffffc010) at vm_create+0x13e sys/dev/vmm/vmm.c:388 vmmioctl(a00,c2585601,ffff800000da8400,1,ffff8000ffffc010) at vmmioctl+0x2de VOP_IOCTL(fffffd807e863cb0,c2585601,ffff800000da8400,1,fffffd807f7d38f0,ffff8000ffffc010) at VOP_IOCTL+0x9a sys/kern/vfs_vops.c:264 vn_ioctl(fffffd806e3d0c88,c2585601,ffff800000da8400,ffff8000ffffc010) at vn_ioctl+0xc0 sys/kern/vfs_vnops.c:525 sys_ioctl(ffff8000ffffc010,ffff80002a1e3f90,ffff80002a1e3ee0) at sys_ioctl+0x4a9 syscall(ffff80002a1e3f90) at syscall+0x8cf mi_syscall sys/sys/syscall_mi.h:180 [inline] syscall(ffff80002a1e3f90) at syscall+0x8cf sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7bb09a1ebdf0, count: -19 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1e: addq $0x8,%rsp x86_ipi_db(ffff800029cebff0) at x86_ipi_db+0x1e sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 acpicpu_idle() at acpicpu_idle+0x2f1 sys/dev/acpi/acpicpu.c:1206 sched_idle(ffff800029cebff0) at sched_idle+0x41d sys/kern/kern_sched.c:183 end trace frame: 0x0, count: 10 ddb{1}> trace x86_ipi_db(ffff800029cebff0) at x86_ipi_db+0x1e sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 acpicpu_idle() at acpicpu_idle+0x2f1 sys/dev/acpi/acpicpu.c:1206 sched_idle(ffff800029cebff0) at sched_idle+0x41d sys/kern/kern_sched.c:183 end trace frame: 0x0, count: -5