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 *271133 48382 0 0x14000 0x200 0 systqmp db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff82416691) at panic+0x15c sys/kern/subr_prf.c:207 witness_checkorder(ffffffff829156c0,9,0) at witness_checkorder+0x10e0 sys/kern/subr_witness.c:821 __mp_lock(ffffffff829154b8) at __mp_lock+0xa1 read_rflags machine/cpufunc.h:195 [inline] __mp_lock(ffffffff829154b8) at __mp_lock+0xa1 intr_disable machine/cpufunc.h:216 [inline] __mp_lock(ffffffff829154b8) at __mp_lock+0xa1 sys/kern/kern_lock.c:142 pageflttrap(ffff800020da30b0,0) at pageflttrap+0x7f sys/arch/amd64/amd64/trap.c:180 kerntrap(ffff800020da30b0) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:302 alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b pool_cache_gc(ffffffff828b7640) at pool_cache_gc+0x138 pool_cache_list_put sys/kern/subr_pool.c:1970 [inline] pool_cache_gc(ffffffff828b7640) 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(ffffffff827ac090) 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(ffffffff82416691) at panic+0x15c sys/kern/subr_prf.c:207 witness_checkorder(ffffffff829156c0,9,0) at witness_checkorder+0x10e0 sys/kern/subr_witness.c:821 __mp_lock(ffffffff829154b8) at __mp_lock+0xa1 read_rflags machine/cpufunc.h:195 [inline] __mp_lock(ffffffff829154b8) at __mp_lock+0xa1 intr_disable machine/cpufunc.h:216 [inline] __mp_lock(ffffffff829154b8) at __mp_lock+0xa1 sys/kern/kern_lock.c:142 pageflttrap(ffff800020da30b0,0) at pageflttrap+0x7f sys/arch/amd64/amd64/trap.c:180 kerntrap(ffff800020da30b0) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:302 alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b pool_cache_gc(ffffffff828b7640) at pool_cache_gc+0x138 pool_cache_list_put sys/kern/subr_pool.c:1970 [inline] pool_cache_gc(ffffffff828b7640) 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(ffffffff827ac090) 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 0xffff800020da2e20 rbx 0xffff800020da2ed0 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff81cf234f kprintf+0x16f r9 0x1 r10 0x2 r11 0xd935410ddd0b87a1 r12 0x3000000008 r13 0xffff800020da2e30 r14 0x100 r15 0x1 rip 0xffffffff81df9468 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020da2e10 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (systqmp) pid=271133 stat=onproc flags process=14000 proc=200 pri=32, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020d89380,0xffff800020d88c40 process=0xffff800020d8a000 user=0xffff800020d9e000, vmspace=0xffffffff828dbec0 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 86018 279665 0 0 3 0x14280 nfsidl nfsio 86863 251065 0 0 3 0x14280 nfsidl nfsio 69319 285700 0 0 3 0x14280 nfsidl nfsio 86015 372081 0 0 3 0x14280 nfsidl nfsio 54248 367330 0 0 3 0x14280 nfsidl nfsio 79098 89372 0 0 3 0x14280 nfsidl nfsio 90747 303105 0 0 3 0x14280 nfsidl nfsio 7836 201727 0 0 3 0x14280 nfsidl nfsio 45399 59854 0 0 3 0x14280 nfsidl nfsio 1000 454810 0 0 3 0x14280 nfsidl nfsio 17658 441152 0 0 3 0x14280 nfsidl nfsio 34408 366072 0 0 3 0x14280 nfsidl nfsio 86235 509132 0 0 3 0x14280 nfsidl nfsio 88869 502136 0 0 3 0x14280 nfsidl nfsio 24191 146174 0 0 3 0x14280 nfsidl nfsio 99434 295603 0 0 3 0x14280 nfsidl nfsio 50213 206070 0 0 3 0x14280 nfsidl nfsio 15375 186125 0 0 3 0x14280 nfsidl nfsio 80840 226085 0 0 3 0x14280 nfsidl nfsio 69057 429239 0 0 3 0x14280 nfsidl nfsio 58279 305696 0 0 3 0x14200 bored sosplice 6252 22677 14308 0 3 0x82 nanosleep syz-executor.1 82779 312141 14308 0 3 0x82 piperd syz-executor.0 14308 522963 34181 0 3 0x82 thrsleep syz-fuzzer 14308 399795 34181 0 3 0x4000082 thrsleep syz-fuzzer 14308 139212 34181 0 3 0x4000082 thrsleep syz-fuzzer 14308 42295 34181 0 3 0x4000082 thrsleep syz-fuzzer 14308 253008 34181 0 3 0x4000082 thrsleep syz-fuzzer 14308 137571 34181 0 3 0x4000082 thrsleep syz-fuzzer 14308 53228 34181 0 3 0x4000082 thrsleep syz-fuzzer 14308 514619 34181 0 3 0x4000082 kqread syz-fuzzer 14308 356493 34181 0 3 0x4000082 thrsleep syz-fuzzer 14308 26915 34181 0 3 0x4000082 thrsleep syz-fuzzer 34181 434798 23139 0 3 0x10008a pause ksh 23139 346528 10602 0 3 0x92 select sshd 79896 393839 1 0 3 0x100083 ttyin getty 10602 39144 1 0 3 0x80 select sshd 32386 142703 38305 74 3 0x100092 bpf pflogd 38305 420809 1 0 3 0x80 netio pflogd 73862 70111 81319 73 3 0x100090 kqread syslogd 81319 252301 1 0 3 0x100082 netio syslogd 7701 117163 1 77 3 0x100090 poll dhclient 59861 404471 1 0 3 0x80 poll dhclient 43484 281736 0 0 3 0x14200 bored smr 64916 53926 0 0 3 0x14200 pgzero zerothread 93557 392576 0 0 3 0x14200 aiodoned aiodoned 21119 507075 0 0 3 0x14200 syncer update 95793 169194 0 0 3 0x14200 cleaner cleaner 19576 471658 0 0 3 0x14200 reaper reaper 25742 119734 0 0 3 0x14200 pgdaemon pagedaemon 11467 140561 0 0 3 0x14200 bored crynlk 11517 127059 0 0 3 0x14200 bored crypto 35856 486690 0 0 3 0x40014200 acpi0 acpi0 42685 222416 0 0 7 0x40014200 idle1 99170 119689 0 0 3 0x14200 bored softnet *48382 271133 0 0 7 0x14200 systqmp 72169 14751 0 0 3 0x14200 bored systq 72337 189909 0 0 3 0x40014200 bored softclock 54312 144932 0 0 3 0x40014200 idle0 1 245880 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 (0xffffffff828b7650) #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 48382 (systqmp) thread 0xffff800020d88ea0 (271133) shared rwlock pools r = 0 (0xffffffff827534c0) #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 (0xffffffff827ac100) #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 (0xffffffff828b7650) #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 9506 6418K 6734K 78643K 11011 0 pcb 13 8K 8K 78643K 79 0 rtable 113 5K 7K 78643K 357 0 ifaddr 68 14K 14K 78643K 113 0 counters 43 33K 34K 78643K 51 0 ioctlops 0 0K 4K 78643K 1515 0 iov 0 0K 16K 78643K 35 0 mount 1 1K 1K 78643K 1 0 vnodes 1216 76K 77K 78643K 1364 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 5 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 54 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 290 0 sigio 0 0K 0K 78643K 2 0 proc 61 63K 83K 78643K 470 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 24 0 in_multi 46 2K 2K 78643K 118 0 ether_multi 1 0K 0K 78643K 7 0 mrt 0 0K 0K 78643K 6 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 49 228K 228K 78643K 49 0 exec 0 0K 1K 78643K 229 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 139 72K 88K 78643K 1918 0 UVM aobj 9 2K 2K 78643K 13 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 30 0 NDP 10 0K 0K 78643K 26 0 temp 100 3862K 3926K 78643K 9526 0 kqueue 3 4K 8K 78643K 18 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 10 0 3 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 29 0 27 1 0 1 1 0 8 0 rtentry 112 74 0 31 2 0 2 2 0 8 0 unpcb 120 103 0 93 1 0 1 1 0 8 0 syncache 264 6 0 6 3 2 1 1 0 8 1 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 136 0 136 3 2 1 2 0 8 1 tcpcb 544 138 0 133 1 0 1 1 0 8 0 inpcb 296 391 0 383 3 1 2 2 0 8 1 rttmr 72 3 0 3 2 1 1 1 0 8 1 nd6 48 17 0 13 1 0 1 1 0 8 0 ppxss 1128 2 0 2 1 1 0 1 0 8 0 pfstscr 40 2 0 2 1 1 0 1 0 8 0 pffrag 232 4 0 4 2 1 1 1 0 482 1 pffrnode 88 4 0 4 2 1 1 1 0 8 1 pffrent 40 94 0 94 2 1 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 17 0 15 2 1 1 1 0 8 0 pfstitem 24 29 0 4 1 0 1 1 0 8 0 pfstkey 112 32 0 7 1 0 1 1 0 8 0 pfstate 328 31 0 6 3 0 3 3 0 8 0 pfrule 1360 28 0 19 2 1 1 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 251 0 64 13 0 13 13 0 8 0 art_table 32 253 0 64 2 0 2 2 0 8 0 art_node 16 73 0 33 1 0 1 1 0 8 0 sysvmsgpl 40 40 0 23 1 0 1 1 0 8 0 semapl 112 52 0 42 1 0 1 1 0 8 0 shmpl 112 10 0 4 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1900 0 499 89 1 88 89 0 8 0 ffsino 272 1900 0 499 94 0 94 94 0 8 0 nchpl 144 2575 0 964 60 0 60 60 0 8 0 uvmvnodes 72 2043 0 0 38 0 38 38 0 8 0 vnodes 208 2043 0 0 108 0 108 108 0 8 0 namei 1024 7187 0 7187 2 1 1 1 0 8 1 percpumem 16 36 0 4 1 0 1 1 0 8 0 vcpupl 1984 4 0 0 1 0 1 1 0 8 0 vmpool 560 4 0 0 1 0 1 1 0 8 0 pfiaddrpl 120 6 0 4 2 1 1 1 0 8 0 scxspl 192 7471 0 7471 8 7 1 7 0 8 1 plimitpl 152 32 0 24 1 0 1 1 0 8 0 sigapl 424 526 0 474 6 0 6 6 0 8 0 futexpl 56 4591 0 4591 2 1 1 1 0 8 1 knotepl 112 75 0 56 1 0 1 1 0 8 0 kqueuepl 144 33 0 30 1 0 1 1 0 8 0 pipepl 304 125 0 115 2 1 1 2 0 8 0 fdescpl 496 490 0 474 3 0 3 3 0 8 0 filepl 152 3078 0 2972 5 0 5 5 0 8 0 lockfpl 104 94 0 93 1 0 1 1 0 8 0 lockfspl 48 28 0 27 1 0 1 1 0 8 0 sessionpl 112 18 0 7 1 0 1 1 0 8 0 pgrppl 48 47 0 36 1 0 1 1 0 8 0 ucredpl 96 296 0 287 1 0 1 1 0 8 0 zombiepl 144 475 0 474 1 0 1 1 0 8 0 processpl 992 526 0 474 7 0 7 7 0 8 0 procpl 624 1143 0 1082 6 0 6 6 0 8 1 sosppl 128 7 0 7 2 1 1 1 0 8 1 sockpl 400 523 0 503 3 0 3 3 0 8 0 mcl64k 65536 8 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 6 0 0 1 0 1 1 0 8 0 mcl9k 9216 4 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 7 0 0 1 0 1 1 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 237 0 0 29 0 29 29 0 8 0 mtagpl 96 34 0 0 1 0 1 1 0 8 0 mbufpl 256 276 0 0 17 0 17 17 0 8 0 bufpl 280 3956 0 133 274 0 274 274 0 8 0 anonpl 16 57256 0 40326 71 2 69 69 0 124 0 amapchunkpl 152 2959 0 2804 21 1 20 20 0 158 11 amappl16 192 2070 0 1156 47 0 47 47 0 8 1 amappl15 184 134 0 133 2 1 1 1 0 8 0 amappl14 176 31 0 26 1 0 1 1 0 8 0 amappl13 168 29 0 25 1 0 1 1 0 8 0 amappl12 160 10 0 7 2 1 1 1 0 8 0 amappl11 152 60 0 44 1 0 1 1 0 8 0 amappl10 144 159 0 150 1 0 1 1 0 8 0 amappl9 136 511 0 508 1 0 1 1 0 8 0 amappl8 128 484 0 446 2 0 2 2 0 8 0 amappl7 120 117 0 105 1 0 1 1 0 8 0 amappl6 112 25 0 20 2 1 1 1 0 8 0 amappl5 104 387 0 371 1 0 1 1 0 8 0 amappl4 96 489 0 461 1 0 1 1 0 8 0 amappl3 88 117 0 111 1 0 1 1 0 8 0 amappl2 80 3095 0 3023 2 0 2 2 0 8 0 amappl1 72 20288 0 19840 23 13 10 18 0 8 0 amappl 80 1383 0 1332 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 12 0 4 1 0 1 1 0 8 0 uaddrrnd 24 494 0 474 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 494 0 474 1 0 1 1 0 8 0 vmmpekpl 168 7967 0 7928 2 0 2 2 0 8 0 vmmpepl 168 66958 0 64847 125 23 102 118 0 357 4 vmsppl 368 493 0 474 2 0 2 2 0 8 0 pdppl 4096 995 0 952 6 0 6 6 0 8 0 pvpl 32 192755 0 172613 171 3 168 168 0 265 4 pmappl 232 493 0 474 3 1 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 275 0 5 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(ffffffff82416691) at panic+0x15c sys/kern/subr_prf.c:207 witness_checkorder(ffffffff829156c0,9,0) at witness_checkorder+0x10e0 sys/kern/subr_witness.c:821 __mp_lock(ffffffff829154b8) at __mp_lock+0xa1 read_rflags machine/cpufunc.h:195 [inline] __mp_lock(ffffffff829154b8) at __mp_lock+0xa1 intr_disable machine/cpufunc.h:216 [inline] __mp_lock(ffffffff829154b8) at __mp_lock+0xa1 sys/kern/kern_lock.c:142 pageflttrap(ffff800020da30b0,0) at pageflttrap+0x7f sys/arch/amd64/amd64/trap.c:180 kerntrap(ffff800020da30b0) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:302 alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b pool_cache_gc(ffffffff828b7640) at pool_cache_gc+0x138 pool_cache_list_put sys/kern/subr_pool.c:1970 [inline] pool_cache_gc(ffffffff828b7640) 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(ffffffff827ac090) 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