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 *168253 54098 0 0x14000 0x200 0 systqmp db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8241ac1e) at panic+0x164 sys/kern/subr_prf.c:218 witness_checkorder(ffffffff828d0898,9,0) at witness_checkorder+0x10e0 sys/kern/subr_witness.c:821 __mp_lock(ffffffff828d0690) at __mp_lock+0xa1 read_rflags machine/cpufunc.h:195 [inline] __mp_lock(ffffffff828d0690) at __mp_lock+0xa1 intr_disable machine/cpufunc.h:216 [inline] __mp_lock(ffffffff828d0690) at __mp_lock+0xa1 sys/kern/kern_lock.c:142 pageflttrap(ffff800020da3460,0) at pageflttrap+0x7f sys/arch/amd64/amd64/trap.c:180 kerntrap(ffff800020da3460) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:302 alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b pool_cache_gc(ffffffff828c6318) at pool_cache_gc+0x138 pool_cache_list_put sys/kern/subr_pool.c:1970 [inline] pool_cache_gc(ffffffff828c6318) at pool_cache_gc+0x138 sys/kern/subr_pool.c:2025 pool_gc_pages(0) at pool_gc_pages+0x6c sys/kern/subr_pool.c:1559 taskq_thread(ffffffff827a1d50) at taskq_thread+0xfa sys/kern/kern_task.c:449 end trace frame: 0x0, count: 5 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 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:398 panic(ffffffff8241ac1e) at panic+0x164 sys/kern/subr_prf.c:218 witness_checkorder(ffffffff828d0898,9,0) at witness_checkorder+0x10e0 sys/kern/subr_witness.c:821 __mp_lock(ffffffff828d0690) at __mp_lock+0xa1 read_rflags machine/cpufunc.h:195 [inline] __mp_lock(ffffffff828d0690) at __mp_lock+0xa1 intr_disable machine/cpufunc.h:216 [inline] __mp_lock(ffffffff828d0690) at __mp_lock+0xa1 sys/kern/kern_lock.c:142 pageflttrap(ffff800020da3460,0) at pageflttrap+0x7f sys/arch/amd64/amd64/trap.c:180 kerntrap(ffff800020da3460) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:302 alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b pool_cache_gc(ffffffff828c6318) at pool_cache_gc+0x138 pool_cache_list_put sys/kern/subr_pool.c:1970 [inline] pool_cache_gc(ffffffff828c6318) at pool_cache_gc+0x138 sys/kern/subr_pool.c:2025 pool_gc_pages(0) at pool_gc_pages+0x6c sys/kern/subr_pool.c:1559 taskq_thread(ffffffff827a1d50) at taskq_thread+0xfa sys/kern/kern_task.c:449 end trace frame: 0x0, count: -10 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020da31d0 rbx 0xffff800020da3280 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffff800020da3190 r9 0xffffffff82193d9f kprintf+0x16f r10 0x1 r11 0x9ac206aa9c540730 r12 0x3000000008 r13 0xffff800020da31e0 r14 0x100 r15 0x1 rip 0xffffffff820d5aa8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020da31c0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (systqmp) pid=168253 stat=onproc flags process=14000 proc=200 pri=32, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020d88c58,0xffff800020d88288 process=0xffff800020d8a000 user=0xffff800020d9e000, vmspace=0xffffffff82920c28 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 47431 185203 18488 0 3 0x82 piperd syz-executor.0 18488 228692 38850 0 3 0x82 thrsleep syz-fuzzer 18488 277341 38850 0 3 0x4000082 thrsleep syz-fuzzer 18488 230844 38850 0 3 0x4000082 kqread syz-fuzzer 18488 449321 38850 0 3 0x4000082 thrsleep syz-fuzzer 18488 180659 38850 0 3 0x4000082 thrsleep syz-fuzzer 18488 117851 38850 0 3 0x4000082 thrsleep syz-fuzzer 18488 498592 38850 0 3 0x4000082 thrsleep syz-fuzzer 18488 521500 38850 0 3 0x4000082 thrsleep syz-fuzzer 38850 464016 97493 0 3 0x10008a pause ksh 97493 154167 78969 0 3 0x92 select sshd 64151 348895 1 0 3 0x100083 ttyin getty 78969 412926 1 0 3 0x80 select sshd 44995 409621 75574 74 3 0x100092 bpf pflogd 75574 349809 1 0 3 0x80 netio pflogd 10063 485537 72418 73 3 0x100090 kqread syslogd 72418 165990 1 0 3 0x100082 netio syslogd 94773 118319 1 77 3 0x100090 poll dhclient 42620 433073 1 0 3 0x80 poll dhclient 82702 114504 0 0 3 0x14200 bored smr 9265 487187 0 0 3 0x14200 pgzero zerothread 62465 264885 0 0 3 0x14200 aiodoned aiodoned 57481 97541 0 0 3 0x14200 syncer update 56722 195262 0 0 3 0x14200 cleaner cleaner 73064 488222 0 0 3 0x14200 reaper reaper 64133 194973 0 0 3 0x14200 pgdaemon pagedaemon 61910 71293 0 0 3 0x14200 bored crynlk 37425 162741 0 0 3 0x14200 bored crypto 46073 336729 0 0 3 0x40014200 acpi0 acpi0 73231 265442 0 0 7 0x40014200 idle1 336 371466 0 0 3 0x14200 bored softnet *54098 168253 0 0 7 0x14200 systqmp 93732 218210 0 0 3 0x14200 bored systq 25681 109280 0 0 3 0x40014200 bored softclock 16219 164799 0 0 3 0x40014200 idle0 1 400335 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks CPU 0: exclusive mutex mbufpl r = 0 (0xffffffff828c6328) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 mtx_enter_try+0x102 #2 mtx_enter+0x4b sys/kern/kern_lock.c:266 #3 pool_cache_gc+0x12d pl_enter sys/kern/subr_pool.c:104 [inline] #3 pool_cache_gc+0x12d pool_cache_list_put sys/kern/subr_pool.c:1968 [inline] #3 pool_cache_gc+0x12d sys/kern/subr_pool.c:2025 #4 pool_gc_pages+0x6c sys/kern/subr_pool.c:1559 #5 taskq_thread+0xfa sys/kern/kern_task.c:449 #6 proc_trampoline+0x1c Process 54098 (systqmp) thread 0xffff800020d88000 (168253) shared rwlock pools r = 0 (0xffffffff8272f2c0) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 pool_gc_pages+0x21 sys/kern/subr_pool.c:1555 #2 taskq_thread+0xfa sys/kern/kern_task.c:449 #3 proc_trampoline+0x1c shared rwlock systqmp r = 0 (0xffffffff827a1dc0) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 taskq_thread+0xdf sys/kern/kern_task.c:445 #2 proc_trampoline+0x1c exclusive mutex mbufpl r = 0 (0xffffffff828c6328) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 mtx_enter_try+0x102 #2 mtx_enter+0x4b sys/kern/kern_lock.c:266 #3 pool_cache_gc+0x12d pl_enter sys/kern/subr_pool.c:104 [inline] #3 pool_cache_gc+0x12d pool_cache_list_put sys/kern/subr_pool.c:1968 [inline] #3 pool_cache_gc+0x12d sys/kern/subr_pool.c:2025 #4 pool_gc_pages+0x6c sys/kern/subr_pool.c:1559 #5 taskq_thread+0xfa sys/kern/kern_task.c:449 #6 proc_trampoline+0x1c ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9492 6411K 6784K 78643K 10854 0 pcb 13 8K 8K 78643K 45 0 rtable 64 2K 4K 78643K 275 0 ifaddr 52 11K 13K 78643K 99 0 counters 41 33K 34K 78643K 53 0 ioctlops 0 0K 4K 78643K 1526 0 iov 0 0K 32K 78643K 324 0 mount 1 1K 1K 78643K 1 0 vnodes 1218 77K 77K 78643K 1308 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 13 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 46 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 3 5K 25K 78643K 265 0 proc 61 63K 83K 78643K 442 0 subproc 16 1K 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 12 0 in_multi 27 1K 2K 78643K 66 0 ether_multi 1 0K 0K 78643K 7 0 mrt 0 0K 0K 78643K 1 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 55 254K 254K 78643K 55 0 exec 0 0K 1K 78643K 219 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 149 18K 27K 78643K 1802 0 UVM aobj 27 4K 4K 78643K 33 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 30 0 NDP 8 0K 0K 78643K 19 0 temp 86 3867K 3936K 78643K 4488 0 kqueue 3 4K 8K 78643K 11 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 arp 64 6 0 2 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 88 24 0 22 1 0 1 1 0 8 0 rtentry 112 54 0 31 2 0 2 2 0 8 0 unpcb 120 135 0 125 1 0 1 1 0 8 0 syncache 272 5 0 5 2 1 1 1 0 8 1 tcpqe 32 441 0 441 3 2 1 2 0 8 1 tcpcb 592 66 0 61 2 0 2 2 0 8 1 inpcb 296 243 0 235 3 1 2 2 0 8 1 rttmr 72 2 0 2 1 0 1 1 0 8 1 nd6 48 9 0 7 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 0 1 1 0 8 1 pffrag 232 3 0 2 1 0 1 1 0 482 0 pffrnode 88 3 0 2 1 0 1 1 0 8 0 pffrent 40 6 0 5 1 0 1 1 0 8 0 pfosfp 40 846 0 423 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfrktable 1344 6 0 6 1 0 1 1 0 8 1 pftag 88 2 0 0 1 0 1 1 0 8 0 pfstitem 24 20 0 4 1 0 1 1 0 8 0 pfstkey 112 20 0 4 1 0 1 1 0 8 0 pfstate 328 20 0 4 2 0 2 2 0 8 0 pfrule 1360 27 0 22 2 0 2 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 343 0 210 15 0 15 15 0 8 5 art_table 32 344 0 210 2 0 2 2 0 8 0 art_node 16 53 0 34 1 0 1 1 0 8 0 sysvmsgpl 40 32 0 20 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 42 0 32 1 0 1 1 0 8 0 shmpl 112 30 0 6 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1731 0 331 88 0 88 88 0 8 0 ffsino 272 1731 0 331 94 0 94 94 0 8 0 nchpl 144 2425 0 849 60 0 60 60 0 8 0 uvmvnodes 72 1834 0 0 34 0 34 34 0 8 0 vnodes 208 1834 0 0 97 0 97 97 0 8 0 namei 1024 6506 0 6506 1 0 1 1 0 8 1 percpumem 16 37 0 6 1 0 1 1 0 8 0 pfiaddrpl 120 2 0 2 1 0 1 1 0 8 1 scxspl 200 6921 0 6921 8 5 3 7 0 8 3 plimitpl 152 33 0 26 1 0 1 1 0 8 0 sigapl 424 480 0 451 4 0 4 4 0 8 0 futexpl 56 3293 0 3293 1 0 1 1 0 8 1 knotepl 112 75 0 61 1 0 1 1 0 8 0 kqueuepl 152 25 0 21 1 0 1 1 0 8 0 pipepl 304 119 0 111 2 0 2 2 0 8 1 fdescpl 496 465 0 451 3 0 3 3 0 8 0 filepl 152 2673 0 2594 5 0 5 5 0 8 1 lockfpl 104 56 0 55 1 0 1 1 0 8 0 lockfspl 48 19 0 18 1 0 1 1 0 8 0 sessionpl 120 18 0 8 1 0 1 1 0 8 0 pgrppl 48 18 0 8 1 0 1 1 0 8 0 ucredpl 96 235 0 226 1 0 1 1 0 8 0 zombiepl 144 451 0 451 1 0 1 1 0 8 1 processpl 1008 480 0 451 5 0 5 5 0 8 1 procpl 632 994 0 958 4 0 4 4 0 8 1 sockpl 400 404 0 384 4 1 3 4 0 8 0 mcl64k 65536 7 0 0 1 0 1 1 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 4 0 0 1 0 1 1 0 8 0 mcl9k 9216 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 10 0 0 2 0 2 2 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 278 0 0 34 0 34 34 0 8 0 mtagpl 96 22 0 0 1 0 1 1 0 8 0 mbufpl 256 275 0 0 17 0 17 17 0 8 0 bufpl 280 3922 0 127 272 0 272 272 0 8 0 anonpl 16 58039 0 44416 75 1 74 74 0 124 0 amapchunkpl 152 2612 0 2339 14 1 13 14 0 158 0 amappl16 192 1923 0 1090 43 0 43 43 0 8 1 amappl15 184 114 0 112 1 0 1 1 0 8 0 amappl14 176 11 0 10 1 0 1 1 0 8 0 amappl13 168 29 0 27 1 0 1 1 0 8 0 amappl12 160 30 0 21 1 0 1 1 0 8 0 amappl11 152 54 0 39 1 0 1 1 0 8 0 amappl10 144 15 0 12 1 0 1 1 0 8 0 amappl9 136 473 0 471 1 0 1 1 0 8 0 amappl8 128 464 0 430 2 0 2 2 0 8 0 amappl7 120 117 0 104 1 0 1 1 0 8 0 amappl6 112 32 0 26 1 0 1 1 0 8 0 amappl5 104 399 0 383 1 0 1 1 0 8 0 amappl4 96 485 0 459 1 0 1 1 0 8 0 amappl3 88 127 0 119 1 0 1 1 0 8 0 amappl2 80 2892 0 2835 2 0 2 2 0 8 0 amappl1 72 22205 0 21788 23 13 10 18 0 8 0 amappl 80 1282 0 1209 2 0 2 2 0 84 0 dma4096 4096 1 0 1 1 1 0 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 32 0 6 1 0 1 1 0 8 0 uaddrrnd 24 465 0 451 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 465 0 451 1 0 1 1 0 8 0 vmmpekpl 168 7671 0 7640 2 0 2 2 0 8 0 vmmpepl 168 65702 0 63852 118 15 103 115 0 357 12 vmsppl 368 464 0 451 2 0 2 2 0 8 0 pdppl 4096 937 0 902 6 0 6 6 0 8 1 pvpl 32 195424 0 178827 180 0 180 180 0 265 7 pmappl 232 464 0 451 2 1 1 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 276 0 4 8 0 8 8 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:398 panic(ffffffff8241ac1e) at panic+0x164 sys/kern/subr_prf.c:218 witness_checkorder(ffffffff828d0898,9,0) at witness_checkorder+0x10e0 sys/kern/subr_witness.c:821 __mp_lock(ffffffff828d0690) at __mp_lock+0xa1 read_rflags machine/cpufunc.h:195 [inline] __mp_lock(ffffffff828d0690) at __mp_lock+0xa1 intr_disable machine/cpufunc.h:216 [inline] __mp_lock(ffffffff828d0690) at __mp_lock+0xa1 sys/kern/kern_lock.c:142 pageflttrap(ffff800020da3460,0) at pageflttrap+0x7f sys/arch/amd64/amd64/trap.c:180 kerntrap(ffff800020da3460) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:302 alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b pool_cache_gc(ffffffff828c6318) at pool_cache_gc+0x138 pool_cache_list_put sys/kern/subr_pool.c:1970 [inline] pool_cache_gc(ffffffff828c6318) at pool_cache_gc+0x138 sys/kern/subr_pool.c:2025 pool_gc_pages(0) at pool_gc_pages+0x6c sys/kern/subr_pool.c:1559 taskq_thread(ffffffff827a1d50) at taskq_thread+0xfa sys/kern/kern_task.c:449 end trace frame: 0x0, count: -10 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffff800020d70ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:352 x86_ipi_handler() at x86_ipi_handler+0xc6 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 acpicpu_idle() at acpicpu_idle+0x331 sys/dev/acpi/acpicpu.c:1187 sched_idle(ffff800020d70ff0) at sched_idle+0x3f7 sys/kern/kern_sched.c:178 end trace frame: 0x0, count: 10 ddb{1}> trace x86_ipi_db(ffff800020d70ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:352 x86_ipi_handler() at x86_ipi_handler+0xc6 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 acpicpu_idle() at acpicpu_idle+0x331 sys/dev/acpi/acpicpu.c:1187 sched_idle(ffff800020d70ff0) at sched_idle+0x3f7 sys/kern/kern_sched.c:178 end trace frame: 0x0, count: -5