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 *347342 38547 0 0x14000 0x200 1 systqmp db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8240e307) at panic+0x15c sys/kern/subr_prf.c:207 witness_checkorder(ffffffff828f8078,9,0) at witness_checkorder+0x10e0 sys/kern/subr_witness.c:821 __mp_lock(ffffffff828f7e70) at __mp_lock+0xa1 read_rflags machine/cpufunc.h:195 [inline] __mp_lock(ffffffff828f7e70) at __mp_lock+0xa1 intr_disable machine/cpufunc.h:216 [inline] __mp_lock(ffffffff828f7e70) at __mp_lock+0xa1 sys/kern/kern_lock.c:142 pageflttrap(ffff800020da3370,0) at pageflttrap+0x7f sys/arch/amd64/amd64/trap.c:180 kerntrap(ffff800020da3370) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:302 alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b pool_cache_gc(ffffffff8290b140) at pool_cache_gc+0x138 pool_cache_list_put sys/kern/subr_pool.c:1970 [inline] pool_cache_gc(ffffffff8290b140) 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(ffffffff826f6600) 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic acquiring blockable sleep lock with spinlock or critical section held (kernel_lock) &kernel_lock ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8240e307) at panic+0x15c sys/kern/subr_prf.c:207 witness_checkorder(ffffffff828f8078,9,0) at witness_checkorder+0x10e0 sys/kern/subr_witness.c:821 __mp_lock(ffffffff828f7e70) at __mp_lock+0xa1 read_rflags machine/cpufunc.h:195 [inline] __mp_lock(ffffffff828f7e70) at __mp_lock+0xa1 intr_disable machine/cpufunc.h:216 [inline] __mp_lock(ffffffff828f7e70) at __mp_lock+0xa1 sys/kern/kern_lock.c:142 pageflttrap(ffff800020da3370,0) at pageflttrap+0x7f sys/arch/amd64/amd64/trap.c:180 kerntrap(ffff800020da3370) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:302 alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b pool_cache_gc(ffffffff8290b140) at pool_cache_gc+0x138 pool_cache_list_put sys/kern/subr_pool.c:1970 [inline] pool_cache_gc(ffffffff8290b140) 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(ffffffff826f6600) at taskq_thread+0xec sys/kern/kern_task.c:437 end trace frame: 0x0, count: -10 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020da30e0 rbx 0xffff800020da3190 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff81443d9f kprintf+0x16f r9 0x1 r10 0x2 r11 0xe929349dc0b9f335 r12 0x3000000008 r13 0xffff800020da30f0 r14 0x100 r15 0x1 rip 0xffffffff81a17dc8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020da30d0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (systqmp) pid=347342 stat=onproc flags process=14000 proc=200 pri=32, usrpri=51, nice=20 forw=0xffffffffffffffff, list=0xffff800020d895f0,0xffff800020d89120 process=0xffff800020d8ab88 user=0xffff800020d9e000, vmspace=0xffffffff8291d2d8 estcpu=1, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 95459 159041 0 0 3 0x14200 bored sosplice 75285 36718 1 0 3 0x100083 ttyin getty 15135 465602 1 0 3 0x80 select sshd 81914 289866 58255 74 3 0x100092 bpf pflogd 58255 112954 1 0 3 0x80 netio pflogd 42188 12168 75917 73 3 0x100090 kqread syslogd 75917 423662 1 0 3 0x100082 netio syslogd 2495 299418 1 77 3 0x100090 poll dhclient 54513 333858 1 0 3 0x80 poll dhclient 55851 266543 0 0 3 0x14200 bored smr 10848 337343 0 0 3 0x14200 pgzero zerothread 93016 68422 0 0 3 0x14200 aiodoned aiodoned 61585 220088 0 0 3 0x14200 syncer update 30732 283245 0 0 3 0x14200 cleaner cleaner 77754 27846 0 0 3 0x14200 reaper reaper 18719 100512 0 0 3 0x14200 pgdaemon pagedaemon 89761 190675 0 0 3 0x14200 bored crynlk 41804 204581 0 0 3 0x14200 bored crypto 15581 352219 0 0 3 0x40014200 acpi0 acpi0 69476 376718 0 0 3 0x40014200 idle1 30847 318938 0 0 3 0x14200 bored softnet *38547 347342 0 0 7 0x14200 systqmp 46002 203965 0 0 3 0x14200 bored systq 60068 415520 0 0 3 0x40014200 bored softclock 35106 493490 0 0 7 0x40014200 idle0 1 259507 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks CPU 1: exclusive mutex mbufpl r = 0 (0xffffffff8290b150) #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 38547 (systqmp) thread 0xffff800020d89380 (347342) shared rwlock pools r = 0 (0xffffffff826ec830) #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 (0xffffffff826f6670) #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 (0xffffffff8290b150) #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{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9496 6406K 6792K 78643K 10847 0 pcb 13 8K 8K 78643K 37 0 rtable 66 3K 5K 78643K 269 0 ifaddr 47 10K 13K 78643K 83 0 counters 39 33K 34K 78643K 45 0 ioctlops 0 0K 4K 78643K 1482 0 iov 0 0K 12K 78643K 18 0 mount 1 1K 1K 78643K 1 0 vnodes 1223 77K 77K 78643K 1296 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 3 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 1K 78643K 23 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 1 0K 25K 78643K 128 0 sigio 0 0K 0K 78643K 8 0 proc 60 63K 95K 78643K 444 0 subproc 0 0K 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 5 0 in_multi 32 1K 2K 78643K 78 0 ether_multi 1 0K 0K 78643K 2 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 37 175K 175K 78643K 37 0 exec 0 0K 1K 78643K 210 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 48 18K 40K 78643K 1394 0 UVM aobj 4 2K 2K 78643K 4 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 11 0 NDP 8 0K 0K 78643K 20 0 temp 44 3856K 3922K 78643K 2923 0 kqueue 2 2K 8K 78643K 10 0 SYN cache 2 16K 16K 78643K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 6 0 4 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 29 0 27 1 0 1 1 0 8 0 rtentry 112 63 0 41 3 2 1 2 0 8 0 unpcb 120 63 0 54 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 67 0 67 1 1 0 1 0 8 0 tcpcb 544 50 0 48 2 1 1 2 0 8 0 inpcb 296 160 0 155 3 2 1 2 0 8 0 nd6 48 12 0 12 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 3 0 1 1 0 1 1 0 8 0 pfstitem 24 13 0 13 1 1 0 1 0 8 0 pfstkey 112 13 0 13 1 1 0 1 0 8 0 pfstate 328 13 0 13 1 1 0 1 0 8 0 pfrule 1360 23 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 300 0 203 15 8 7 13 0 8 0 art_table 32 301 0 203 2 1 1 2 0 8 0 art_node 16 62 0 42 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 2 1 1 0 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 19 0 9 1 0 1 1 0 8 0 shmpl 112 2 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1565 0 161 89 0 89 89 0 8 0 ffsino 272 1565 0 161 94 0 94 94 0 8 0 nchpl 144 1928 0 318 60 0 60 60 0 8 0 uvmvnodes 72 1666 0 0 31 0 31 31 0 8 0 vnodes 208 1666 0 0 88 0 88 88 0 8 0 namei 1024 5137 0 5137 1 1 0 1 0 8 0 percpumem 16 33 0 3 1 0 1 1 0 8 0 vcpupl 1984 1 0 0 1 0 1 1 0 8 0 vmpool 560 3 0 2 1 0 1 1 0 8 0 pfiaddrpl 120 2 0 0 1 0 1 1 0 8 0 scxspl 192 5676 0 5676 15 14 1 7 0 8 1 plimitpl 152 23 0 18 1 0 1 1 0 8 0 sigapl 424 344 0 318 4 0 4 4 0 8 0 futexpl 56 1495 0 1495 1 1 0 1 0 8 0 knotepl 112 73 0 68 1 0 1 1 0 8 0 kqueuepl 144 98 0 97 1 0 1 1 0 8 0 pipelkpl 48 101 0 101 1 1 0 1 0 8 0 pipepl 120 202 0 202 1 1 0 1 0 8 0 fdescpl 496 328 0 318 3 0 3 3 0 8 0 filepl 152 1842 0 1804 5 3 2 5 0 8 0 lockfpl 104 7 0 6 1 0 1 1 0 8 0 lockfspl 48 4 0 3 1 0 1 1 0 8 0 sessionpl 112 18 0 11 1 0 1 1 0 8 0 pgrppl 48 18 0 11 1 0 1 1 0 8 0 ucredpl 96 108 0 101 1 0 1 1 0 8 0 zombiepl 144 318 0 318 1 1 0 1 0 8 0 processpl 984 344 0 318 5 0 5 5 0 8 0 procpl 624 617 0 591 5 1 4 5 0 8 0 sosppl 128 1 0 1 1 1 0 1 0 8 0 sockpl 400 252 0 236 4 2 2 4 0 8 0 mcl64k 65536 3 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 3 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 174 0 0 21 0 21 21 0 8 0 mtagpl 96 36 0 0 1 0 1 1 0 8 0 mbufpl 256 221 0 0 13 0 13 13 0 8 0 bufpl 280 3473 0 133 239 0 239 239 0 8 0 anonpl 16 48816 0 47855 78 69 9 77 0 124 0 amapchunkpl 152 1684 0 1652 8 5 3 8 0 158 0 amappl16 192 1596 0 1593 53 51 2 53 0 8 0 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 28 0 26 1 0 1 1 0 8 0 amappl13 168 81 0 81 1 1 0 1 0 8 0 amappl12 160 54 0 54 1 1 0 1 0 8 0 amappl11 152 62 0 47 1 0 1 1 0 8 0 amappl10 144 31 0 29 1 0 1 1 0 8 0 amappl9 136 386 0 385 1 0 1 1 0 8 0 amappl8 128 340 0 339 2 1 1 2 0 8 0 amappl7 120 119 0 112 1 0 1 1 0 8 0 amappl6 112 24 0 23 1 0 1 1 0 8 0 amappl5 104 268 0 256 1 0 1 1 0 8 0 amappl4 96 545 0 525 1 0 1 1 0 8 0 amappl3 88 106 0 101 1 0 1 1 0 8 0 amappl2 80 1679 0 1637 2 0 2 2 0 8 0 amappl1 72 17077 0 16791 23 13 10 18 0 8 0 amappl 80 869 0 851 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 3 0 0 1 0 1 1 0 8 0 uaddrrnd 24 331 0 320 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 331 0 320 1 0 1 1 0 8 0 vmmpekpl 168 6790 0 6766 2 0 2 2 0 8 0 vmmpepl 168 47303 0 46701 119 81 38 115 0 357 0 vmsppl 368 330 0 320 2 0 2 2 0 8 0 pdppl 4096 669 0 641 6 1 5 6 0 8 0 pvpl 32 159774 0 157778 184 128 56 184 0 265 30 pmappl 232 330 0 320 3 2 1 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 264 0 17 8 0 8 8 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff82741ff0) 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(ffffffff82741ff0) at sched_idle+0x3f7 sys/kern/kern_sched.c:178 end trace frame: 0x0, count: 10 ddb{0}> trace x86_ipi_db(ffffffff82741ff0) 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(ffffffff82741ff0) at sched_idle+0x3f7 sys/kern/kern_sched.c:178 end trace frame: 0x0, count: -5 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x18: addq $0x8,%rsp db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8240e307) at panic+0x15c sys/kern/subr_prf.c:207 witness_checkorder(ffffffff828f8078,9,0) at witness_checkorder+0x10e0 sys/kern/subr_witness.c:821 __mp_lock(ffffffff828f7e70) at __mp_lock+0xa1 read_rflags machine/cpufunc.h:195 [inline] __mp_lock(ffffffff828f7e70) at __mp_lock+0xa1 intr_disable machine/cpufunc.h:216 [inline] __mp_lock(ffffffff828f7e70) at __mp_lock+0xa1 sys/kern/kern_lock.c:142 pageflttrap(ffff800020da3370,0) at pageflttrap+0x7f sys/arch/amd64/amd64/trap.c:180 kerntrap(ffff800020da3370) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:302 alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b pool_cache_gc(ffffffff8290b140) at pool_cache_gc+0x138 pool_cache_list_put sys/kern/subr_pool.c:1970 [inline] pool_cache_gc(ffffffff8290b140) 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(ffffffff826f6600) at taskq_thread+0xec sys/kern/kern_task.c:437 end trace frame: 0x0, count: 5 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8240e307) at panic+0x15c sys/kern/subr_prf.c:207 witness_checkorder(ffffffff828f8078,9,0) at witness_checkorder+0x10e0 sys/kern/subr_witness.c:821 __mp_lock(ffffffff828f7e70) at __mp_lock+0xa1 read_rflags machine/cpufunc.h:195 [inline] __mp_lock(ffffffff828f7e70) at __mp_lock+0xa1 intr_disable machine/cpufunc.h:216 [inline] __mp_lock(ffffffff828f7e70) at __mp_lock+0xa1 sys/kern/kern_lock.c:142 pageflttrap(ffff800020da3370,0) at pageflttrap+0x7f sys/arch/amd64/amd64/trap.c:180 kerntrap(ffff800020da3370) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:302 alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b pool_cache_gc(ffffffff8290b140) at pool_cache_gc+0x138 pool_cache_list_put sys/kern/subr_pool.c:1970 [inline] pool_cache_gc(ffffffff8290b140) 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(ffffffff826f6600) at taskq_thread+0xec sys/kern/kern_task.c:437 end trace frame: 0x0, count: -10