panic: acquiring blockable sleep lock with spinlock or critical section held (kernel_lock) &kernel_lock Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 431162 74273 0 0 0 1 syz-executor.0 * 79652 74273 0 0 0x4000000 0 syz-executor.0 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 panic(ffffffff8246b72b) at panic+0x177 sys/kern/subr_prf.c:202 witness_checkorder(ffffffff829fc8d8,9,0) at witness_checkorder+0x11eb sys/kern/subr_witness.c:833 __mp_lock(ffffffff829fc6d0) at __mp_lock+0xa1 read_rflags machine/cpufunc.h:195 [inline] __mp_lock(ffffffff829fc6d0) at __mp_lock+0xa1 intr_disable machine/cpufunc.h:216 [inline] __mp_lock(ffffffff829fc6d0) at __mp_lock+0xa1 sys/kern/kern_lock.c:142 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:90 Xsoftclock() at Xsoftclock+0x1f __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc witness_unlock(ffffffff82a03d08,8) at witness_unlock+0xfb mtx_leave(ffffffff82a03cf8) at mtx_leave+0x93 sys/kern/kern_lock.c:364 pool_do_get(ffffffff82a03cf8,9,ffff800022ab6e18) at pool_do_get+0x104 sys/kern/subr_pool.c:709 pool_get(ffffffff82a03cf8,9) at pool_get+0xeb sys/kern/subr_pool.c:584 vm_create(ffff800000b65800,ffff800021272fc0) at vm_create+0xad sys/arch/amd64/amd64/vmm.c:1497 vmmioctl(a00,c5005601,ffff800000b65800,1,ffff800021272fc0) at vmmioctl+0x1f2 VOP_IOCTL(fffffd806e14b130,c5005601,ffff800000b65800,1,fffffd807f7d7600,ffff800021272fc0) at VOP_IOCTL+0x9a sys/kern/vfs_vops.c:295 end trace frame: 0xffff800022ab70e0, 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+0x18 sys/arch/amd64/amd64/db_interface.c:440 panic(ffffffff8246b72b) at panic+0x177 sys/kern/subr_prf.c:202 witness_checkorder(ffffffff829fc8d8,9,0) at witness_checkorder+0x11eb sys/kern/subr_witness.c:833 __mp_lock(ffffffff829fc6d0) at __mp_lock+0xa1 read_rflags machine/cpufunc.h:195 [inline] __mp_lock(ffffffff829fc6d0) at __mp_lock+0xa1 intr_disable machine/cpufunc.h:216 [inline] __mp_lock(ffffffff829fc6d0) at __mp_lock+0xa1 sys/kern/kern_lock.c:142 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:90 Xsoftclock() at Xsoftclock+0x1f __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc witness_unlock(ffffffff82a03d08,8) at witness_unlock+0xfb mtx_leave(ffffffff82a03cf8) at mtx_leave+0x93 sys/kern/kern_lock.c:364 pool_do_get(ffffffff82a03cf8,9,ffff800022ab6e18) at pool_do_get+0x104 sys/kern/subr_pool.c:709 pool_get(ffffffff82a03cf8,9) at pool_get+0xeb sys/kern/subr_pool.c:584 vm_create(ffff800000b65800,ffff800021272fc0) at vm_create+0xad sys/arch/amd64/amd64/vmm.c:1497 vmmioctl(a00,c5005601,ffff800000b65800,1,ffff800021272fc0) at vmmioctl+0x1f2 VOP_IOCTL(fffffd806e14b130,c5005601,ffff800000b65800,1,fffffd807f7d7600,ffff800021272fc0) at VOP_IOCTL+0x9a sys/kern/vfs_vops.c:295 vn_ioctl(fffffd8069b17020,c5005601,ffff800000b65800,ffff800021272fc0) at vn_ioctl+0xba sys/kern/vfs_vnops.c:531 sys_ioctl(ffff800021272fc0,ffff800022ab7208,ffff800022ab7250) at sys_ioctl+0x4a2 syscall(ffff800022ab72d0) at syscall+0x5a9 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800022ab72d0) at syscall+0x5a9 sys/arch/amd64/amd64/trap.c:587 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb2f239e3de0, count: -18 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800022ab6920 rbx 0xffffffff827c1bff cpu_info_full_primary+0x2bff rdx 0x8b rcx 0x2 rax 0x68 r8 0xffffffff81eaf124 kprintf+0x144 r9 0x1 r10 0x48a3b115714ecee3 r11 0xbfe96e8c7cfce24d r12 0xffffffff827c1a00 cpu_info_full_primary+0x2a00 r13 0 r14 0 r15 0x1 rip 0xffffffff81432498 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800022ab6910 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=79652 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800021272a80,0xffffffff829a4838 process=0xffff8000ffffb248 user=0xffff800022ab2000, vmspace=0xfffffd806f1eacf8 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=1, intr=1 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 74273 431162 13360 0 7 0 syz-executor.0 *74273 79652 13360 0 7 0x4000000 syz-executor.0 48073 291219 0 0 3 0x14200 bored sosplice 57308 67637 43357 0 3 0x82 nanoslp syz-executor.1 13360 497504 43357 0 3 0x82 nanoslp syz-executor.0 43357 167584 33235 0 3 0x82 nanoslp syz-fuzzer 43357 290309 33235 0 3 0x4000082 nanoslp syz-fuzzer 43357 120667 33235 0 3 0x4000082 thrsleep syz-fuzzer 43357 25062 33235 0 3 0x4000082 thrsleep syz-fuzzer 43357 34890 33235 0 3 0x4000082 thrsleep syz-fuzzer 43357 507291 33235 0 3 0x4000082 kqread syz-fuzzer 43357 50013 33235 0 3 0x4000082 thrsleep syz-fuzzer 43357 381671 33235 0 3 0x4000082 thrsleep syz-fuzzer 33235 216991 91413 0 3 0x10008a sigsusp ksh 91413 118292 32700 0 3 0x9a select sshd 16104 266352 1 0 3 0x100083 ttyin getty 32700 104656 1 0 3 0x88 select sshd 25638 259583 43759 74 3 0x100092 bpf pflogd 43759 39751 1 0 3 0x80 netio pflogd 93911 436415 61621 73 3 0x100090 kqread syslogd 61621 177403 1 0 3 0x100082 netio syslogd 38661 110291 1 0 3 0x100080 kqread resolvd 14720 155490 51652 77 3 0x100092 kqread dhcpleased 16946 117139 51652 77 3 0x100092 kqread dhcpleased 51652 297850 1 0 3 0x80 kqread dhcpleased 84384 240553 0 0 3 0x14200 bored smr 71113 452159 0 0 2 0x14200 zerothread 82403 164491 0 0 3 0x14200 aiodoned aiodoned 45882 130811 0 0 3 0x14200 syncer update 40525 286653 0 0 3 0x14200 cleaner cleaner 61584 323874 0 0 3 0x14200 reaper reaper 15592 224599 0 0 3 0x14200 pgdaemon pagedaemon 94326 509545 0 0 3 0x14200 bored crynlk 62214 354689 0 0 3 0x14200 bored crypto 74883 383017 0 0 3 0x14200 bored viomb 28215 463365 0 0 3 0x40014200 acpi0 acpi0 52331 402926 0 0 3 0x40014200 idle1 15201 470149 0 0 3 0x14200 bored softnet 92145 434250 0 0 3 0x14200 bored systqmp 29273 503994 0 0 3 0x14200 bored systq 22299 62464 0 0 3 0x40014200 bored softclock 58110 295543 0 0 3 0x40014200 idle0 1 432498 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks CPU 0: exclusive mutex vmpool r = 0 (0xffffffff82a03d08) #0 witness_lock+0x4b0 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4b0 sys/kern/subr_witness.c:1182 #1 mtx_enter_try+0x100 #2 mtx_enter+0x4b sys/kern/kern_lock.c:266 #3 pool_get+0xbf sys/kern/subr_pool.c:581 #4 vm_create+0xad sys/arch/amd64/amd64/vmm.c:1497 #5 vmmioctl+0x1f2 #6 VOP_IOCTL+0x9a sys/kern/vfs_vops.c:295 #7 vn_ioctl+0xba sys/kern/vfs_vnops.c:531 #8 sys_ioctl+0x4a2 #9 syscall+0x5a9 mi_syscall sys/sys/syscall_mi.h:102 [inline] #9 syscall+0x5a9 sys/arch/amd64/amd64/trap.c:587 #10 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10123 6482K 6861K 78643K 11974 0 pcb 13 8K 8K 78643K 47 0 rtable 106 3K 3K 78643K 205 0 ifaddr 44 10K 11K 78643K 82 0 counters 44 34K 34K 78643K 60 0 ioctlops 1 2K 4K 78643K 1493 0 iov 0 0K 12K 78643K 14 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 6 0 vnodes 1220 77K 77K 78643K 1519 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 1K 78643K 2 0 VM map 2 1K 1K 78643K 2 0 sem 10 1K 1K 78643K 17 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12598 0 file desc 5 13K 25K 78643K 738 0 sigio 0 0K 0K 78643K 18 0 proc 78 88K 111K 78643K 373 0 subproc 32 2K 2K 78643K 34 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 27 0 in_multi 33 2K 2K 78643K 41 0 ether_multi 1 0K 0K 78643K 9 0 mrt 0 0K 0K 78643K 4 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 49 228K 228K 78643K 49 0 exec 0 0K 2K 78643K 409 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 7 26K 26K 78643K 7 0 UVM amap 185 25K 41K 78643K 10613 0 UVM aobj 3 2K 2K 78643K 3 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 44 0 NDP 6 0K 0K 78643K 18 0 temp 83 4207K 4271K 78643K 4259 0 kqueue 10 14K 16K 78643K 20 0 SYN cache 2 16K 16K 78643K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 22 0 0 1 0 1 1 0 8 0 rtpcb 120 50 0 47 1 0 1 1 0 8 0 rtentry 112 45 0 1 2 0 2 2 0 8 0 unpcb 120 121 0 106 1 0 1 1 0 8 0 syncache 296 4 0 4 1 1 0 1 0 8 0 tcpqe 32 53 0 53 2 2 0 1 0 8 0 tcpcb 736 97 0 92 5 4 1 4 0 8 0 arp 120 6 0 0 1 0 1 1 0 8 0 inpcb 304 231 0 224 2 1 1 2 0 8 0 nd6 48 6 0 0 1 0 1 1 0 8 0 kcovpl 48 2 0 0 1 0 1 1 0 8 0 ppxss 1248 4 0 4 1 1 0 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 41 0 5 1 0 1 1 0 8 0 pfstkey 112 41 0 5 2 0 2 2 0 8 0 pfstate 320 41 0 5 4 0 4 4 0 8 0 pfrule 1360 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 189 0 0 12 0 12 12 0 8 0 art_table 32 190 0 0 2 0 2 2 0 8 0 art_node 16 44 0 4 1 0 1 1 0 8 0 sysvmsgpl 40 10 0 9 1 0 1 1 0 8 0 semupl 112 6 0 6 1 1 0 1 0 8 0 semapl 112 8 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2359 0 950 89 0 89 89 0 8 0 ffsino 272 2359 0 950 95 0 95 95 0 8 0 nchpl 144 3483 0 1861 61 0 61 61 0 8 0 uvmvnodes 72 2631 0 0 48 0 48 48 0 8 0 vnodes 224 2631 0 0 155 0 155 155 0 8 0 namei 1024 8961 0 8961 1 0 1 1 0 8 1 percpumem 16 42 0 8 1 0 1 1 0 8 0 scxspl 216 10809 0 10809 11 8 3 8 0 8 3 plimitpl 152 22 0 13 1 0 1 1 0 8 0 sigapl 424 989 0 954 5 0 5 5 0 8 0 futexpl 56 4759 0 4759 1 0 1 1 0 8 1 knotepl 112 56 0 0 2 0 2 2 0 8 0 kqueuepl 216 318 0 312 1 0 1 1 0 8 0 pipepl 336 102 0 92 3 2 1 2 0 8 0 fdescpl 496 972 0 954 3 0 3 3 0 8 0 filepl 152 3306 0 3193 6 1 5 6 0 8 0 lockfpl 104 152 0 150 1 0 1 1 0 8 0 lockfspl 48 56 0 54 1 0 1 1 0 8 0 sessionpl 144 18 0 7 1 0 1 1 0 8 0 pgrppl 48 18 0 7 1 0 1 1 0 8 0 ucredpl 96 325 0 313 1 0 1 1 0 8 0 zombiepl 144 954 0 953 1 0 1 1 0 8 0 processpl 1072 989 0 953 3 0 3 3 0 8 0 procpl 672 1925 0 1881 6 2 4 5 0 8 0 sosppl 168 26 0 26 1 1 0 1 0 8 0 sockpl 480 402 0 377 6 1 5 5 0 8 1 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 5 0 0 1 0 1 1 0 8 0 mcl2k 2048 157 0 0 17 0 17 17 0 8 0 mtagpl 96 49 0 0 2 0 2 2 0 8 0 mbufpl 256 478 0 0 29 0 29 29 0 8 0 bufpl 280 5069 0 136 353 0 353 353 0 8 0 anonpl 24 228202 0 220921 51 2 49 49 0 186 3 amapchunkpl 152 26911 0 26488 35 3 32 32 0 158 14 amappl16 200 1818 0 1650 11 0 11 11 0 8 1 amappl15 192 1 0 0 1 0 1 1 0 8 0 amappl14 184 4 0 2 1 0 1 1 0 8 0 amappl13 176 29 0 28 1 0 1 1 0 8 0 amappl12 168 8 0 6 1 0 1 1 0 8 0 amappl11 160 401 0 386 1 0 1 1 0 8 0 amappl10 152 45 0 35 1 0 1 1 0 8 0 amappl9 144 570 0 565 1 0 1 1 0 8 0 amappl8 136 370 0 334 2 0 2 2 0 8 0 amappl7 128 70 0 56 1 0 1 1 0 8 0 amappl6 120 480 0 466 1 0 1 1 0 8 0 amappl5 112 938 0 920 1 0 1 1 0 8 0 amappl4 104 939 0 911 1 0 1 1 0 8 0 amappl3 96 45 0 42 1 0 1 1 0 8 0 amappl2 88 466 0 413 2 0 2 2 0 8 0 amappl1 80 19677 0 19230 13 3 10 13 0 8 0 amappl 88 10287 0 10155 4 0 4 4 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 64 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 972 0 954 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 972 0 954 1 0 1 1 0 8 0 vmmpekpl 168 9849 0 9827 2 0 2 2 0 8 0 vmmpepl 168 105484 0 104011 71 0 71 71 0 357 2 vmsppl 368 971 0 954 2 0 2 2 0 8 0 rwobjpl 56 21418 0 20512 15 1 14 14 0 8 1 pdppl 4096 1952 0 1908 62 16 46 50 0 8 2 pvpl 32 559080 0 548365 142 38 104 137 0 265 12 pmappl 224 971 0 954 2 0 2 2 0 8 0 extentpl 40 58 0 40 1 0 1 1 0 8 0 phpool 112 327 0 25 9 0 9 9 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 panic(ffffffff8246b72b) at panic+0x177 sys/kern/subr_prf.c:202 witness_checkorder(ffffffff829fc8d8,9,0) at witness_checkorder+0x11eb sys/kern/subr_witness.c:833 __mp_lock(ffffffff829fc6d0) at __mp_lock+0xa1 read_rflags machine/cpufunc.h:195 [inline] __mp_lock(ffffffff829fc6d0) at __mp_lock+0xa1 intr_disable machine/cpufunc.h:216 [inline] __mp_lock(ffffffff829fc6d0) at __mp_lock+0xa1 sys/kern/kern_lock.c:142 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:90 Xsoftclock() at Xsoftclock+0x1f __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc witness_unlock(ffffffff82a03d08,8) at witness_unlock+0xfb mtx_leave(ffffffff82a03cf8) at mtx_leave+0x93 sys/kern/kern_lock.c:364 pool_do_get(ffffffff82a03cf8,9,ffff800022ab6e18) at pool_do_get+0x104 sys/kern/subr_pool.c:709 pool_get(ffffffff82a03cf8,9) at pool_get+0xeb sys/kern/subr_pool.c:584 vm_create(ffff800000b65800,ffff800021272fc0) at vm_create+0xad sys/arch/amd64/amd64/vmm.c:1497 vmmioctl(a00,c5005601,ffff800000b65800,1,ffff800021272fc0) at vmmioctl+0x1f2 VOP_IOCTL(fffffd806e14b130,c5005601,ffff800000b65800,1,fffffd807f7d7600,ffff800021272fc0) at VOP_IOCTL+0x9a sys/kern/vfs_vops.c:295 vn_ioctl(fffffd8069b17020,c5005601,ffff800000b65800,ffff800021272fc0) at vn_ioctl+0xba sys/kern/vfs_vnops.c:531 sys_ioctl(ffff800021272fc0,ffff800022ab7208,ffff800022ab7250) at sys_ioctl+0x4a2 syscall(ffff800022ab72d0) at syscall+0x5a9 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800022ab72d0) at syscall+0x5a9 sys/arch/amd64/amd64/trap.c:587 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb2f239e3de0, count: -18 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffff800020d38ff0) at x86_ipi_db+0x1a 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+0x23 end of kernel end trace frame: 0x7f7ffffbbbc0, count: 12 ddb{1}> trace x86_ipi_db(ffff800020d38ff0) at x86_ipi_db+0x1a 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+0x23 end of kernel end trace frame: 0x7f7ffffbbbc0, count: -3