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 *131067 96027 0 0x14000 0x200 0 systqmp db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff82411340) at panic+0x15c sys/kern/subr_prf.c:207 witness_checkorder(ffffffff82910c50,9,0) at witness_checkorder+0x10e0 sys/kern/subr_witness.c:821 __mp_lock(ffffffff82910a48) at __mp_lock+0xa1 read_rflags machine/cpufunc.h:195 [inline] __mp_lock(ffffffff82910a48) at __mp_lock+0xa1 intr_disable machine/cpufunc.h:216 [inline] __mp_lock(ffffffff82910a48) at __mp_lock+0xa1 sys/kern/kern_lock.c:142 pageflttrap(ffff800020da2dd0,0) at pageflttrap+0x7f sys/arch/amd64/amd64/trap.c:180 kerntrap(ffff800020da2dd0) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:302 alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b pool_cache_gc(ffffffff828b7610) at pool_cache_gc+0x138 pool_cache_list_put sys/kern/subr_pool.c:1970 [inline] pool_cache_gc(ffffffff828b7610) 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(ffffffff826e6ec0) 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(ffffffff82411340) at panic+0x15c sys/kern/subr_prf.c:207 witness_checkorder(ffffffff82910c50,9,0) at witness_checkorder+0x10e0 sys/kern/subr_witness.c:821 __mp_lock(ffffffff82910a48) at __mp_lock+0xa1 read_rflags machine/cpufunc.h:195 [inline] __mp_lock(ffffffff82910a48) at __mp_lock+0xa1 intr_disable machine/cpufunc.h:216 [inline] __mp_lock(ffffffff82910a48) at __mp_lock+0xa1 sys/kern/kern_lock.c:142 pageflttrap(ffff800020da2dd0,0) at pageflttrap+0x7f sys/arch/amd64/amd64/trap.c:180 kerntrap(ffff800020da2dd0) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:302 alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b pool_cache_gc(ffffffff828b7610) at pool_cache_gc+0x138 pool_cache_list_put sys/kern/subr_pool.c:1970 [inline] pool_cache_gc(ffffffff828b7610) 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(ffffffff826e6ec0) 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 0xffff800020da2b40 rbx 0xffff800020da2bf0 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff817e6a8f kprintf+0x16f r9 0x1 r10 0x2 r11 0x17757249bc526a0d r12 0x3000000008 r13 0xffff800020da2b50 r14 0x100 r15 0x1 rip 0xffffffff81d39c28 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020da2b30 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (systqmp) pid=131067 stat=onproc flags process=14000 proc=200 pri=32, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020d88750,0xffff800020d88280 process=0xffff800020d8a3d8 user=0xffff800020d9e000, vmspace=0xffffffff82917450 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 21440 376117 0 0 3 0x14200 bored sosplice 57665 106514 1 0 3 0x100083 ttyin getty 92695 264757 1 0 3 0x80 select sshd 8720 434189 43583 74 3 0x100092 bpf pflogd 43583 126003 1 0 3 0x80 netio pflogd 57359 267278 12941 73 3 0x100090 kqread syslogd 12941 352310 1 0 3 0x100082 netio syslogd 92927 349798 1 77 3 0x100090 poll dhclient 11752 54172 1 0 3 0x80 poll dhclient 28592 171188 0 0 3 0x14200 bored smr 15353 44845 0 0 3 0x14200 pgzero zerothread 38348 461181 0 0 3 0x14200 aiodoned aiodoned 46867 169123 0 0 3 0x14200 syncer update 49341 243211 0 0 3 0x14200 cleaner cleaner 5633 202751 0 0 3 0x14200 reaper reaper 56876 191617 0 0 3 0x14200 pgdaemon pagedaemon 74079 180340 0 0 3 0x14200 bored crynlk 14192 485309 0 0 3 0x14200 bored crypto 28342 495906 0 0 3 0x40014200 acpi0 acpi0 12725 9553 0 0 7 0x40014200 idle1 83404 249259 0 0 3 0x14200 bored softnet *96027 131067 0 0 7 0x14200 systqmp 2820 448376 0 0 3 0x14200 bored systq 55048 473509 0 0 3 0x40014200 bored softclock 44885 284342 0 0 3 0x40014200 idle0 1 459343 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 (0xffffffff828b7620) #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 96027 (systqmp) thread 0xffff800020d88000 (131067) shared rwlock pools r = 0 (0xffffffff8279a9d0) #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 (0xffffffff826e6f30) #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 (0xffffffff828b7620) #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 9497 6412K 6786K 78643K 10919 0 pcb 13 8K 8K 78643K 57 0 rtable 52 3K 5K 78643K 239 0 ifaddr 43 9K 12K 78643K 69 0 counters 39 33K 33K 78643K 43 0 ioctlops 0 0K 4K 78643K 1496 0 iov 0 0K 12K 78643K 24 0 mount 1 1K 1K 78643K 1 0 vnodes 1219 77K 77K 78643K 1281 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 6 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 42 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 1 0K 25K 78643K 177 0 proc 62 63K 95K 78643K 457 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 16 0 in_multi 20 1K 2K 78643K 56 0 ether_multi 1 0K 0K 78643K 3 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 79 360K 360K 78643K 79 0 exec 0 0K 1K 78643K 218 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 46 2K 39K 78643K 1519 0 UVM aobj 14 2K 2K 78643K 14 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 24 0 NDP 7 0K 0K 78643K 13 0 temp 47 3858K 3926K 78643K 5078 0 kqueue 2 2K 12K 78643K 12 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 4 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 23 0 21 1 0 1 1 0 8 0 rtentry 112 50 0 37 2 0 2 2 0 8 0 unpcb 120 117 0 108 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 631 0 631 1 1 0 1 0 8 0 tcpcb 544 56 0 52 1 0 1 1 0 8 0 inpcb 296 224 0 217 2 1 1 2 0 8 0 rttmr 72 2 0 1 2 1 1 1 0 8 0 nd6 48 7 0 7 1 1 0 1 0 8 0 pffrag 232 5 0 5 1 0 1 1 0 482 1 pffrnode 88 5 0 5 1 0 1 1 0 8 1 pffrent 40 14 0 14 1 0 1 1 0 8 1 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 9 1 0 1 1 0 8 0 pftag 88 4 0 4 1 1 0 1 0 8 0 pfstitem 24 23 0 23 1 1 0 1 0 8 0 pfstkey 112 23 0 23 1 1 0 1 0 8 0 pfstate 328 23 0 23 2 2 0 2 0 8 0 pfrule 1360 29 0 20 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 260 0 172 12 5 7 12 0 8 0 art_table 32 261 0 172 2 0 2 2 0 8 0 art_node 16 49 0 38 1 0 1 1 0 8 0 sysvmsgpl 40 9 0 4 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 40 0 30 1 0 1 1 0 8 0 shmpl 112 12 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1619 0 214 89 0 89 89 0 8 0 ffsino 272 1619 0 214 96 1 95 95 0 8 0 nchpl 144 2147 0 539 60 0 60 60 0 8 0 uvmvnodes 72 1709 0 0 32 0 32 32 0 8 0 vnodes 208 1709 0 0 90 0 90 90 0 8 0 namei 1024 6218 0 6218 2 2 0 1 0 8 0 percpumem 16 32 0 2 1 0 1 1 0 8 0 vmpool 560 2 0 2 1 1 0 1 0 8 0 pfiaddrpl 120 6 0 2 1 0 1 1 0 8 0 scxspl 192 6090 0 6090 12 11 1 7 0 8 1 plimitpl 152 25 0 20 1 0 1 1 0 8 0 sigapl 424 393 0 367 4 0 4 4 0 8 0 futexpl 56 2571 0 2571 1 1 0 1 0 8 0 knotepl 112 69 0 64 1 0 1 1 0 8 0 kqueuepl 144 16 0 15 1 0 1 1 0 8 0 pipelkpl 48 106 0 106 1 1 0 1 0 8 0 pipepl 120 212 0 212 1 1 0 1 0 8 0 fdescpl 496 377 0 367 3 0 3 3 0 8 0 filepl 152 2496 0 2458 7 5 2 6 0 8 0 lockfpl 104 21 0 20 1 0 1 1 0 8 0 lockfspl 48 11 0 10 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 447 0 439 1 0 1 1 0 8 0 zombiepl 144 367 0 367 2 2 0 1 0 8 0 processpl 984 393 0 367 6 1 5 5 0 8 0 procpl 624 744 0 718 4 0 4 4 0 8 0 sosppl 128 4 0 4 1 1 0 1 0 8 0 sockpl 400 366 0 348 5 3 2 4 0 8 0 mcl64k 65536 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 4 0 0 1 0 1 1 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 178 0 0 22 0 22 22 0 8 0 mtagpl 96 23 0 0 1 0 1 1 0 8 0 mbufpl 256 235 0 0 14 0 14 14 0 8 0 bufpl 280 3605 0 135 248 0 248 248 0 8 0 anonpl 16 48592 0 47623 66 54 12 65 0 124 5 amapchunkpl 152 2049 0 2018 11 9 2 11 0 158 0 amappl16 192 1551 0 1548 44 42 2 44 0 8 0 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 101 0 99 1 0 1 1 0 8 0 amappl13 168 28 0 28 1 1 0 1 0 8 0 amappl12 160 71 0 71 2 2 0 1 0 8 0 amappl11 152 55 0 40 1 0 1 1 0 8 0 amappl10 144 18 0 16 1 0 1 1 0 8 0 amappl9 136 177 0 175 1 0 1 1 0 8 0 amappl8 128 432 0 430 2 1 1 2 0 8 0 amappl7 120 117 0 110 1 0 1 1 0 8 0 amappl6 112 26 0 26 1 1 0 1 0 8 0 amappl5 104 782 0 770 1 0 1 1 0 8 0 amappl4 96 552 0 531 1 0 1 1 0 8 0 amappl3 88 177 0 172 1 0 1 1 0 8 0 amappl2 80 2084 0 2043 2 1 1 2 0 8 0 amappl1 72 18303 0 18011 24 14 10 18 0 8 0 amappl 80 999 0 983 2 1 1 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 13 0 0 1 0 1 1 0 8 0 uaddrrnd 24 379 0 369 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 379 0 369 1 0 1 1 0 8 0 vmmpekpl 168 7082 0 7059 2 0 2 2 0 8 0 vmmpepl 168 53302 0 52693 126 76 50 115 0 357 15 vmsppl 368 378 0 369 2 0 2 2 0 8 0 pdppl 4096 765 0 738 7 2 5 6 0 8 0 pvpl 32 166934 0 164934 164 58 106 161 0 265 81 pmappl 232 378 0 369 3 2 1 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 265 0 16 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(ffffffff82411340) at panic+0x15c sys/kern/subr_prf.c:207 witness_checkorder(ffffffff82910c50,9,0) at witness_checkorder+0x10e0 sys/kern/subr_witness.c:821 __mp_lock(ffffffff82910a48) at __mp_lock+0xa1 read_rflags machine/cpufunc.h:195 [inline] __mp_lock(ffffffff82910a48) at __mp_lock+0xa1 intr_disable machine/cpufunc.h:216 [inline] __mp_lock(ffffffff82910a48) at __mp_lock+0xa1 sys/kern/kern_lock.c:142 pageflttrap(ffff800020da2dd0,0) at pageflttrap+0x7f sys/arch/amd64/amd64/trap.c:180 kerntrap(ffff800020da2dd0) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:302 alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b pool_cache_gc(ffffffff828b7610) at pool_cache_gc+0x138 pool_cache_list_put sys/kern/subr_pool.c:1970 [inline] pool_cache_gc(ffffffff828b7610) 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(ffffffff826e6ec0) 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