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 * 18618 41748 0 0x14000 0x200 0 systqmp db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823fabdf) at panic+0x15c sys/kern/subr_prf.c:207 witness_checkorder(ffffffff828c9c58,9,0) at witness_checkorder+0x10e0 sys/kern/subr_witness.c:821 __mp_lock(ffffffff828c9a50) at __mp_lock+0xa1 read_rflags machine/cpufunc.h:195 [inline] __mp_lock(ffffffff828c9a50) at __mp_lock+0xa1 intr_disable machine/cpufunc.h:216 [inline] __mp_lock(ffffffff828c9a50) at __mp_lock+0xa1 sys/kern/kern_lock.c:142 pageflttrap(ffff800020da34d0,0) at pageflttrap+0x7f sys/arch/amd64/amd64/trap.c:180 kerntrap(ffff800020da34d0) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:302 alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b pool_cache_gc(ffffffff82900640) at pool_cache_gc+0x138 pool_cache_list_put sys/kern/subr_pool.c:1970 [inline] pool_cache_gc(ffffffff82900640) 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(ffffffff8276ab00) at taskq_thread+0xec sys/kern/kern_task.c:437 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(ffffffff823fabdf) at panic+0x15c sys/kern/subr_prf.c:207 witness_checkorder(ffffffff828c9c58,9,0) at witness_checkorder+0x10e0 sys/kern/subr_witness.c:821 __mp_lock(ffffffff828c9a50) at __mp_lock+0xa1 read_rflags machine/cpufunc.h:195 [inline] __mp_lock(ffffffff828c9a50) at __mp_lock+0xa1 intr_disable machine/cpufunc.h:216 [inline] __mp_lock(ffffffff828c9a50) at __mp_lock+0xa1 sys/kern/kern_lock.c:142 pageflttrap(ffff800020da34d0,0) at pageflttrap+0x7f sys/arch/amd64/amd64/trap.c:180 kerntrap(ffff800020da34d0) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:302 alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b pool_cache_gc(ffffffff82900640) at pool_cache_gc+0x138 pool_cache_list_put sys/kern/subr_pool.c:1970 [inline] pool_cache_gc(ffffffff82900640) 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(ffffffff8276ab00) at taskq_thread+0xec sys/kern/kern_task.c:437 end trace frame: 0x0, count: -10 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020da3240 rbx 0xffff800020da32f0 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff81ba7bdf kprintf+0x16f r9 0x1 r10 0x2 r11 0x49302497bf285633 r12 0x3000000008 r13 0xffff800020da3250 r14 0x100 r15 0x1 rip 0xffffffff815eaaf8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020da3230 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (systqmp) pid=18618 stat=onproc flags process=14000 proc=200 pri=32, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020d88c30,0xffff800020d88760 process=0xffff800020d8a3d8 user=0xffff800020d9e000, vmspace=0xffffffff828f41d8 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 53460 76908 0 0 3 0x14200 bored sosplice 93234 181319 2109 0 3 0x82 piperd syz-executor.1 2109 85 34963 0 3 0x82 thrsleep syz-fuzzer 2109 479458 34963 0 3 0x4000082 thrsleep syz-fuzzer 2109 212511 34963 0 3 0x4000082 thrsleep syz-fuzzer 2109 273603 34963 0 3 0x4000082 thrsleep syz-fuzzer 2109 430889 34963 0 3 0x4000082 thrsleep syz-fuzzer 2109 459772 34963 0 3 0x4000082 thrsleep syz-fuzzer 2109 471764 34963 0 3 0x4000082 kqread syz-fuzzer 2109 111076 34963 0 3 0x4000082 thrsleep syz-fuzzer 2109 132169 34963 0 3 0x4000082 thrsleep syz-fuzzer 2109 154481 34963 0 3 0x4000082 thrsleep syz-fuzzer 34963 411161 34472 0 3 0x10008a pause ksh 34472 502538 64969 0 3 0x92 select sshd 76492 330144 1 0 3 0x100083 ttyin getty 64969 69109 1 0 3 0x80 select sshd 47017 519507 96165 74 3 0x100092 bpf pflogd 96165 12672 1 0 3 0x80 netio pflogd 42352 433350 57606 73 3 0x100090 kqread syslogd 57606 472739 1 0 3 0x100082 netio syslogd 47649 207634 1 77 3 0x100090 poll dhclient 85646 483927 1 0 3 0x80 poll dhclient 76158 154139 0 0 3 0x14200 bored smr 46942 14117 0 0 3 0x14200 pgzero zerothread 25849 171168 0 0 3 0x14200 aiodoned aiodoned 48031 42441 0 0 3 0x14200 syncer update 98010 494385 0 0 3 0x14200 cleaner cleaner 2281 238360 0 0 3 0x14200 reaper reaper 92233 299748 0 0 3 0x14200 pgdaemon pagedaemon 26617 324290 0 0 3 0x14200 bored crynlk 9531 328414 0 0 3 0x14200 bored crypto 90055 27647 0 0 3 0x40014200 acpi0 acpi0 68743 98257 0 0 7 0x40014200 idle1 93256 31460 0 0 3 0x14200 bored softnet *41748 18618 0 0 7 0x14200 systqmp 78413 446178 0 0 3 0x14200 bored systq 2481 217175 0 0 3 0x40014200 bored softclock 73803 20038 0 0 3 0x40014200 idle0 1 123596 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 (0xffffffff82900650) #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+0xec sys/kern/kern_task.c:437 #6 proc_trampoline+0x1c Process 41748 (systqmp) thread 0xffff800020d889c0 (18618) shared rwlock pools r = 0 (0xffffffff82724a30) #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+0xec sys/kern/kern_task.c:437 #3 proc_trampoline+0x1c shared rwlock systqmp r = 0 (0xffffffff8276ab70) #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:436 #2 proc_trampoline+0x1c exclusive mutex mbufpl r = 0 (0xffffffff82900650) #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+0xec sys/kern/kern_task.c:437 #6 proc_trampoline+0x1c ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9538 6431K 6812K 78643K 11107 0 pcb 13 8K 8K 78643K 73 0 rtable 76 4K 5K 78643K 364 0 ifaddr 86 16K 17K 78643K 155 0 counters 41 33K 34K 78643K 63 0 ioctlops 0 0K 4K 78643K 1506 0 iov 0 0K 16K 78643K 37 0 mount 1 1K 1K 78643K 1 0 vnodes 1219 77K 77K 78643K 1374 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 8 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 1K 78643K 67 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 3 5K 25K 78643K 316 0 sigio 0 0K 0K 78643K 1 0 proc 60 63K 95K 78643K 462 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 16 0 in_multi 47 2K 2K 78643K 96 0 ether_multi 1 0K 0K 78643K 8 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 43 201K 201K 78643K 43 0 exec 0 0K 1K 78643K 223 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 118 47K 71K 78643K 2012 0 UVM aobj 27 6K 6K 78643K 28 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 14 0K 0K 78643K 32 0 temp 99 3856K 3926K 78643K 7329 0 kqueue 3 4K 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 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 80 37 0 35 1 0 1 1 0 8 0 rtentry 112 58 0 34 2 0 2 2 0 8 0 unpcb 120 115 0 105 1 0 1 1 0 8 0 syncache 264 9 0 9 3 2 1 1 0 8 1 tcpqe 32 166 0 166 2 2 0 1 0 8 0 tcpcb 544 341 0 336 2 0 2 2 0 8 1 inpcb 280 556 0 548 2 0 2 2 0 8 1 nd6 48 10 0 7 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 1 0 1 0 8 0 pfstscr 40 3 0 2 1 0 1 1 0 8 0 pffrag 232 2 0 2 1 1 0 1 0 482 0 pffrnode 88 2 0 2 1 1 0 1 0 8 0 pffrent 40 4 0 4 1 1 0 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 13 0 8 1 0 1 1 0 8 0 pftag 88 6 0 4 1 0 1 1 0 8 0 pfqueue 264 1 0 1 1 1 0 1 0 8 0 pfstitem 24 23 0 10 1 0 1 1 0 8 0 pfstkey 112 23 0 10 1 0 1 1 0 8 0 pfstate 328 19 0 8 2 0 2 2 0 8 0 pfrule 1360 31 0 20 3 1 2 2 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 274 0 171 12 1 11 12 0 8 0 art_table 32 275 0 171 2 0 2 2 0 8 0 art_node 16 57 0 38 1 0 1 1 0 8 0 sysvmsgpl 40 3 0 1 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 65 0 55 1 0 1 1 0 8 0 shmpl 112 26 0 1 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1853 0 451 89 0 89 89 0 8 0 ffsino 272 1853 0 451 95 0 95 95 0 8 0 nchpl 144 2567 0 977 60 0 60 60 0 8 0 uvmvnodes 72 1993 0 0 37 0 37 37 0 8 0 vnodes 208 1993 0 0 105 0 105 105 0 8 0 namei 1024 6853 0 6853 1 0 1 1 0 8 1 percpumem 16 42 0 11 1 0 1 1 0 8 0 vcpupl 1984 3 0 0 1 0 1 1 0 8 0 vmpool 560 5 0 2 1 0 1 1 0 8 0 pfiaddrpl 120 6 0 2 1 0 1 1 0 8 0 scxspl 192 7395 0 7395 9 8 1 7 0 8 1 plimitpl 152 23 0 16 1 0 1 1 0 8 0 sigapl 424 534 0 504 4 0 4 4 0 8 0 futexpl 56 4527 0 4527 1 0 1 1 0 8 1 knotepl 112 80 0 67 1 0 1 1 0 8 0 kqueuepl 144 58 0 56 1 0 1 1 0 8 0 pipelkpl 48 113 0 106 1 0 1 1 0 8 0 pipepl 120 226 0 213 1 0 1 1 0 8 0 fdescpl 496 516 0 502 3 0 3 3 0 8 0 filepl 152 3055 0 2978 5 0 5 5 0 8 1 lockfpl 104 70 0 69 1 0 1 1 0 8 0 lockfspl 48 26 0 25 1 0 1 1 0 8 0 sessionpl 112 18 0 8 1 0 1 1 0 8 0 pgrppl 48 20 0 10 1 0 1 1 0 8 0 ucredpl 96 283 0 274 1 0 1 1 0 8 0 zombiepl 144 504 0 504 1 0 1 1 0 8 1 processpl 984 534 0 504 5 0 5 5 0 8 0 procpl 624 1208 0 1169 4 0 4 4 0 8 0 srpgc 64 2 0 2 1 1 0 1 0 8 0 sosppl 128 3 0 3 1 0 1 1 0 8 1 sockpl 400 710 0 690 6 2 4 4 0 8 1 mcl64k 65536 9 0 0 2 0 2 2 0 8 0 mcl16k 16384 4 0 0 1 0 1 1 0 8 0 mcl12k 12288 9 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 1 0 0 1 0 1 1 0 8 0 mcl4k 4096 5 0 0 1 0 1 1 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 166 0 0 20 0 20 20 0 8 0 mtagpl 80 12 0 0 1 0 1 1 0 8 0 mbufpl 256 192 0 0 12 0 12 12 0 8 0 bufpl 280 4014 0 135 278 0 278 278 0 8 0 anonpl 16 65548 0 53803 83 7 76 82 0 124 9 amapchunkpl 152 3662 0 3522 21 1 20 20 0 158 12 amappl16 192 2447 0 1588 52 6 46 52 0 8 2 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 169 0 164 1 0 1 1 0 8 0 amappl13 168 29 0 27 1 0 1 1 0 8 0 amappl12 160 153 0 151 2 1 1 1 0 8 0 amappl11 152 51 0 36 1 0 1 1 0 8 0 amappl10 144 20 0 13 1 0 1 1 0 8 0 amappl9 136 380 0 379 1 0 1 1 0 8 0 amappl8 128 358 0 323 2 0 2 2 0 8 0 amappl7 120 127 0 114 1 0 1 1 0 8 0 amappl6 112 31 0 23 1 0 1 1 0 8 0 amappl5 104 282 0 266 1 0 1 1 0 8 0 amappl4 96 639 0 609 1 0 1 1 0 8 0 amappl3 88 262 0 256 1 0 1 1 0 8 0 amappl2 80 3180 0 3118 2 0 2 2 0 8 0 amappl1 72 20919 0 20491 23 13 10 18 0 8 0 amappl 80 1478 0 1436 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 27 0 1 1 0 1 1 0 8 0 uaddrrnd 24 521 0 504 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 521 0 504 1 0 1 1 0 8 0 vmmpekpl 168 7836 0 7802 2 0 2 2 0 8 0 vmmpepl 168 69299 0 67438 114 19 95 110 0 357 2 vmsppl 368 520 0 504 2 0 2 2 0 8 0 pdppl 4096 1049 0 1011 6 0 6 6 0 8 0 pvpl 32 203507 0 188751 193 6 187 193 0 265 30 pmappl 232 520 0 504 3 1 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 263 0 6 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(ffffffff823fabdf) at panic+0x15c sys/kern/subr_prf.c:207 witness_checkorder(ffffffff828c9c58,9,0) at witness_checkorder+0x10e0 sys/kern/subr_witness.c:821 __mp_lock(ffffffff828c9a50) at __mp_lock+0xa1 read_rflags machine/cpufunc.h:195 [inline] __mp_lock(ffffffff828c9a50) at __mp_lock+0xa1 intr_disable machine/cpufunc.h:216 [inline] __mp_lock(ffffffff828c9a50) at __mp_lock+0xa1 sys/kern/kern_lock.c:142 pageflttrap(ffff800020da34d0,0) at pageflttrap+0x7f sys/arch/amd64/amd64/trap.c:180 kerntrap(ffff800020da34d0) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:302 alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b pool_cache_gc(ffffffff82900640) at pool_cache_gc+0x138 pool_cache_list_put sys/kern/subr_pool.c:1970 [inline] pool_cache_gc(ffffffff82900640) 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(ffffffff8276ab00) at taskq_thread+0xec sys/kern/kern_task.c:437 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