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 411888 29069 0 0x14000 0x200 1 reaper *167301 17943 0 0x14000 0x200 0 systqmp db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8241e115) at panic+0x15c sys/kern/subr_prf.c:207 witness_checkorder(ffffffff828fd198,9,0) at witness_checkorder+0x10e0 sys/kern/subr_witness.c:821 __mp_lock(ffffffff828fcf90) at __mp_lock+0xa1 read_rflags machine/cpufunc.h:195 [inline] __mp_lock(ffffffff828fcf90) at __mp_lock+0xa1 intr_disable machine/cpufunc.h:216 [inline] __mp_lock(ffffffff828fcf90) at __mp_lock+0xa1 sys/kern/kern_lock.c:142 pageflttrap(ffff800020da3230,0) at pageflttrap+0x7f sys/arch/amd64/amd64/trap.c:180 kerntrap(ffff800020da3230) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:302 alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b pool_do_put(ffffffff828d9a80,fffffd8069092a00) at pool_do_put+0x12e sys/kern/subr_pool.c:836 pool_cache_gc(ffffffff828d9a80) at pool_cache_gc+0x144 pool_cache_list_put sys/kern/subr_pool.c:1973 [inline] pool_cache_gc(ffffffff828d9a80) at pool_cache_gc+0x144 sys/kern/subr_pool.c:2025 pool_gc_pages(0) at pool_gc_pages+0x6c sys/kern/subr_pool.c:1559 taskq_thread(ffffffff82767800) at taskq_thread+0xec sys/kern/kern_task.c:437 end trace frame: 0x0, count: 4 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(ffffffff8241e115) at panic+0x15c sys/kern/subr_prf.c:207 witness_checkorder(ffffffff828fd198,9,0) at witness_checkorder+0x10e0 sys/kern/subr_witness.c:821 __mp_lock(ffffffff828fcf90) at __mp_lock+0xa1 read_rflags machine/cpufunc.h:195 [inline] __mp_lock(ffffffff828fcf90) at __mp_lock+0xa1 intr_disable machine/cpufunc.h:216 [inline] __mp_lock(ffffffff828fcf90) at __mp_lock+0xa1 sys/kern/kern_lock.c:142 pageflttrap(ffff800020da3230,0) at pageflttrap+0x7f sys/arch/amd64/amd64/trap.c:180 kerntrap(ffff800020da3230) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:302 alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b pool_do_put(ffffffff828d9a80,fffffd8069092a00) at pool_do_put+0x12e sys/kern/subr_pool.c:836 pool_cache_gc(ffffffff828d9a80) at pool_cache_gc+0x144 pool_cache_list_put sys/kern/subr_pool.c:1973 [inline] pool_cache_gc(ffffffff828d9a80) at pool_cache_gc+0x144 sys/kern/subr_pool.c:2025 pool_gc_pages(0) at pool_gc_pages+0x6c sys/kern/subr_pool.c:1559 taskq_thread(ffffffff82767800) at taskq_thread+0xec sys/kern/kern_task.c:437 end trace frame: 0x0, count: -11 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020da2fa0 rbx 0xffff800020da3050 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff8150d54f kprintf+0x16f r9 0x1 r10 0x2 r11 0x77e7005698aa74da r12 0x3000000008 r13 0xffff800020da2fb0 r14 0x100 r15 0x1 rip 0xffffffff818b9b58 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020da2f90 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (systqmp) pid=167301 stat=onproc flags process=14000 proc=200 pri=32, usrpri=51, nice=20 forw=0xffffffffffffffff, list=0xffff800020d89110,0xffff800020d889d0 process=0xffff800020d8aba0 user=0xffff800020d9e000, vmspace=0xffffffff82904c80 estcpu=1, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 88628 271447 78735 0 3 0x80 nanosleep syz-executor.0 88628 432917 78735 0 3 0x4000080 nanosleep syz-executor.0 88628 217857 78735 0 3 0x4000080 fsleep syz-executor.0 66177 239735 0 0 3 0x14200 bored sosplice 68113 231147 52582 0 3 0x82 nanosleep syz-executor.1 78735 372888 52582 0 3 0x82 nanosleep syz-executor.0 52582 311124 83283 0 3 0x82 thrsleep syz-fuzzer 52582 19948 83283 0 3 0x4000082 nanosleep syz-fuzzer 52582 492048 83283 0 3 0x4000082 thrsleep syz-fuzzer 52582 2145 83283 0 3 0x4000082 thrsleep syz-fuzzer 52582 518131 83283 0 3 0x4000082 thrsleep syz-fuzzer 52582 64213 83283 0 3 0x4000082 thrsleep syz-fuzzer 52582 486623 83283 0 3 0x4000082 thrsleep syz-fuzzer 52582 34300 83283 0 3 0x4000082 kqread syz-fuzzer 52582 462464 83283 0 3 0x4000082 thrsleep syz-fuzzer 52582 282074 83283 0 3 0x4000082 thrsleep syz-fuzzer 83283 168264 36441 0 3 0x10008a pause ksh 36441 321611 37177 0 3 0x92 select sshd 96131 307079 1 0 3 0x100083 ttyin getty 37177 517359 1 0 3 0x80 select sshd 49519 108570 49650 74 3 0x100092 bpf pflogd 49650 305354 1 0 3 0x80 netio pflogd 66237 380630 29279 73 3 0x100090 kqread syslogd 29279 492529 1 0 3 0x100082 netio syslogd 36399 159199 1 77 3 0x100090 poll dhclient 20824 423874 1 0 3 0x80 poll dhclient 71909 181893 0 0 3 0x14200 bored smr 24820 100173 0 0 3 0x14200 pgzero zerothread 97572 70403 0 0 3 0x14200 aiodoned aiodoned 86848 112381 0 0 3 0x14200 syncer update 84662 208865 0 0 3 0x14200 cleaner cleaner 29069 411888 0 0 7 0x14200 reaper 94652 297393 0 0 3 0x14200 pgdaemon pagedaemon 67570 238508 0 0 3 0x14200 bored crynlk 75413 285857 0 0 3 0x14200 bored crypto 60704 401725 0 0 3 0x40014200 acpi0 acpi0 17370 343561 0 0 3 0x40014200 idle1 97403 503122 0 0 3 0x14200 bored softnet *17943 167301 0 0 7 0x14200 systqmp 83760 257505 0 0 3 0x14200 bored systq 72031 291844 0 0 3 0x40014200 bored softclock 5152 385185 0 0 3 0x40014200 idle0 1 47840 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 (0xffffffff828d9a90) #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 17943 (systqmp) thread 0xffff800020d88ea0 (167301) shared rwlock pools r = 0 (0xffffffff82756930) #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 (0xffffffff82767870) #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 (0xffffffff828d9a90) #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 6414K 6801K 78643K 10822 0 pcb 13 8K 8K 78643K 64 0 rtable 82 2K 7K 78643K 314 0 ifaddr 69 13K 13K 78643K 115 0 sysctl 2 0K 0K 78643K 2 0 counters 43 33K 34K 78643K 49 0 ioctlops 0 0K 4K 78643K 1491 0 iov 0 0K 16K 78643K 95 0 mount 1 1K 1K 78643K 1 0 vnodes 1226 77K 77K 78643K 1352 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 60 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 190 0 proc 61 63K 83K 78643K 455 0 subproc 32 2K 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 51 0 in_multi 30 2K 2K 78643K 82 0 ether_multi 1 0K 0K 78643K 6 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 221 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 129 39K 39K 78643K 1555 0 UVM aobj 10 2K 2K 78643K 10 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 42 0 NDP 12 0K 0K 78643K 24 0 temp 107 3870K 3934K 78643K 6529 0 kqueue 3 4K 8K 78643K 9 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 0 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 53 0 21 2 0 2 2 0 8 0 unpcb 120 109 0 99 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 569 0 569 2 2 0 1 0 8 0 tcpcb 544 88 0 81 1 0 1 1 0 8 0 inpcb 296 267 0 259 2 0 2 2 0 8 1 nd6 48 11 0 7 1 0 1 1 0 8 0 pffrag 232 2 0 2 1 0 1 1 0 482 1 pffrnode 88 2 0 2 1 0 1 1 0 8 1 pffrent 40 4 0 4 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 34 0 34 1 0 1 1 0 8 1 pfstitem 24 31 0 2 1 0 1 1 0 8 0 pfstkey 112 31 0 2 1 0 1 1 0 8 0 pfstate 328 31 0 2 3 0 3 3 0 8 0 pfrule 1360 27 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 212 0 81 12 0 12 12 0 8 2 art_table 32 213 0 81 2 0 2 2 0 8 0 art_node 16 52 0 25 1 0 1 1 0 8 0 sysvmsgpl 40 12 0 9 1 0 1 1 0 8 0 semupl 112 9 0 9 1 0 1 1 0 8 1 semapl 112 52 0 42 1 0 1 1 0 8 0 shmpl 112 7 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1627 0 222 89 0 89 89 0 8 1 ffsino 272 1627 0 222 96 1 95 95 0 8 1 nchpl 144 2110 0 500 60 0 60 60 0 8 0 uvmvnodes 72 1784 0 0 33 0 33 33 0 8 0 vnodes 208 1784 0 0 94 0 94 94 0 8 0 namei 1024 5656 0 5656 2 1 1 1 0 8 1 percpumem 16 35 0 3 1 0 1 1 0 8 0 vcpupl 1984 2 0 0 1 0 1 1 0 8 0 vmpool 560 2 0 0 1 0 1 1 0 8 0 pfiaddrpl 120 10 0 10 1 0 1 1 0 8 1 scxspl 192 6309 0 6309 8 5 3 7 0 8 3 plimitpl 152 21 0 13 1 0 1 1 0 8 0 sigapl 424 406 0 374 4 0 4 4 0 8 0 futexpl 56 2610 0 2609 1 0 1 1 0 8 0 knotepl 112 69 0 50 1 0 1 1 0 8 0 kqueuepl 144 12 0 10 1 0 1 1 0 8 0 pipepl 304 121 0 111 3 1 2 3 0 8 1 fdescpl 496 390 0 374 3 0 3 3 0 8 0 filepl 152 2142 0 2042 8 2 6 7 0 8 2 lockfpl 104 32 0 31 1 0 1 1 0 8 0 lockfspl 48 12 0 11 1 0 1 1 0 8 0 sessionpl 112 18 0 7 1 0 1 1 0 8 0 pgrppl 48 22 0 11 1 0 1 1 0 8 0 ucredpl 96 165 0 156 1 0 1 1 0 8 0 zombiepl 144 374 0 373 2 1 1 1 0 8 0 processpl 992 406 0 373 6 1 5 5 0 8 0 procpl 624 775 0 731 4 0 4 4 0 8 0 sosppl 128 4 0 4 1 0 1 1 0 8 1 sockpl 400 401 0 381 4 0 4 4 0 8 1 mcl64k 65536 4 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 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 6 0 0 1 0 1 1 0 8 0 mcl2k 2048 180 0 0 22 0 22 22 0 8 0 mtagpl 96 7 0 0 1 0 1 1 0 8 0 mbufpl 256 193 0 0 12 0 12 12 0 8 0 mbufpl: pool(0xffffffff828d9a80:mbufpl): free list modified: page 0xfffffd8069092000; item ordinal 3; addr 0xfffffd8069092700 (p 0xfffffd80739ed000); offset 0x0=0x0 mbufpl: pool(0xffffffff828d9a80:mbufpl): page inconsistency: page 0xfffffd8069092000; item ordinal 4; addr 0xfffffd990a1a16d3 bufpl 280 3791 0 132 262 0 262 262 0 8 0 anonpl 16 54555 0 37937 76 1 75 75 0 124 6 amapchunkpl 152 2113 0 1946 12 0 12 12 0 158 4 amappl16 192 1685 0 797 45 0 45 45 0 8 0 amappl15 184 4 0 2 1 0 1 1 0 8 0 amappl14 176 32 0 27 1 0 1 1 0 8 0 amappl13 168 28 0 25 1 0 1 1 0 8 0 amappl12 160 86 0 83 2 1 1 1 0 8 0 amappl11 152 58 0 42 1 0 1 1 0 8 0 amappl10 144 19 0 14 1 0 1 1 0 8 0 amappl9 136 387 0 383 1 0 1 1 0 8 0 amappl8 128 434 0 398 2 0 2 2 0 8 0 amappl7 120 118 0 107 1 0 1 1 0 8 0 amappl6 112 25 0 21 1 0 1 1 0 8 0 amappl5 104 522 0 504 1 0 1 1 0 8 0 amappl4 96 492 0 463 1 0 1 1 0 8 0 amappl3 88 106 0 101 1 0 1 1 0 8 0 amappl2 80 2187 0 2106 2 0 2 2 0 8 0 amappl1 72 19893 0 19400 23 13 10 18 0 8 0 amappl 80 1037 0 984 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 9 0 0 1 0 1 1 0 8 0 uaddrrnd 24 392 0 373 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 392 0 373 1 0 1 1 0 8 0 vmmpekpl 168 7264 0 7230 2 0 2 2 0 8 0 vmmpepl 168 56662 0 54455 127 14 113 119 0 357 17 vmsppl 368 391 0 373 2 0 2 2 0 8 0 pdppl 4096 791 0 748 7 1 6 6 0 8 0 pvpl 32 180776 0 160863 181 0 181 181 0 265 18 pmappl 232 391 0 373 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(ffffffff8241e115) at panic+0x15c sys/kern/subr_prf.c:207 witness_checkorder(ffffffff828fd198,9,0) at witness_checkorder+0x10e0 sys/kern/subr_witness.c:821 __mp_lock(ffffffff828fcf90) at __mp_lock+0xa1 read_rflags machine/cpufunc.h:195 [inline] __mp_lock(ffffffff828fcf90) at __mp_lock+0xa1 intr_disable machine/cpufunc.h:216 [inline] __mp_lock(ffffffff828fcf90) at __mp_lock+0xa1 sys/kern/kern_lock.c:142 pageflttrap(ffff800020da3230,0) at pageflttrap+0x7f sys/arch/amd64/amd64/trap.c:180 kerntrap(ffff800020da3230) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:302 alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b pool_do_put(ffffffff828d9a80,fffffd8069092a00) at pool_do_put+0x12e sys/kern/subr_pool.c:836 pool_cache_gc(ffffffff828d9a80) at pool_cache_gc+0x144 pool_cache_list_put sys/kern/subr_pool.c:1973 [inline] pool_cache_gc(ffffffff828d9a80) at pool_cache_gc+0x144 sys/kern/subr_pool.c:2025 pool_gc_pages(0) at pool_gc_pages+0x6c sys/kern/subr_pool.c:1559 taskq_thread(ffffffff82767800) at taskq_thread+0xec sys/kern/kern_task.c:437 end trace frame: 0x0, count: -11 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 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x54 sys/dev/kcov.c:88 reaper(ffff800020d89380) at reaper+0x14e sys/kern/kern_exit.c:444 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 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x54 sys/dev/kcov.c:88 reaper(ffff800020d89380) at reaper+0x14e sys/kern/kern_exit.c:444 end trace frame: 0x0, count: -5