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 * 70441 39626 0 0x14000 0x200 0 systqmp db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff824200c2) at panic+0x164 sys/kern/subr_prf.c:218 witness_checkorder(ffffffff8293cf68,9,0) at witness_checkorder+0x10e0 sys/kern/subr_witness.c:821 __mp_lock(ffffffff8293cd60) at __mp_lock+0xa1 read_rflags machine/cpufunc.h:195 [inline] __mp_lock(ffffffff8293cd60) at __mp_lock+0xa1 intr_disable machine/cpufunc.h:216 [inline] __mp_lock(ffffffff8293cd60) at __mp_lock+0xa1 sys/kern/kern_lock.c:142 pageflttrap(ffff800020da3a50,0) at pageflttrap+0x7f sys/arch/amd64/amd64/trap.c:180 kerntrap(ffff800020da3a50) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:302 alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b pool_cache_gc(ffffffff828d47c8) at pool_cache_gc+0x138 pool_cache_list_put sys/kern/subr_pool.c:1970 [inline] pool_cache_gc(ffffffff828d47c8) 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(ffffffff82758350) at taskq_thread+0xfa sys/kern/kern_task.c:449 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(ffffffff824200c2) at panic+0x164 sys/kern/subr_prf.c:218 witness_checkorder(ffffffff8293cf68,9,0) at witness_checkorder+0x10e0 sys/kern/subr_witness.c:821 __mp_lock(ffffffff8293cd60) at __mp_lock+0xa1 read_rflags machine/cpufunc.h:195 [inline] __mp_lock(ffffffff8293cd60) at __mp_lock+0xa1 intr_disable machine/cpufunc.h:216 [inline] __mp_lock(ffffffff8293cd60) at __mp_lock+0xa1 sys/kern/kern_lock.c:142 pageflttrap(ffff800020da3a50,0) at pageflttrap+0x7f sys/arch/amd64/amd64/trap.c:180 kerntrap(ffff800020da3a50) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:302 alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b pool_cache_gc(ffffffff828d47c8) at pool_cache_gc+0x138 pool_cache_list_put sys/kern/subr_pool.c:1970 [inline] pool_cache_gc(ffffffff828d47c8) 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(ffffffff82758350) at taskq_thread+0xfa sys/kern/kern_task.c:449 end trace frame: 0x0, count: -10 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020da37c0 rbx 0xffff800020da3870 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffff800020da3780 r9 0xffffffff8167b47f kprintf+0x16f r10 0x1 r11 0xdf8c104addeb040d r12 0x3000000008 r13 0xffff800020da37d0 r14 0x100 r15 0x1 rip 0xffffffff8215e708 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020da37b0 ss 0 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (systqmp) pid=70441 stat=onproc flags process=14000 proc=200 pri=32, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020d88000,0xffff800020d88778 process=0xffff800020d8a7e0 user=0xffff800020d9e000, vmspace=0xffffffff828d4108 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 84530 86607 49061 0 3 0x82 piperd syz-executor.1 24691 303082 49061 0 3 0x82 nanosleep syz-executor.0 93461 438927 0 0 3 0x14280 nfsidl nfsio 92708 196275 0 0 3 0x14280 nfsidl nfsio 24772 489499 0 0 3 0x14280 nfsidl nfsio 88669 386786 0 0 3 0x14280 nfsidl nfsio 21781 211998 0 0 3 0x14280 nfsidl nfsio 31747 141153 0 0 3 0x14280 nfsidl nfsio 86081 5164 0 0 3 0x14280 nfsidl nfsio 49413 364590 0 0 3 0x14280 nfsidl nfsio 14338 256009 0 0 3 0x14280 nfsidl nfsio 62661 240963 0 0 3 0x14280 nfsidl nfsio 12891 144918 0 0 3 0x14280 nfsidl nfsio 626 338625 0 0 3 0x14280 nfsidl nfsio 50873 375653 0 0 3 0x14280 nfsidl nfsio 20041 208633 0 0 3 0x14280 nfsidl nfsio 82041 405630 0 0 3 0x14280 nfsidl nfsio 93179 372190 0 0 3 0x14280 nfsidl nfsio 21568 105314 0 0 3 0x14280 nfsidl nfsio 25809 110241 0 0 3 0x14280 nfsidl nfsio 80624 110187 0 0 3 0x14280 nfsidl nfsio 64877 263849 0 0 3 0x14280 nfsidl nfsio 72737 171857 0 0 3 0x14200 bored sosplice 49061 255308 2580 0 3 0x82 thrsleep syz-fuzzer 49061 212368 2580 0 2 0x4000482 syz-fuzzer 49061 158464 2580 0 3 0x4000082 thrsleep syz-fuzzer 49061 352752 2580 0 3 0x4000082 thrsleep syz-fuzzer 49061 444140 2580 0 3 0x4000082 thrsleep syz-fuzzer 49061 423418 2580 0 3 0x4000082 kqread syz-fuzzer 49061 386586 2580 0 3 0x4000082 thrsleep syz-fuzzer 49061 229005 2580 0 2 0x4000002 syz-fuzzer 2580 419802 59049 0 3 0x10008a pause ksh 59049 470805 68743 0 3 0x92 select sshd 30822 418783 1 0 3 0x100083 ttyin getty 68743 288781 1 0 3 0x80 select sshd 93600 111772 38191 74 3 0x100092 bpf pflogd 38191 403195 1 0 3 0x80 netio pflogd 46538 186385 21536 73 3 0x100090 kqread syslogd 21536 494886 1 0 3 0x100082 netio syslogd 11148 399009 1 77 3 0x100090 poll dhclient 10958 24938 1 0 3 0x80 poll dhclient 50456 348289 0 0 3 0x14200 bored smr 65219 442464 0 0 2 0x14200 zerothread 10539 338559 0 0 3 0x14200 aiodoned aiodoned 45230 53871 0 0 3 0x14200 syncer update 161 239750 0 0 3 0x14200 cleaner cleaner 18359 43494 0 0 3 0x14200 reaper reaper 75672 108254 0 0 3 0x14200 pgdaemon pagedaemon 54087 209639 0 0 3 0x14200 bored crynlk 68431 470156 0 0 3 0x14200 bored crypto 46051 402318 0 0 3 0x40014200 acpi0 acpi0 98207 383770 0 0 7 0x40014200 idle1 34137 25442 0 0 3 0x14200 bored softnet *39626 70441 0 0 7 0x14200 systqmp 43498 113528 0 0 3 0x14200 bored systq 87692 515994 0 0 3 0x40014200 bored softclock 67268 289627 0 0 3 0x40014200 idle0 1 143398 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 (0xffffffff828d47d8) #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+0xfa sys/kern/kern_task.c:449 #6 proc_trampoline+0x1c Process 39626 (systqmp) thread 0xffff800020d884f0 (70441) shared rwlock pools r = 0 (0xffffffff827663a0) #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+0xfa sys/kern/kern_task.c:449 #3 proc_trampoline+0x1c shared rwlock systqmp r = 0 (0xffffffff827583c0) #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:445 #2 proc_trampoline+0x1c exclusive mutex mbufpl r = 0 (0xffffffff828d47d8) #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+0xfa sys/kern/kern_task.c:449 #6 proc_trampoline+0x1c ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9526 6433K 6796K 78643K 12299 0 pcb 13 8K 8K 78643K 187 0 rtable 102 4K 8K 78643K 923 0 ifaddr 87 17K 19K 78643K 275 0 sysctl 2 0K 0K 78643K 2 0 counters 43 33K 34K 78643K 85 0 ioctlops 0 0K 4K 78643K 2297 0 iov 0 0K 16K 78643K 105 0 mount 1 1K 1K 78643K 1 0 vnodes 1221 77K 77K 78643K 1894 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 32 0 VM map 2 1K 1K 78643K 2 0 sem 12 1K 2K 78643K 28 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 1688 0 sigio 0 0K 0K 78643K 13 0 proc 69 63K 95K 78643K 734 0 subproc 32 2K 2K 78643K 119 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 161 0 in_multi 70 3K 3K 78643K 256 0 ether_multi 1 0K 0K 78643K 34 0 mrt 0 0K 0K 78643K 16 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 61 281K 281K 78643K 61 0 exec 0 0K 1K 78643K 363 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 210 159K 160K 78643K 6308 0 UVM aobj 69 7K 7K 78643K 85 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 160 0 NDP 13 0K 0K 78643K 53 0 temp 136 3874K 3940K 78643K 7864 0 kqueue 3 4K 12K 78643K 47 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 25 0 18 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 88 88 0 86 1 0 1 1 0 8 0 rtentry 112 148 0 110 2 0 2 2 0 8 0 unpcb 120 960 0 950 1 0 1 1 0 8 0 syncache 272 21 0 21 10 9 1 1 0 8 1 tcpqe 32 260 0 260 5 5 0 1 0 8 0 tcpcb 592 798 0 794 20 19 1 2 0 8 0 inpcb 296 1891 0 1882 23 21 2 2 0 8 1 rttmr 72 5 0 5 5 5 0 1 0 8 0 nd6 48 35 0 28 1 0 1 1 0 8 0 pkpcb 40 12 0 12 6 6 0 1 0 8 0 ppxss 1136 3 0 3 3 3 0 1 0 8 0 pfstscr 40 5 0 5 1 1 0 1 0 8 0 pffrag 232 14 0 13 7 6 1 1 0 482 0 pffrnode 88 14 0 13 7 6 1 1 0 8 0 pffrent 40 73 0 72 7 6 1 1 0 8 0 pfosfp 40 847 0 423 5 0 5 5 0 8 0 pfosfpen 112 1429 0 714 21 0 21 21 0 8 0 pfrktable 1344 104 0 103 11 10 1 1 0 8 0 pftag 88 6 0 5 3 2 1 1 0 8 0 pfstitem 24 21 0 19 1 0 1 1 0 8 0 pfstkey 112 23 0 21 1 0 1 1 0 8 0 pfstate 328 20 0 18 2 1 1 2 0 8 0 pfrule 1360 72 0 66 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 611 0 393 22 8 14 14 0 8 0 art_table 32 612 0 393 2 0 2 2 0 8 0 art_node 16 147 0 115 1 0 1 1 0 8 0 sysvmsgpl 40 26 0 18 1 0 1 1 0 8 0 semupl 112 5 0 5 1 1 0 1 0 8 0 semapl 112 12 0 2 1 0 1 1 0 8 0 shmpl 112 82 0 17 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 3427 0 2027 90 1 89 89 0 8 0 ffsino 272 3427 0 2027 95 1 94 95 0 8 0 nchpl 144 6068 0 4474 60 0 60 60 0 8 0 uvmvnodes 72 3964 0 0 73 0 73 73 0 8 0 vnodes 208 3964 0 0 209 0 209 209 0 8 0 namei 1024 21172 0 21172 6 5 1 1 0 8 1 percpumem 16 53 0 21 1 0 1 1 0 8 0 vcpupl 1984 18 0 0 3 0 3 3 0 8 0 vmpool 560 25 0 7 3 1 2 2 0 8 0 pfiaddrpl 120 37 0 37 12 11 1 1 0 8 1 scxspl 200 16706 0 16706 17 16 1 7 0 8 1 plimitpl 152 107 0 99 1 0 1 1 0 8 0 sigapl 424 1909 0 1857 7 1 6 7 0 8 0 futexpl 56 24786 0 24786 6 5 1 1 0 8 1 knotepl 112 171 0 151 1 0 1 1 0 8 0 kqueuepl 152 161 0 157 1 0 1 1 0 8 0 pipepl 304 718 0 707 24 22 2 3 0 8 1 fdescpl 496 1873 0 1857 3 0 3 3 0 8 0 filepl 152 13765 0 13660 9 4 5 7 0 8 0 lockfpl 104 238 0 237 1 0 1 1 0 8 0 lockfspl 48 84 0 83 1 0 1 1 0 8 0 sessionpl 120 23 0 12 1 0 1 1 0 8 0 pgrppl 48 37 0 26 1 0 1 1 0 8 0 ucredpl 96 4046 0 4036 1 0 1 1 0 8 0 zombiepl 144 1858 0 1857 1 0 1 1 0 8 0 processpl 1008 1909 0 1857 7 0 7 7 0 8 0 procpl 632 5179 0 5120 6 0 6 6 0 8 0 srpgc 72 4 0 4 2 2 0 1 0 8 0 sosppl 144 15 0 15 5 5 0 1 0 8 0 sockpl 400 2956 0 2935 20 17 3 5 0 8 0 mcl64k 65536 16 0 0 2 0 2 2 0 8 0 mcl16k 16384 6 0 0 1 0 1 1 0 8 0 mcl12k 12288 12 0 0 2 0 2 2 0 8 0 mcl9k 9216 11 0 0 1 0 1 1 0 8 0 mcl8k 8192 16 0 0 2 0 2 2 0 8 0 mcl4k 4096 23 0 0 3 1 2 3 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 258 0 0 27 2 25 27 0 8 0 mtagpl 96 59 0 0 2 0 2 2 0 8 0 mbufpl 256 578 0 0 17 0 17 17 0 8 0 bufpl 280 5993 0 141 418 0 418 418 0 8 0 anonpl 16 227230 0 208444 162 78 84 94 0 124 0 amapchunkpl 152 12716 0 12409 65 48 17 20 0 158 3 amappl16 192 8159 0 7180 95 46 49 58 0 8 0 amappl15 184 52 0 50 1 0 1 1 0 8 0 amappl14 176 713 0 710 1 0 1 1 0 8 0 amappl13 168 63 0 60 1 0 1 1 0 8 0 amappl12 160 29 0 24 1 0 1 1 0 8 0 amappl11 152 1417 0 1399 1 0 1 1 0 8 0 amappl10 144 68 0 64 1 0 1 1 0 8 0 amappl9 136 368 0 366 1 0 1 1 0 8 0 amappl8 128 492 0 437 2 0 2 2 0 8 0 amappl7 120 156 0 143 1 0 1 1 0 8 0 amappl6 112 991 0 984 1 0 1 1 0 8 0 amappl5 104 1118 0 1101 1 0 1 1 0 8 0 amappl4 96 1281 0 1247 1 0 1 1 0 8 0 amappl3 88 581 0 572 1 0 1 1 0 8 0 amappl2 80 13797 0 13725 2 0 2 2 0 8 0 amappl1 72 64643 0 64196 23 13 10 18 0 8 0 amappl 80 5575 0 5480 3 0 3 3 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 84 0 16 2 0 2 2 0 8 0 uaddrrnd 24 1898 0 1864 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1898 0 1864 1 0 1 1 0 8 0 vmmpekpl 168 18139 0 18087 3 0 3 3 0 8 0 vmmpepl 168 247709 0 245455 309 207 102 140 0 357 0 vmsppl 368 1897 0 1864 8 4 4 4 0 8 0 pdppl 4096 3803 0 3746 11 3 8 8 0 8 0 pvpl 32 622562 0 600454 391 192 199 219 0 265 5 pmappl 232 1897 0 1864 6 4 2 3 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 322 0 54 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(ffffffff824200c2) at panic+0x164 sys/kern/subr_prf.c:218 witness_checkorder(ffffffff8293cf68,9,0) at witness_checkorder+0x10e0 sys/kern/subr_witness.c:821 __mp_lock(ffffffff8293cd60) at __mp_lock+0xa1 read_rflags machine/cpufunc.h:195 [inline] __mp_lock(ffffffff8293cd60) at __mp_lock+0xa1 intr_disable machine/cpufunc.h:216 [inline] __mp_lock(ffffffff8293cd60) at __mp_lock+0xa1 sys/kern/kern_lock.c:142 pageflttrap(ffff800020da3a50,0) at pageflttrap+0x7f sys/arch/amd64/amd64/trap.c:180 kerntrap(ffff800020da3a50) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:302 alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b pool_cache_gc(ffffffff828d47c8) at pool_cache_gc+0x138 pool_cache_list_put sys/kern/subr_pool.c:1970 [inline] pool_cache_gc(ffffffff828d47c8) 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(ffffffff82758350) at taskq_thread+0xfa sys/kern/kern_task.c:449 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