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 *135459 73560 0 0x8000000 0 0 syz-executor3994827183 db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff828dff93) at panic+0x17b sys/kern/subr_prf.c:198 witness_checkorder(ffffffff82d6af00,9,0) at witness_checkorder+0xd03 witness_debugger sys/kern/subr_witness.c:2524 [inline] witness_checkorder(ffffffff82d6af00,9,0) at witness_checkorder+0xd03 sys/kern/subr_witness.c:786 __mp_lock(ffffffff82d6acf8) at __mp_lock+0xa2 read_rflags machine/cpufunc.h:195 [inline] __mp_lock(ffffffff82d6acf8) at __mp_lock+0xa2 intr_disable machine/cpufunc.h:216 [inline] __mp_lock(ffffffff82d6acf8) at __mp_lock+0xa2 sys/kern/kern_lock.c:142 intr_handler(ffff80002a1f6910,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(ffffffff82e8e8f0) at mtx_enter_try+0x103 mtx_enter(ffffffff82e8e8f0) at mtx_enter+0x4e sys/kern/kern_lock.c:266 pool_get(ffffffff82e8e8f0,9) at pool_get+0xc4 sys/kern/subr_pool.c:579 uvmspace_alloc(0,1000,1,0) at uvmspace_alloc+0x41 sys/uvm/uvm_map.c:3279 vm_impl_init(ffff80002a2285a0,ffff8000ffffd9b0) at vm_impl_init+0x92 sys/arch/amd64/amd64/vmm_machdep.c:1245 vm_create(ffff800000da7800,ffff8000ffffd9b0) at vm_create+0x13e sys/dev/vmm/vmm.c:388 vmmioctl(a00,c2585601,ffff800000da7800,1,ffff8000ffffd9b0) at vmmioctl+0x2de end trace frame: 0xffff80002a1f6dd0, 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(ffffffff828dff93) at panic+0x17b sys/kern/subr_prf.c:198 witness_checkorder(ffffffff82d6af00,9,0) at witness_checkorder+0xd03 witness_debugger sys/kern/subr_witness.c:2524 [inline] witness_checkorder(ffffffff82d6af00,9,0) at witness_checkorder+0xd03 sys/kern/subr_witness.c:786 __mp_lock(ffffffff82d6acf8) at __mp_lock+0xa2 read_rflags machine/cpufunc.h:195 [inline] __mp_lock(ffffffff82d6acf8) at __mp_lock+0xa2 intr_disable machine/cpufunc.h:216 [inline] __mp_lock(ffffffff82d6acf8) at __mp_lock+0xa2 sys/kern/kern_lock.c:142 intr_handler(ffff80002a1f6910,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(ffffffff82e8e8f0) at mtx_enter_try+0x103 mtx_enter(ffffffff82e8e8f0) at mtx_enter+0x4e sys/kern/kern_lock.c:266 pool_get(ffffffff82e8e8f0,9) at pool_get+0xc4 sys/kern/subr_pool.c:579 uvmspace_alloc(0,1000,1,0) at uvmspace_alloc+0x41 sys/uvm/uvm_map.c:3279 vm_impl_init(ffff80002a2285a0,ffff8000ffffd9b0) at vm_impl_init+0x92 sys/arch/amd64/amd64/vmm_machdep.c:1245 vm_create(ffff800000da7800,ffff8000ffffd9b0) at vm_create+0x13e sys/dev/vmm/vmm.c:388 vmmioctl(a00,c2585601,ffff800000da7800,1,ffff8000ffffd9b0) at vmmioctl+0x2de VOP_IOCTL(fffffd8074bcf950,c2585601,ffff800000da7800,1,fffffd807f7d3888,ffff8000ffffd9b0) at VOP_IOCTL+0x9a sys/kern/vfs_vops.c:264 vn_ioctl(fffffd806e3c7270,c2585601,ffff800000da7800,ffff8000ffffd9b0) at vn_ioctl+0xc0 sys/kern/vfs_vnops.c:525 sys_ioctl(ffff8000ffffd9b0,ffff80002a1f70d0,ffff80002a1f7020) at sys_ioctl+0x4a9 syscall(ffff80002a1f70d0) at syscall+0x8cf mi_syscall sys/sys/syscall_mi.h:180 [inline] syscall(ffff80002a1f70d0) at syscall+0x8cf sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7bf16e953b10, count: -19 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80002a1f6700 rbx 0xffffffff82c8dd77 cpu_info_full_primary+0x2d77 rdx 0x3fd rcx 0 rax 0x68 r8 0x101010101010101 r9 0x8080808080808080 r10 0x17f71213fd2091e6 r11 0x920e502bf56d7612 r12 0xffffffff82c8db78 cpu_info_full_primary+0x2b78 r13 0 r14 0 r15 0x1 rip 0xffffffff81be290c db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff80002a1f66f0 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor3994827183) tid=135459 pid=73560 tcnt=1 stat=onproc flags process=8000000 proc=0 runpri=86, usrpri=86, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0x0 forw=0xffffffffffffffff, list=0xffff8000ffffd200,0xffffffff82e95108 process=0xffff8000ffffa800 user=0xffff80002a1f2000, vmspace=0xfffffd806f90dc10 estcpu=36, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND *73560 135459 54757 0 7 0x8000000 syz-executor3994827183 54757 448240 30437 0 3 0x8000082 nanoslp syz-executor3994827183 30437 313624 81726 0 3 0x810008a sigsusp ksh 81726 199303 50025 0 3 0x1800009a kqread sshd 61682 123183 1 0 3 0x18100083 ttyin getty 50025 119628 1 0 3 0x18000088 kqread sshd 21279 242896 27179 73 3 0x19100090 kqread syslogd 27179 505508 1 0 3 0x18100082 sbwait syslogd 70400 349080 1 0 3 0x18100080 kqread resolvd 70234 448719 4907 77 3 0x18100092 kqread dhcpleased 21017 112440 4907 77 3 0x18100092 kqread dhcpleased 4907 263977 1 0 3 0x18000080 kqread dhcpleased 79563 61886 0 0 3 0x14200 bored smr 99734 357882 0 0 3 0x14200 pgzero zerothread 14582 420248 0 0 3 0x14200 aiodoned aiodoned 71961 170441 0 0 3 0x14200 syncer update 94478 201421 0 0 3 0x14200 cleaner cleaner 43618 272700 0 0 3 0x14200 reaper reaper 50386 505351 0 0 3 0x14200 pgdaemon pagedaemon 66131 446269 0 0 3 0x14200 bored viomb 76490 141958 0 0 3 0x40014200 acpi0 acpi0 9353 477844 0 0 7 0x40014200 idle1 39825 414620 0 0 3 0x14200 bored softnet3 7113 285924 0 0 3 0x14200 bored softnet2 80143 103324 0 0 3 0x14200 bored softnet1 18674 104103 0 0 3 0x14200 bored softnet0 99358 161855 0 0 3 0x14200 bored systqmp 34517 202519 0 0 3 0x14200 bored systq 51147 274092 0 0 3 0x14200 tmoslp softclockmp 76756 361553 0 0 3 0x40014200 tmoslp softclock 72703 198706 0 0 3 0x40014200 idle0 1 132428 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 (0xffffffff82e8e900) #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 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 109 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 1543 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 2 1K 5K 166960K 71 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 252 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 236 1125K 1125K 166960K 2802 0 UVM aobj 3 2K 2K 166960K 3 0 pinsyscall 22 44K 48K 166960K 932 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 6800K 6864K 166960K 3070 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 18 0 15 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 1 0 1 1 0 8 1 tcpqe 32 22 0 22 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 0 1 0 1 1 0 8 0 pfstkey 128 9 0 0 1 0 1 1 0 8 0 pfstate 376 9 0 0 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 1578 0 109 92 0 92 92 0 8 0 ffsino 272 1578 0 109 98 0 98 98 0 8 0 nchpl 144 1836 0 186 62 0 62 62 0 8 0 uvmvnodes 80 1591 0 0 33 0 33 33 0 8 0 vnodes 216 1591 0 0 89 0 89 89 0 8 0 namei 1024 4951 0 4951 1 0 1 1 0 8 1 percpumem 16 38 0 0 1 0 1 1 0 8 0 vcpupl 3904 69 0 0 9 0 9 9 0 8 0 vmpool 696 70 0 0 7 0 7 7 0 8 0 kstatmem 264 6 0 0 1 0 1 1 0 8 0 scxspl 216 5859 0 5859 3 2 1 2 1 8 1 plimitpl 152 16 0 10 1 0 1 1 0 8 0 sigapl 424 389 0 357 4 0 4 4 0 8 0 knotepl 120 45 0 0 2 0 2 2 0 8 0 kqueuepl 216 20 0 13 1 0 1 1 0 8 0 pipepl 320 91 0 88 1 0 1 1 0 8 0 fdescpl 496 371 0 357 3 1 2 3 0 8 0 filepl 152 1485 0 1431 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 357 0 357 1 0 1 1 0 8 1 processpl 1136 389 0 357 3 0 3 3 0 8 0 procpl 656 389 0 357 3 0 3 3 0 8 0 sockpl 664 81 0 59 2 0 2 2 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 346 0 0 44 0 44 44 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 359 0 0 23 0 23 23 0 8 0 bufpl 280 2700 0 97 186 0 186 186 0 8 0 anonpl 24 185799 0 183983 23 2 21 23 0 186 10 amapchunkpl 152 9165 0 9020 7 1 6 7 0 158 0 amappl16 200 5361 0 5358 5 2 3 5 0 8 2 amappl15 192 9 0 9 1 1 0 1 0 8 0 amappl14 184 111 0 102 1 0 1 1 0 8 0 amappl13 176 8 0 8 1 1 0 1 0 8 0 amappl12 168 819 0 806 1 0 1 1 0 8 0 amappl11 160 52 0 42 1 0 1 1 0 8 0 amappl10 152 13 0 13 1 0 1 1 0 8 1 amappl9 144 224 0 224 1 1 0 1 0 8 0 amappl8 136 24 0 22 1 0 1 1 0 8 0 amappl7 128 20 0 19 1 0 1 1 0 8 0 amappl6 120 160 0 150 1 0 1 1 0 8 0 amappl5 112 197 0 183 1 0 1 1 0 8 0 amappl4 104 447 0 420 1 0 1 1 0 8 0 amappl3 96 2208 0 2182 1 0 1 1 0 8 0 amappl2 88 655 0 602 2 0 2 2 0 8 0 amappl1 80 9048 0 8636 11 0 11 11 0 8 0 amappl 88 2425 0 2304 3 0 3 3 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 440 0 357 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 440 0 357 1 0 1 1 0 8 0 vmmpekpl 168 5725 0 5703 2 0 2 2 0 8 0 vmmpepl 168 36690 0 35685 47 2 45 47 0 357 1 vmsppl 440 439 0 357 10 0 10 10 0 8 0 rwobjpl 56 19312 0 17037 34 1 33 33 0 8 0 pdppl 4096 887 0 783 119 14 105 105 0 8 1 pvpl 32 6358 0 0 52 0 52 52 0 265 0 pmappl 248 439 0 357 7 1 6 6 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 395 0 16 11 0 11 11 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(ffffffff828dff93) at panic+0x17b sys/kern/subr_prf.c:198 witness_checkorder(ffffffff82d6af00,9,0) at witness_checkorder+0xd03 witness_debugger sys/kern/subr_witness.c:2524 [inline] witness_checkorder(ffffffff82d6af00,9,0) at witness_checkorder+0xd03 sys/kern/subr_witness.c:786 __mp_lock(ffffffff82d6acf8) at __mp_lock+0xa2 read_rflags machine/cpufunc.h:195 [inline] __mp_lock(ffffffff82d6acf8) at __mp_lock+0xa2 intr_disable machine/cpufunc.h:216 [inline] __mp_lock(ffffffff82d6acf8) at __mp_lock+0xa2 sys/kern/kern_lock.c:142 intr_handler(ffff80002a1f6910,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(ffffffff82e8e8f0) at mtx_enter_try+0x103 mtx_enter(ffffffff82e8e8f0) at mtx_enter+0x4e sys/kern/kern_lock.c:266 pool_get(ffffffff82e8e8f0,9) at pool_get+0xc4 sys/kern/subr_pool.c:579 uvmspace_alloc(0,1000,1,0) at uvmspace_alloc+0x41 sys/uvm/uvm_map.c:3279 vm_impl_init(ffff80002a2285a0,ffff8000ffffd9b0) at vm_impl_init+0x92 sys/arch/amd64/amd64/vmm_machdep.c:1245 vm_create(ffff800000da7800,ffff8000ffffd9b0) at vm_create+0x13e sys/dev/vmm/vmm.c:388 vmmioctl(a00,c2585601,ffff800000da7800,1,ffff8000ffffd9b0) at vmmioctl+0x2de VOP_IOCTL(fffffd8074bcf950,c2585601,ffff800000da7800,1,fffffd807f7d3888,ffff8000ffffd9b0) at VOP_IOCTL+0x9a sys/kern/vfs_vops.c:264 vn_ioctl(fffffd806e3c7270,c2585601,ffff800000da7800,ffff8000ffffd9b0) at vn_ioctl+0xc0 sys/kern/vfs_vnops.c:525 sys_ioctl(ffff8000ffffd9b0,ffff80002a1f70d0,ffff80002a1f7020) at sys_ioctl+0x4a9 syscall(ffff80002a1f70d0) at syscall+0x8cf mi_syscall sys/sys/syscall_mi.h:180 [inline] syscall(ffff80002a1f70d0) at syscall+0x8cf sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7bf16e953b10, 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 ddb{1}>