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 219981 85238 0 0x2 0x4000000 0 syz-fuzzer *307952 93134 0 0x14000 0x200 1 systqmp db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823fa9a0) at panic+0x15c sys/kern/subr_prf.c:207 witness_checkorder(ffffffff828c2ab0,9,0) at witness_checkorder+0x10e0 sys/kern/subr_witness.c:821 __mp_lock(ffffffff828c28a8) at __mp_lock+0xa1 read_rflags machine/cpufunc.h:195 [inline] __mp_lock(ffffffff828c28a8) at __mp_lock+0xa1 intr_disable machine/cpufunc.h:216 [inline] __mp_lock(ffffffff828c28a8) at __mp_lock+0xa1 sys/kern/kern_lock.c:142 pageflttrap(ffff800020db2d70,0) at pageflttrap+0x7f sys/arch/amd64/amd64/trap.c:180 kerntrap(ffff800020db2d70) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:302 alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b pool_cache_gc(ffffffff828939b8) at pool_cache_gc+0x138 pool_cache_list_put sys/kern/subr_pool.c:1970 [inline] pool_cache_gc(ffffffff828939b8) 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(ffffffff82724c30) 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(ffffffff823fa9a0) at panic+0x15c sys/kern/subr_prf.c:207 witness_checkorder(ffffffff828c2ab0,9,0) at witness_checkorder+0x10e0 sys/kern/subr_witness.c:821 __mp_lock(ffffffff828c28a8) at __mp_lock+0xa1 read_rflags machine/cpufunc.h:195 [inline] __mp_lock(ffffffff828c28a8) at __mp_lock+0xa1 intr_disable machine/cpufunc.h:216 [inline] __mp_lock(ffffffff828c28a8) at __mp_lock+0xa1 sys/kern/kern_lock.c:142 pageflttrap(ffff800020db2d70,0) at pageflttrap+0x7f sys/arch/amd64/amd64/trap.c:180 kerntrap(ffff800020db2d70) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:302 alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b pool_cache_gc(ffffffff828939b8) at pool_cache_gc+0x138 pool_cache_list_put sys/kern/subr_pool.c:1970 [inline] pool_cache_gc(ffffffff828939b8) 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(ffffffff82724c30) 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 0xffff800020db2ae0 rbx 0xffff800020db2b90 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff819bd72f kprintf+0x16f r9 0x1 r10 0x2 r11 0x9709e11bbc3fb168 r12 0x3000000008 r13 0xffff800020db2af0 r14 0x100 r15 0x1 rip 0xffffffff816af6b8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020db2ad0 ss 0 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (systqmp) pid=307952 stat=onproc flags process=14000 proc=200 pri=32, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020d98c30,0xffff800020d98280 process=0xffff800020d9a7b0 user=0xffff800020dae000, vmspace=0xffffffff828ba618 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 23309 290731 85238 0 3 0x82 piperd syz-executor.1 43523 216221 0 0 3 0x14200 bored sosplice 40392 171087 85238 0 3 0x82 piperd syz-executor.0 85238 350488 31545 0 3 0x82 thrsleep syz-fuzzer 85238 81334 31545 0 3 0x4000082 nanosleep syz-fuzzer 85238 93901 31545 0 2 0x4000002 syz-fuzzer 85238 455914 31545 0 3 0x4000082 thrsleep syz-fuzzer 85238 34297 31545 0 3 0x4000082 thrsleep syz-fuzzer 85238 219981 31545 0 7 0x4000002 syz-fuzzer 85238 423401 31545 0 3 0x4000082 thrsleep syz-fuzzer 85238 411589 31545 0 3 0x4000082 thrsleep syz-fuzzer 85238 83379 31545 0 3 0x4000082 thrsleep syz-fuzzer 85238 254786 31545 0 3 0x4000082 thrsleep syz-fuzzer 31545 409308 31613 0 3 0x10008a pause ksh 31613 518142 91514 0 3 0x92 select sshd 49755 262517 1 0 3 0x100083 ttyin getty 91514 234164 1 0 3 0x80 select sshd 21950 74424 26675 74 3 0x100092 bpf pflogd 26675 447197 1 0 3 0x80 netio pflogd 38822 495500 68593 73 3 0x100090 kqread syslogd 68593 41549 1 0 3 0x100082 netio syslogd 99666 213211 1 77 3 0x100090 poll dhclient 1894 224503 1 0 3 0x80 poll dhclient 91479 336124 0 0 3 0x14200 bored smr 245 226223 0 0 2 0x14200 zerothread 52862 387459 0 0 3 0x14200 aiodoned aiodoned 89363 64553 0 0 3 0x14200 syncer update 94267 111584 0 0 3 0x14200 cleaner cleaner 91247 308743 0 0 3 0x14200 reaper reaper 60692 342390 0 0 3 0x14200 pgdaemon pagedaemon 81829 479530 0 0 3 0x14200 bored crynlk 43573 248172 0 0 3 0x14200 bored crypto 96208 98995 0 0 3 0x40014200 acpi0 acpi0 36534 494526 0 0 3 0x40014200 idle1 73756 337084 0 0 3 0x14200 bored softnet *93134 307952 0 0 7 0x14200 systqmp 10690 388902 0 0 3 0x14200 bored systq 14541 282428 0 0 3 0x40014200 bored softclock 51615 139348 0 0 3 0x40014200 idle0 1 130741 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 (0xffffffff828939c8) #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 93134 (systqmp) thread 0xffff800020d989c0 (307952) shared rwlock pools r = 0 (0xffffffff826ea310) #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 (0xffffffff82724ca0) #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 (0xffffffff828939c8) #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 9520 6424K 7781K 78643K 12149 0 pcb 13 8K 8K 78643K 69 0 rtable 111 5K 6K 78643K 362 0 ifaddr 81 16K 18K 78643K 163 0 counters 43 33K 34K 78643K 59 0 ioctlops 0 0K 4K 78643K 1522 0 iov 0 0K 16K 78643K 45 0 mount 1 1K 1K 78643K 1 0 vnodes 1222 77K 77K 78643K 1665 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 56 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 4 9K 25K 78643K 416 0 sigio 0 0K 0K 78643K 10 0 proc 63 63K 95K 78643K 534 0 subproc 32 2K 2K 78643K 51 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 25 0 in_multi 81 3K 4K 78643K 126 0 ether_multi 1 0K 0K 78643K 9 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 255 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 121 23K 28K 78643K 2260 0 UVM aobj 14 2K 2K 78643K 16 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 12 0K 0K 78643K 27 0 temp 110 3849K 3917K 78643K 9553 0 kqueue 3 4K 10K 78643K 23 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 9 0 2 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 39 0 37 1 0 1 1 0 8 0 rtentry 112 62 0 20 2 0 2 2 0 8 0 unpcb 120 261 0 251 1 0 1 1 0 8 0 syncache 264 7 0 7 2 2 0 1 0 8 0 tcpqe 32 43 0 43 2 2 0 1 0 8 0 tcpcb 544 129 0 124 1 0 1 1 0 8 0 inpcb 280 682 0 674 4 2 2 2 0 8 1 nd6 48 11 0 7 1 0 1 1 0 8 0 pkpcb 40 4 0 4 1 1 0 1 0 8 0 ppxss 1128 1 0 1 1 1 0 1 0 8 0 pfstscr 40 5 0 3 1 0 1 1 0 8 0 pffrag 232 2 0 2 2 2 0 1 0 482 0 pffrnode 88 2 0 2 2 2 0 1 0 8 0 pffrent 40 8 0 8 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 16 0 14 1 0 1 1 0 8 0 pfstitem 24 22 0 8 1 0 1 1 0 8 0 pfstkey 112 26 0 12 1 0 1 1 0 8 0 pfstate 328 23 0 10 2 0 2 2 0 8 0 pfrule 1360 31 0 20 3 2 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 261 0 86 12 1 11 12 0 8 0 art_table 32 262 0 86 2 0 2 2 0 8 0 art_node 16 61 0 22 1 0 1 1 0 8 0 sysvmsgpl 40 21 0 16 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 54 0 44 1 0 1 1 0 8 0 shmpl 112 14 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1976 0 577 90 1 89 89 0 8 0 ffsino 272 1976 0 577 95 1 94 95 0 8 0 nchpl 144 2697 0 1104 60 0 60 60 0 8 0 uvmvnodes 72 2388 0 0 44 0 44 44 0 8 0 vnodes 208 2388 0 0 126 0 126 126 0 8 0 namei 1024 7656 0 7656 1 0 1 1 0 8 1 percpumem 16 40 0 8 1 0 1 1 0 8 0 vcpupl 1984 1 0 0 1 0 1 1 0 8 0 vmpool 560 2 0 1 2 1 1 1 0 8 0 pfiaddrpl 120 4 0 4 2 2 0 1 0 8 0 scxspl 192 8015 0 8015 8 7 1 7 0 8 1 plimitpl 152 37 0 29 1 0 1 1 0 8 0 sigapl 424 631 0 600 4 0 4 4 0 8 0 futexpl 56 6506 0 6506 1 0 1 1 0 8 1 knotepl 112 93 0 74 1 0 1 1 0 8 0 kqueuepl 144 49 0 46 1 0 1 1 0 8 0 pipelkpl 48 170 0 160 1 0 1 1 0 8 0 pipepl 120 340 0 321 3 2 1 2 0 8 0 fdescpl 496 613 0 598 3 0 3 3 0 8 0 filepl 152 3696 0 3596 6 1 5 6 0 8 1 lockfpl 104 103 0 102 1 0 1 1 0 8 0 lockfspl 48 38 0 37 1 0 1 1 0 8 0 sessionpl 112 19 0 8 1 0 1 1 0 8 0 pgrppl 48 21 0 10 1 0 1 1 0 8 0 ucredpl 96 300 0 291 1 0 1 1 0 8 0 zombiepl 144 600 0 600 1 0 1 1 0 8 1 processpl 984 631 0 600 5 0 5 5 0 8 0 procpl 624 1435 0 1395 4 0 4 4 0 8 0 srpgc 64 2 0 2 1 1 0 1 0 8 0 sosppl 128 9 0 9 3 2 1 1 0 8 1 sockpl 400 993 0 973 6 3 3 4 0 8 0 mcl64k 65536 15 0 0 2 0 2 2 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 4 0 0 1 0 1 1 0 8 0 mcl9k 9216 4 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 10 0 0 2 0 2 2 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 80 215 0 0 5 0 5 5 0 8 0 mbufpl 256 517 0 0 32 0 32 32 0 8 0 bufpl 280 4107 0 135 284 0 284 284 0 8 0 anonpl 16 73077 0 60853 85 19 66 77 0 124 2 amapchunkpl 152 3458 0 3325 12 5 7 11 0 158 0 amappl16 192 2986 0 2144 62 18 44 53 0 8 0 amappl15 184 12 0 10 1 0 1 1 0 8 0 amappl14 176 25 0 19 1 0 1 1 0 8 0 amappl13 168 51 0 47 1 0 1 1 0 8 0 amappl12 160 10 0 8 2 1 1 1 0 8 0 amappl11 152 55 0 40 1 0 1 1 0 8 0 amappl10 144 385 0 376 1 0 1 1 0 8 0 amappl9 136 391 0 389 1 0 1 1 0 8 0 amappl8 128 376 0 343 2 0 2 2 0 8 0 amappl7 120 480 0 466 1 0 1 1 0 8 0 amappl6 112 28 0 23 1 0 1 1 0 8 0 amappl5 104 502 0 487 1 0 1 1 0 8 0 amappl4 96 506 0 476 1 0 1 1 0 8 0 amappl3 88 116 0 111 1 0 1 1 0 8 0 amappl2 80 3896 0 3835 2 0 2 2 0 8 0 amappl1 72 23022 0 22598 24 14 10 18 0 8 0 amappl 80 1703 0 1660 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 15 0 2 1 0 1 1 0 8 0 uaddrrnd 24 615 0 599 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 615 0 599 1 0 1 1 0 8 0 vmmpekpl 168 8831 0 8797 2 0 2 2 0 8 0 vmmpepl 168 81209 0 79317 147 28 119 119 0 357 30 vmsppl 368 614 0 599 2 0 2 2 0 8 0 pdppl 4096 1237 0 1199 6 0 6 6 0 8 0 pvpl 32 225259 0 210478 190 18 172 185 0 265 23 pmappl 232 614 0 599 4 2 2 2 0 8 1 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 286 0 10 8 0 8 8 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff8277eff0) 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 end of kernel end trace frame: 0xc0007d8c80, count: 12 ddb{0}> trace x86_ipi_db(ffffffff8277eff0) 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 end of kernel end trace frame: 0xc0007d8c80, count: -3 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(ffffffff823fa9a0) at panic+0x15c sys/kern/subr_prf.c:207 witness_checkorder(ffffffff828c2ab0,9,0) at witness_checkorder+0x10e0 sys/kern/subr_witness.c:821 __mp_lock(ffffffff828c28a8) at __mp_lock+0xa1 read_rflags machine/cpufunc.h:195 [inline] __mp_lock(ffffffff828c28a8) at __mp_lock+0xa1 intr_disable machine/cpufunc.h:216 [inline] __mp_lock(ffffffff828c28a8) at __mp_lock+0xa1 sys/kern/kern_lock.c:142 pageflttrap(ffff800020db2d70,0) at pageflttrap+0x7f sys/arch/amd64/amd64/trap.c:180 kerntrap(ffff800020db2d70) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:302 alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b pool_cache_gc(ffffffff828939b8) at pool_cache_gc+0x138 pool_cache_list_put sys/kern/subr_pool.c:1970 [inline] pool_cache_gc(ffffffff828939b8) 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(ffffffff82724c30) 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(ffffffff823fa9a0) at panic+0x15c sys/kern/subr_prf.c:207 witness_checkorder(ffffffff828c2ab0,9,0) at witness_checkorder+0x10e0 sys/kern/subr_witness.c:821 __mp_lock(ffffffff828c28a8) at __mp_lock+0xa1 read_rflags machine/cpufunc.h:195 [inline] __mp_lock(ffffffff828c28a8) at __mp_lock+0xa1 intr_disable machine/cpufunc.h:216 [inline] __mp_lock(ffffffff828c28a8) at __mp_lock+0xa1 sys/kern/kern_lock.c:142 pageflttrap(ffff800020db2d70,0) at pageflttrap+0x7f sys/arch/amd64/amd64/trap.c:180 kerntrap(ffff800020db2d70) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:302 alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b pool_cache_gc(ffffffff828939b8) at pool_cache_gc+0x138 pool_cache_list_put sys/kern/subr_pool.c:1970 [inline] pool_cache_gc(ffffffff828939b8) 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(ffffffff82724c30) at taskq_thread+0xec sys/kern/kern_task.c:437 end trace frame: 0x0, count: -10