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 *447453 739 0 0x14000 0x200 0 systqmp db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823fd3bd) at panic+0x15c sys/kern/subr_prf.c:207 witness_checkorder(ffffffff828e7060,9,0) at witness_checkorder+0x10e0 sys/kern/subr_witness.c:821 __mp_lock(ffffffff828e6e58) at __mp_lock+0xa1 read_rflags machine/cpufunc.h:195 [inline] __mp_lock(ffffffff828e6e58) at __mp_lock+0xa1 intr_disable machine/cpufunc.h:216 [inline] __mp_lock(ffffffff828e6e58) at __mp_lock+0xa1 sys/kern/kern_lock.c:142 pageflttrap(ffff800020da3bc0,0) at pageflttrap+0x7f sys/arch/amd64/amd64/trap.c:180 kerntrap(ffff800020da3bc0) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:302 alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b pool_cache_gc(ffffffff8290b390) at pool_cache_gc+0x138 pool_cache_list_put sys/kern/subr_pool.c:1970 [inline] pool_cache_gc(ffffffff8290b390) 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(ffffffff82723250) 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(ffffffff823fd3bd) at panic+0x15c sys/kern/subr_prf.c:207 witness_checkorder(ffffffff828e7060,9,0) at witness_checkorder+0x10e0 sys/kern/subr_witness.c:821 __mp_lock(ffffffff828e6e58) at __mp_lock+0xa1 read_rflags machine/cpufunc.h:195 [inline] __mp_lock(ffffffff828e6e58) at __mp_lock+0xa1 intr_disable machine/cpufunc.h:216 [inline] __mp_lock(ffffffff828e6e58) at __mp_lock+0xa1 sys/kern/kern_lock.c:142 pageflttrap(ffff800020da3bc0,0) at pageflttrap+0x7f sys/arch/amd64/amd64/trap.c:180 kerntrap(ffff800020da3bc0) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:302 alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b pool_cache_gc(ffffffff8290b390) at pool_cache_gc+0x138 pool_cache_list_put sys/kern/subr_pool.c:1970 [inline] pool_cache_gc(ffffffff8290b390) 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(ffffffff82723250) 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 0xffff800020da3930 rbx 0xffff800020da39e0 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff8102be9f kprintf+0x16f r9 0x1 r10 0x2 r11 0xd8b293f7ed8997e4 r12 0x3000000008 r13 0xffff800020da3940 r14 0x100 r15 0x1 rip 0xffffffff81850b98 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020da3920 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (systqmp) pid=447453 stat=onproc flags process=14000 proc=200 pri=32, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020d88ea0,0xffff800020d88010 process=0xffff800020d8a000 user=0xffff800020d9e000, vmspace=0xffffffff828e66a8 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 1837 413753 66313 0 3 0x82 wait syz-executor.1 29588 484613 0 0 3 0x14200 bored sosplice 26450 145254 66313 0 3 0x82 piperd syz-executor.0 66313 435831 44104 0 3 0x82 kqread syz-fuzzer 66313 452419 44104 0 3 0x4000082 thrsleep syz-fuzzer 66313 152394 44104 0 3 0x4000082 thrsleep syz-fuzzer 66313 72106 44104 0 3 0x4000082 thrsleep syz-fuzzer 66313 156910 44104 0 3 0x4000082 thrsleep syz-fuzzer 66313 172577 44104 0 3 0x4000082 thrsleep syz-fuzzer 66313 375765 44104 0 3 0x4000082 thrsleep syz-fuzzer 66313 22423 44104 0 3 0x4000082 thrsleep syz-fuzzer 66313 24339 44104 0 3 0x4000082 thrsleep syz-fuzzer 66313 321753 44104 0 3 0x4000082 thrsleep syz-fuzzer 44104 228063 37301 0 3 0x10008a pause ksh 37301 428498 91723 0 3 0x92 select sshd 30520 138872 1 0 3 0x100083 ttyin getty 91723 94114 1 0 3 0x80 select sshd 17042 415256 32495 74 3 0x100092 bpf pflogd 32495 245074 1 0 3 0x80 netio pflogd 69117 289330 97558 73 3 0x100090 kqread syslogd 97558 494783 1 0 3 0x100082 netio syslogd 30795 20280 1 77 3 0x100090 poll dhclient 47014 107431 1 0 3 0x80 poll dhclient 86469 103345 0 0 3 0x14200 bored smr 60913 498107 0 0 3 0x14200 pgzero zerothread 15259 188816 0 0 3 0x14200 aiodoned aiodoned 55160 41927 0 0 3 0x14200 syncer update 54414 243993 0 0 3 0x14200 cleaner cleaner 40727 21908 0 0 3 0x14200 reaper reaper 30843 19009 0 0 3 0x14200 pgdaemon pagedaemon 37943 275792 0 0 3 0x14200 bored crynlk 39182 212524 0 0 3 0x14200 bored crypto 8233 11991 0 0 3 0x40014200 acpi0 acpi0 82524 473213 0 0 7 0x40014200 idle1 90251 85701 0 0 3 0x14200 bored softnet * 739 447453 0 0 7 0x14200 systqmp 24610 217535 0 0 3 0x14200 bored systq 90545 15479 0 0 3 0x40014200 bored softclock 56152 477633 0 0 3 0x40014200 idle0 1 508228 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 (0xffffffff8290b3a0) #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 739 (systqmp) thread 0xffff800020d88750 (447453) shared rwlock pools r = 0 (0xffffffff8276e7a0) #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 (0xffffffff827232c0) #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 (0xffffffff8290b3a0) #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 9513 6413K 6732K 78643K 10752 0 pcb 13 8K 8K 78643K 31 0 rtable 102 3K 6K 78643K 275 0 ifaddr 69 13K 14K 78643K 92 0 counters 43 33K 33K 78643K 45 0 ioctlops 0 0K 4K 78643K 1481 0 iov 0 0K 12K 78643K 16 0 mount 1 1K 1K 78643K 1 0 vnodes 1228 77K 77K 78643K 1287 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 4 0 VM map 2 1K 1K 78643K 2 0 sem 11 0K 0K 78643K 14 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 124 0 proc 61 63K 95K 78643K 480 0 subproc 32 2K 2K 78643K 51 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 in_multi 54 3K 3K 78643K 71 0 ether_multi 1 0K 0K 78643K 1 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 224 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 112 22K 22K 78643K 1317 0 UVM aobj 6 2K 2K 78643K 6 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 4 0 NDP 11 0K 0K 78643K 19 0 temp 96 3848K 3912K 78643K 3239 0 kqueue 3 4K 8K 78643K 5 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 8 0 2 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 25 0 23 1 0 1 1 0 8 0 rtentry 112 60 0 19 2 0 2 2 0 8 0 unpcb 120 203 0 193 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 247 0 247 1 1 0 1 0 8 0 tcpcb 544 26 0 22 1 0 1 1 0 8 0 inpcb 280 120 0 113 2 0 2 2 0 8 1 nd6 48 10 0 6 1 0 1 1 0 8 0 pffrag 232 1 0 1 1 1 0 1 0 482 0 pffrnode 88 1 0 1 1 1 0 1 0 8 0 pffrent 40 3 0 3 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 8 0 7 1 0 1 1 0 8 0 pftag 88 2 0 2 1 1 0 1 0 8 0 pfstitem 24 17 0 2 1 0 1 1 0 8 0 pfstkey 112 17 0 2 1 0 1 1 0 8 0 pfstate 328 17 0 2 2 0 2 2 0 8 0 pfrule 1360 26 0 19 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 256 0 84 13 2 11 13 0 8 0 art_table 32 257 0 84 2 0 2 2 0 8 0 art_node 16 59 0 21 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 1 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 9 0 0 1 0 1 1 0 8 0 shmpl 112 4 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1527 0 120 89 0 89 89 0 8 0 ffsino 272 1527 0 120 96 2 94 95 0 8 0 nchpl 144 1875 0 279 60 0 60 60 0 8 0 uvmvnodes 72 1629 0 0 30 0 30 30 0 8 0 vnodes 208 1629 0 0 86 0 86 86 0 8 0 namei 1024 5037 0 5037 2 1 1 1 0 8 1 percpumem 16 33 0 1 1 0 1 1 0 8 0 pfiaddrpl 120 2 0 2 1 1 0 1 0 8 0 scxspl 192 5602 0 5602 8 7 1 7 0 8 1 plimitpl 152 18 0 10 1 0 1 1 0 8 0 sigapl 424 337 0 305 4 0 4 4 0 8 0 futexpl 56 1133 0 1133 1 0 1 1 0 8 1 knotepl 112 75 0 56 1 0 1 1 0 8 0 kqueuepl 144 20 0 18 1 0 1 1 0 8 0 pipepl 304 93 0 83 2 0 2 2 0 8 1 fdescpl 496 321 0 305 3 0 3 3 0 8 0 filepl 152 1783 0 1680 7 1 6 6 0 8 1 lockfpl 104 23 0 22 1 0 1 1 0 8 0 lockfspl 48 9 0 8 1 0 1 1 0 8 0 sessionpl 112 19 0 8 1 0 1 1 0 8 0 pgrppl 48 28 0 17 1 0 1 1 0 8 0 ucredpl 96 117 0 108 1 0 1 1 0 8 0 zombiepl 144 306 0 305 2 1 1 1 0 8 0 processpl 984 337 0 305 6 1 5 5 0 8 0 procpl 624 520 0 479 4 0 4 4 0 8 0 sosppl 128 2 0 2 1 1 0 1 0 8 0 sockpl 400 351 0 332 6 1 5 5 0 8 3 mcl64k 65536 6 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 1 0 0 1 0 1 1 0 8 0 mcl4k 4096 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 229 0 0 28 0 28 28 0 8 0 mtagpl 80 5 0 0 1 0 1 1 0 8 0 mbufpl 256 231 0 0 14 0 14 14 0 8 0 bufpl 280 3608 0 132 249 0 249 249 0 8 0 anonpl 16 46085 0 32755 67 1 66 66 0 124 0 amapchunkpl 152 1581 0 1435 8 1 7 8 0 158 0 amappl16 192 1324 0 434 45 0 45 45 0 8 0 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 26 0 21 1 0 1 1 0 8 0 amappl13 168 67 0 64 1 0 1 1 0 8 0 amappl12 160 47 0 44 1 0 1 1 0 8 0 amappl11 152 69 0 53 1 0 1 1 0 8 0 amappl10 144 36 0 27 1 0 1 1 0 8 0 amappl9 136 382 0 381 1 0 1 1 0 8 0 amappl8 128 346 0 324 1 0 1 1 0 8 0 amappl7 120 126 0 112 1 0 1 1 0 8 0 amappl6 112 27 0 21 1 0 1 1 0 8 0 amappl5 104 256 0 239 1 0 1 1 0 8 0 amappl4 96 533 0 503 1 0 1 1 0 8 0 amappl3 88 103 0 98 1 0 1 1 0 8 0 amappl2 80 1496 0 1428 2 0 2 2 0 8 0 amappl1 72 17317 0 16867 23 13 10 18 0 8 0 amappl 80 785 0 740 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 5 0 0 1 0 1 1 0 8 0 uaddrrnd 24 321 0 305 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 321 0 305 1 0 1 1 0 8 0 vmmpekpl 168 6573 0 6543 2 0 2 2 0 8 0 vmmpepl 168 46625 0 44590 132 9 123 123 0 357 30 vmsppl 368 320 0 305 2 0 2 2 0 8 0 pdppl 4096 649 0 610 7 1 6 6 0 8 0 pvpl 32 155287 0 138812 160 3 157 159 0 265 0 pmappl 232 320 0 305 2 1 1 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 273 0 10 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(ffffffff823fd3bd) at panic+0x15c sys/kern/subr_prf.c:207 witness_checkorder(ffffffff828e7060,9,0) at witness_checkorder+0x10e0 sys/kern/subr_witness.c:821 __mp_lock(ffffffff828e6e58) at __mp_lock+0xa1 read_rflags machine/cpufunc.h:195 [inline] __mp_lock(ffffffff828e6e58) at __mp_lock+0xa1 intr_disable machine/cpufunc.h:216 [inline] __mp_lock(ffffffff828e6e58) at __mp_lock+0xa1 sys/kern/kern_lock.c:142 pageflttrap(ffff800020da3bc0,0) at pageflttrap+0x7f sys/arch/amd64/amd64/trap.c:180 kerntrap(ffff800020da3bc0) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:302 alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b pool_cache_gc(ffffffff8290b390) at pool_cache_gc+0x138 pool_cache_list_put sys/kern/subr_pool.c:1970 [inline] pool_cache_gc(ffffffff8290b390) 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(ffffffff82723250) 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