login: 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 266635 39850 0 0 0 1 syz-executor5050 * 89149 39850 0 0 0x4000000 0 syz-executor5050 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 panic(ffffffff82464b8f) at panic+0x177 sys/kern/subr_prf.c:202 witness_checkorder(ffffffff82838c20,9,0) at witness_checkorder+0x11eb sys/kern/subr_witness.c:833 __mp_lock(ffffffff82838a18) at __mp_lock+0xa1 read_rflags machine/cpufunc.h:195 [inline] __mp_lock(ffffffff82838a18) at __mp_lock+0xa1 intr_disable machine/cpufunc.h:216 [inline] __mp_lock(ffffffff82838a18) at __mp_lock+0xa1 sys/kern/kern_lock.c:142 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:90 Xsoftclock() at Xsoftclock+0x1f __sanitizer_cov_trace_const_cmp8(ffffffff829b8b08,9) at __sanitizer_cov_trace_const_cmp8+0x7 sys/dev/kcov.c:228 pool_get(ffffffff829b8b08,9) at pool_get+0xeb sys/kern/subr_pool.c:584 vm_create(ffff800000b29800,ffff800021192fc8) at vm_create+0xad sys/arch/amd64/amd64/vmm.c:1497 vmmioctl(a00,c5005601,ffff800000b29800,1,ffff800021192fc8) at vmmioctl+0x1f2 VOP_IOCTL(fffffd806e197670,c5005601,ffff800000b29800,1,fffffd807f7d8720,ffff800021192fc8) at VOP_IOCTL+0x9a sys/kern/vfs_vops.c:295 vn_ioctl(fffffd806e4a77c8,c5005601,ffff800000b29800,ffff800021192fc8) at vn_ioctl+0xba sys/kern/vfs_vnops.c:531 sys_ioctl(ffff800021192fc8,ffff8000212359f8,ffff800021235a40) at sys_ioctl+0x4a2 syscall(ffff800021235ac0) at syscall+0x5a9 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800021235ac0) at syscall+0x5a9 sys/arch/amd64/amd64/trap.c:587 end trace frame: 0xffff800021235b40, count: 0 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 *cpu0: 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:440 panic(ffffffff82464b8f) at panic+0x177 sys/kern/subr_prf.c:202 witness_checkorder(ffffffff82838c20,9,0) at witness_checkorder+0x11eb sys/kern/subr_witness.c:833 __mp_lock(ffffffff82838a18) at __mp_lock+0xa1 read_rflags machine/cpufunc.h:195 [inline] __mp_lock(ffffffff82838a18) at __mp_lock+0xa1 intr_disable machine/cpufunc.h:216 [inline] __mp_lock(ffffffff82838a18) at __mp_lock+0xa1 sys/kern/kern_lock.c:142 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:90 Xsoftclock() at Xsoftclock+0x1f __sanitizer_cov_trace_const_cmp8(ffffffff829b8b08,9) at __sanitizer_cov_trace_const_cmp8+0x7 sys/dev/kcov.c:228 pool_get(ffffffff829b8b08,9) at pool_get+0xeb sys/kern/subr_pool.c:584 vm_create(ffff800000b29800,ffff800021192fc8) at vm_create+0xad sys/arch/amd64/amd64/vmm.c:1497 vmmioctl(a00,c5005601,ffff800000b29800,1,ffff800021192fc8) at vmmioctl+0x1f2 VOP_IOCTL(fffffd806e197670,c5005601,ffff800000b29800,1,fffffd807f7d8720,ffff800021192fc8) at VOP_IOCTL+0x9a sys/kern/vfs_vops.c:295 vn_ioctl(fffffd806e4a77c8,c5005601,ffff800000b29800,ffff800021192fc8) at vn_ioctl+0xba sys/kern/vfs_vnops.c:531 sys_ioctl(ffff800021192fc8,ffff8000212359f8,ffff800021235a40) at sys_ioctl+0x4a2 syscall(ffff800021235ac0) at syscall+0x5a9 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800021235ac0) at syscall+0x5a9 sys/arch/amd64/amd64/trap.c:587 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa75d50189a0, count: -15 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800021235230 rbx 0xffffffff8280abff cpu_info_full_primary+0x2bff rdx 0x8b rcx 0x2 rax 0x68 r8 0xffffffff81a0be34 kprintf+0x144 r9 0x1 r10 0xc33b940403672b8b r11 0x22e1b71239a9e474 r12 0xffffffff8280aa00 cpu_info_full_primary+0x2a00 r13 0 r14 0 r15 0x1 rip 0xffffffff81e3e908 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021235220 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor5050) pid=89149 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800021192d28,0xffffffff82913618 process=0xffff80002120ae20 user=0xffff800021230000, vmspace=0xfffffd8065fffe90 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 39850 266635 42555 0 7 0 syz-executor5050 *39850 89149 42555 0 7 0x4000000 syz-executor5050 42555 32871 92999 0 3 0x82 nanoslp syz-executor5050 92999 392345 19986 0 3 0x10008a sigsusp ksh 19986 289283 48897 0 3 0x9a select sshd 80102 81762 1 0 3 0x100083 ttyin getty 48897 265749 1 0 3 0x88 select sshd 92688 166395 53992 74 3 0x100092 bpf pflogd 53992 219136 1 0 3 0x80 netio pflogd 47203 233024 54541 73 3 0x100090 kqread syslogd 54541 256992 1 0 3 0x100082 netio syslogd 50083 195377 1 0 3 0x100080 kqread resolvd 17013 462375 75761 77 3 0x100092 kqread dhcpleased 7282 221500 75761 77 3 0x100092 kqread dhcpleased 75761 209695 1 0 3 0x80 kqread dhcpleased 7216 218532 0 0 3 0x14200 bored smr 89089 199652 0 0 2 0x14200 zerothread 65248 261959 0 0 3 0x14200 aiodoned aiodoned 80774 220151 0 0 3 0x14200 syncer update 78605 193058 0 0 3 0x14200 cleaner cleaner 12458 275374 0 0 3 0x14200 reaper reaper 52042 477488 0 0 3 0x14200 pgdaemon pagedaemon 23921 53965 0 0 3 0x14200 bored crynlk 31810 449133 0 0 3 0x14200 bored crypto 3807 89781 0 0 3 0x14200 bored viomb 81679 346534 0 0 3 0x40014200 acpi0 acpi0 14501 133776 0 0 3 0x40014200 idle1 57905 109811 0 0 3 0x14200 bored softnet 43151 120567 0 0 3 0x14200 bored systqmp 25719 466433 0 0 3 0x14200 bored systq 73556 233598 0 0 3 0x40014200 bored softclock 98602 12957 0 0 3 0x40014200 idle0 1 241889 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks CPU 0: exclusive mutex vmpool r = 0 (0xffffffff829b8b18) #0 witness_lock+0x4b0 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4b0 sys/kern/subr_witness.c:1182 #1 mtx_enter_try+0x100 #2 mtx_enter+0x4b sys/kern/kern_lock.c:266 #3 pool_do_get+0x125 sys/kern/subr_pool.c:712 #4 pool_get+0xeb sys/kern/subr_pool.c:584 #5 vm_create+0xad sys/arch/amd64/amd64/vmm.c:1497 #6 vmmioctl+0x1f2 #7 VOP_IOCTL+0x9a sys/kern/vfs_vops.c:295 #8 vn_ioctl+0xba sys/kern/vfs_vnops.c:531 #9 sys_ioctl+0x4a2 #10 syscall+0x5a9 mi_syscall sys/sys/syscall_mi.h:102 [inline] #10 syscall+0x5a9 sys/arch/amd64/amd64/trap.c:587 #11 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10111 6416K 6417K 78643K 11201 0 pcb 13 8K 8K 78643K 13 0 rtable 62 2K 2K 78643K 112 0 ifaddr 29 8K 8K 78643K 30 0 counters 40 33K 33K 78643K 40 0 ioctlops 1 2K 4K 78643K 4462 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 6 0 vnodes 1183 74K 75K 78643K 1188 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 1K 78643K 2 0 VM map 2 1K 1K 78643K 2 0 sem 2 0K 0K 78643K 2 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12598 0 file desc 1 0K 0K 78643K 1 0 proc 67 87K 87K 78643K 278 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 in_multi 11 0K 0K 78643K 11 0 ether_multi 1 0K 0K 78643K 1 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 19 95K 95K 78643K 19 0 exec 0 0K 2K 78643K 348 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 6062 48461K 48461K 78643K 40093 0 UVM aobj 3 2K 2K 78643K 3 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 NDP 4 0K 0K 78643K 4 0 temp 23 4193K 4257K 78643K 7928 0 kqueue 9 12K 12K 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 plcache 128 22 0 0 1 0 1 1 0 8 0 rtpcb 120 17 0 14 1 0 1 1 0 8 0 rtentry 112 23 0 1 1 0 1 1 0 8 0 unpcb 120 35 0 20 1 0 1 1 0 8 0 syncache 296 5 0 5 2 2 0 1 0 8 0 tcpcb 736 8 0 5 1 0 1 1 0 8 0 arp 120 2 0 0 1 0 1 1 0 8 0 inpcb 304 32 0 26 1 0 1 1 0 8 0 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 9 0 7 2 1 1 1 0 8 0 pfstkey 112 9 0 7 2 1 1 1 0 8 0 pfstate 320 9 0 7 2 1 1 1 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 96 0 0 6 0 6 6 0 8 0 art_table 32 97 0 0 1 0 1 1 0 8 0 art_node 16 22 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 4397 0 3005 88 0 88 88 0 8 1 ffsino 272 4397 0 3005 93 0 93 93 0 8 0 nchpl 144 7555 0 6005 58 0 58 58 0 8 0 uvmvnodes 72 4407 0 0 81 0 81 81 0 8 0 vnodes 224 4407 0 0 260 0 260 260 0 8 0 namei 1024 19062 0 19062 2 1 1 1 0 8 1 percpumem 16 32 0 0 1 0 1 1 0 8 0 vcpupl 2048 2982 0 0 373 0 373 373 0 8 0 vmpool 560 2982 0 0 214 0 214 214 0 8 1 scxspl 216 21629 0 21629 17 16 1 8 0 8 1 plimitpl 152 16 0 9 1 0 1 1 0 8 0 sigapl 424 3238 0 3206 4 0 4 4 0 8 0 futexpl 56 2991 0 2991 1 0 1 1 0 8 1 knotepl 112 25 0 0 1 0 1 1 0 8 0 kqueuepl 216 5 0 0 1 0 1 1 0 8 0 pipepl 336 69 0 66 2 1 1 1 0 8 0 fdescpl 496 3222 0 3206 3 0 3 3 0 8 0 filepl 152 7049 0 6990 3 0 3 3 0 8 0 lockfpl 104 6 0 4 1 0 1 1 0 8 0 lockfspl 48 4 0 2 1 0 1 1 0 8 0 sessionpl 144 18 0 9 1 0 1 1 0 8 0 pgrppl 48 18 0 9 1 0 1 1 0 8 0 ucredpl 96 69 0 57 1 0 1 1 0 8 0 zombiepl 144 3206 0 3206 2 1 1 1 0 8 1 processpl 1072 3238 0 3206 3 0 3 3 0 8 0 procpl 672 6221 0 6188 3 0 3 3 0 8 0 sockpl 480 84 0 60 5 1 4 4 0 8 0 mcl8k 8192 8 0 0 1 0 1 1 0 8 0 mcl4k 4096 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 65 0 0 8 0 8 8 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 119 0 0 7 0 7 7 0 8 0 bufpl 280 5010 0 93 352 0 352 352 0 8 0 anonpl 24 572207 0 566624 37 3 34 34 0 186 0 amapchunkpl 152 75918 0 75741 9 2 7 8 0 158 0 amappl16 200 3078 0 91 158 0 158 158 0 8 0 amappl13 176 18 0 17 2 1 1 1 0 8 0 amappl12 168 15 0 15 2 2 0 1 0 8 0 amappl11 160 63 0 49 1 0 1 1 0 8 0 amappl10 152 25 0 20 1 0 1 1 0 8 0 amappl9 144 234 0 231 1 0 1 1 0 8 0 amappl8 136 277 0 275 1 0 1 1 0 8 0 amappl7 128 52 0 45 1 0 1 1 0 8 0 amappl6 120 87 0 82 1 0 1 1 0 8 0 amappl5 112 170 0 154 1 0 1 1 0 8 0 amappl4 104 3508 0 3487 1 0 1 1 0 8 0 amappl3 96 3030 0 3026 1 0 1 1 0 8 0 amappl2 88 399 0 354 3 1 2 2 0 8 0 amappl1 80 45889 0 45496 11 2 9 9 0 8 0 amappl 88 36865 0 33804 69 0 69 69 0 92 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 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 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 6204 0 3206 19 0 19 19 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 6204 0 3206 19 0 19 19 0 8 0 vmmpekpl 168 18507 0 18488 1 0 1 1 0 8 0 vmmpepl 168 218513 0 211629 304 4 300 300 0 357 0 vmsppl 368 6203 0 3206 273 0 273 273 0 8 0 rwobjpl 56 53450 0 46911 95 2 93 93 0 8 0 pdppl 4096 12416 0 9394 3041 18 3023 3023 0 8 1 pvpl 32 933484 0 928875 44 6 38 38 0 265 0 pmappl 224 6203 0 3206 177 0 177 177 0 8 0 extentpl 40 58 0 40 1 0 1 1 0 8 0 phpool 112 3905 0 23 111 0 111 111 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:440 panic(ffffffff82464b8f) at panic+0x177 sys/kern/subr_prf.c:202 witness_checkorder(ffffffff82838c20,9,0) at witness_checkorder+0x11eb sys/kern/subr_witness.c:833 __mp_lock(ffffffff82838a18) at __mp_lock+0xa1 read_rflags machine/cpufunc.h:195 [inline] __mp_lock(ffffffff82838a18) at __mp_lock+0xa1 intr_disable machine/cpufunc.h:216 [inline] __mp_lock(ffffffff82838a18) at __mp_lock+0xa1 sys/kern/kern_lock.c:142 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:90 Xsoftclock() at Xsoftclock+0x1f __sanitizer_cov_trace_const_cmp8(ffffffff829b8b08,9) at __sanitizer_cov_trace_const_cmp8+0x7 sys/dev/kcov.c:228 pool_get(ffffffff829b8b08,9) at pool_get+0xeb sys/kern/subr_pool.c:584 vm_create(ffff800000b29800,ffff800021192fc8) at vm_create+0xad sys/arch/amd64/amd64/vmm.c:1497 vmmioctl(a00,c5005601,ffff800000b29800,1,ffff800021192fc8) at vmmioctl+0x1f2 VOP_IOCTL(fffffd806e197670,c5005601,ffff800000b29800,1,fffffd807f7d8720,ffff800021192fc8) at VOP_IOCTL+0x9a sys/kern/vfs_vops.c:295 vn_ioctl(fffffd806e4a77c8,c5005601,ffff800000b29800,ffff800021192fc8) at vn_ioctl+0xba sys/kern/vfs_vnops.c:531 sys_ioctl(ffff800021192fc8,ffff8000212359f8,ffff800021235a40) at sys_ioctl+0x4a2 syscall(ffff800021235ac0) at syscall+0x5a9 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800021235ac0) at syscall+0x5a9 sys/arch/amd64/amd64/trap.c:587 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa75d50189a0, count: -15 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffff800020d38ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 end of kernel end trace frame: 0x7f7fffff7ee0, count: 12 ddb{1}> trace x86_ipi_db(ffff800020d38ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 end of kernel end trace frame: 0x7f7fffff7ee0, count: -3