panic: mtx 0xffffffff838f1db8: locking against myself Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *333936 24970 32767 0x10 0 1 syz-executor 448213 24970 32767 0x10 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff833f7d79) at panic+0x1e5 sys/kern/subr_prf.c:198 mtx_enter_try(ffffffff838f1db8) at mtx_enter_try+0x1da sys/kern/kern_lock.c:300 mtx_enter(ffffffff838f1db8) at mtx_enter+0x62 sys/kern/kern_lock.c:261 uvm_pageclean(fffffd8008cee758) at uvm_pageclean+0x290 uvm_pagedequeue sys/uvm/uvm_page.c:-1 [inline] uvm_pageclean(fffffd8008cee758) at uvm_pageclean+0x290 sys/uvm/uvm_page.c:980 uvm_pagefree(fffffd8008cee758) at uvm_pagefree+0x26 sys/uvm/uvm_page.c:1020 uvn_get(fffffd8073021418,0,ffff80003c47f4e8,ffff80003c47f4cc,0,2,d13b42f2a7dabdc2,2) at uvn_get+0x68b sys/uvm/uvm_vnode.c:1118 uvm_fault_lower_io(ffff80003c47f700,ffff80003c47f738,ffff80003c47f580,ffff80003c47f568) at uvm_fault_lower_io+0x2d1 sys/uvm/uvm_fault.c:1652 uvm_fault_lower(ffff80003c47f700,ffff80003c47f738,ffff80003c47f680) at uvm_fault_lower+0x2bb sys/uvm/uvm_fault.c:1419 uvm_fault(fffffd807e20f5d8,200000000000,0,2) at uvm_fault+0x278 sys/uvm/uvm_fault.c:-1 upageflttrap(ffff80003c47f890,2000000000c0) at upageflttrap+0xa9 sys/arch/amd64/amd64/trap.c:192 usertrap(ffff80003c47f890) at usertrap+0x403 sys/arch/amd64/amd64/trap.c:605 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0x7ce995e86ca0, count: 2 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 *cpu1: mtx 0xffffffff838f1db8: locking against myself ddb{1}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff833f7d79) at panic+0x1e5 sys/kern/subr_prf.c:198 mtx_enter_try(ffffffff838f1db8) at mtx_enter_try+0x1da sys/kern/kern_lock.c:300 mtx_enter(ffffffff838f1db8) at mtx_enter+0x62 sys/kern/kern_lock.c:261 uvm_pageclean(fffffd8008cee758) at uvm_pageclean+0x290 uvm_pagedequeue sys/uvm/uvm_page.c:-1 [inline] uvm_pageclean(fffffd8008cee758) at uvm_pageclean+0x290 sys/uvm/uvm_page.c:980 uvm_pagefree(fffffd8008cee758) at uvm_pagefree+0x26 sys/uvm/uvm_page.c:1020 uvn_get(fffffd8073021418,0,ffff80003c47f4e8,ffff80003c47f4cc,0,2,d13b42f2a7dabdc2,2) at uvn_get+0x68b sys/uvm/uvm_vnode.c:1118 uvm_fault_lower_io(ffff80003c47f700,ffff80003c47f738,ffff80003c47f580,ffff80003c47f568) at uvm_fault_lower_io+0x2d1 sys/uvm/uvm_fault.c:1652 uvm_fault_lower(ffff80003c47f700,ffff80003c47f738,ffff80003c47f680) at uvm_fault_lower+0x2bb sys/uvm/uvm_fault.c:1419 uvm_fault(fffffd807e20f5d8,200000000000,0,2) at uvm_fault+0x278 sys/uvm/uvm_fault.c:-1 upageflttrap(ffff80003c47f890,2000000000c0) at upageflttrap+0xa9 sys/arch/amd64/amd64/trap.c:192 usertrap(ffff80003c47f890) at usertrap+0x403 sys/arch/amd64/amd64/trap.c:605 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0x7ce995e86ca0, count: -13 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff80003c47f220 rbx 0xffff8000299deddf rdx 0 rcx 0xffff80003c4454b0 rax 0xffff8000299ddff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0xa0d2ed319d65391f r11 0xe464ef05775a25e4 r12 0xffff8000299debe0 r13 0 r14 0 r15 0x1 rip 0xffffffff817733f5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003c47f210 ss 0 db_enter+0x25: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor) tid=333936 pid=24970 tcnt=4 stat=onproc flags process=10 proc=0 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003c4447e0,0xffff80003c444a80 process=0xffff80003c465d70 user=0xffff80003c47a000, vmspace=0xfffffd807e20f5d8 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND *24970 333936 3625 32767 7 0x10 syz-executor 24970 489417 3625 32767 3 0x4000090 fsleep syz-executor 24970 448213 3625 32767 7 0x4000010 syz-executor 24970 243991 3625 32767 2 0x4000010 syz-executor 87537 422299 14015 0 2 0 syz-executor 30761 389826 29174 32767 2 0x10 syz-executor 30761 124387 29174 32767 2 0x4000010 syz-executor 98078 154869 39918 32767 2 0x10 syz-executor 98078 149793 39918 32767 2 0x4000010 syz-executor 64324 142878 60726 32767 2 0x10 syz-executor 64324 269214 60726 32767 3 0x4000090 fsleep syz-executor 14015 390310 71325 0 2 0x2 syz-executor 37155 332132 26431 32767 3 0x90 nanoslp syz-executor 37155 326551 26431 32767 3 0x4000090 sbwait syz-executor 37155 454362 26431 32767 3 0x4000090 fsleep syz-executor 93841 289572 71325 0 2 0x2 syz-executor 38436 225712 0 0 3 0x14200 bored sosplice 82711 213136 27894 32767 2 0x10 syz-executor 39918 97714 11275 32767 3 0x90 nanoslp syz-executor 29174 430289 95421 32767 3 0x90 nanoslp syz-executor 3625 147882 37789 32767 3 0x90 nanoslp syz-executor 26431 514443 26380 32767 3 0x90 nanoslp syz-executor 60726 305181 83919 32767 3 0x90 nanoslp syz-executor 11275 242135 71325 0 3 0x82 wait syz-executor 27894 120756 71325 0 3 0x82 wait syz-executor 37789 172976 71325 0 3 0x82 wait syz-executor 95421 63852 71325 0 3 0x82 wait syz-executor 26380 448092 71325 0 3 0x82 wait syz-executor 83919 81526 71325 0 3 0x82 wait syz-executor 71325 214737 70275 0 2 0x2 syz-executor 70275 167326 61310 0 3 0x10008a sigsusp ksh 61310 135410 72486 0 3 0x98 kqread sshd-session 72486 279727 59731 0 3 0x92 kqread sshd-session 18020 32396 1 0 3 0x100083 ttyin getty 59731 326012 1 0 3 0x88 kqread sshd 33108 50627 42079 73 3 0x1100090 kqread syslogd 42079 373630 1 0 3 0x100082 sbwait syslogd 32463 428679 1 0 3 0x100080 kqread resolvd 46978 80439 57222 77 3 0x100092 kqread dhcpleased 12498 206708 57222 77 3 0x100092 kqread dhcpleased 57222 307294 1 0 3 0x80 kqread dhcpleased 42884 225851 0 0 3 0x14200 bored smr 11442 328913 0 0 2 0x14200 zerothread 67583 3823 0 0 3 0x14200 aiodoned aiodoned 59691 317029 0 0 3 0x14200 syncer update 43817 461065 0 0 3 0x14200 cleaner cleaner 92749 124196 0 0 3 0x14200 reaper reaper 54554 453623 0 0 3 0x14200 pgdaemon pagedaemon 86246 336983 0 0 3 0x14200 bored viomb 34924 481452 0 0 3 0x40014200 acpi0 acpi0 77312 494116 0 0 3 0x40014200 idle1 1263 410268 0 0 3 0x14200 bored softnet7 12974 112855 0 0 3 0x14200 bored softnet6 50849 266236 0 0 3 0x14200 bored softnet5 52360 486136 0 0 3 0x14200 bored softnet4 32509 103521 0 0 3 0x14200 bored softnet3 28438 364913 0 0 3 0x14200 bored softnet2 88569 301234 0 0 3 0x14200 bored softnet1 41088 127879 0 0 3 0x14200 bored softnet0 73717 62001 0 0 3 0x14200 smrbar systqmp 87984 357773 0 0 3 0x14200 bored systq 54045 478101 0 0 3 0x14200 tmoslp softclockmp 7247 157174 0 0 3 0x40014200 tmoslp softclock 25332 108035 0 0 3 0x40014200 idle0 1 516673 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks CPU 1: exclusive mutex &uvm.pageqlock r = 0 (0xffffffff838f1dc8) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1160 #1 mtx_enter_try+0x1ad sys/kern/kern_lock.c:311 #2 mtx_enter+0x62 sys/kern/kern_lock.c:261 #3 uvn_get+0x679 sys/uvm/uvm_vnode.c:1117 #4 uvm_fault_lower_io+0x2d1 sys/uvm/uvm_fault.c:1652 #5 uvm_fault_lower+0x2bb sys/uvm/uvm_fault.c:1419 #6 uvm_fault+0x278 sys/uvm/uvm_fault.c:-1 #7 upageflttrap+0xa9 sys/arch/amd64/amd64/trap.c:192 #8 usertrap+0x403 sys/arch/amd64/amd64/trap.c:605 #9 recall_trap+0x8 Process 24970 (syz-executor) thread 0xffff80003c4454b0 (333936) exclusive rwlock uobjlk r = 0 (0xfffffd806a151ee0) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1160 #1 rw_do_enter_write+0x42b sys/kern/kern_rwlock.c:319 #2 uvn_io+0x667 sys/uvm/uvm_vnode.c:1297 #3 uvn_get+0x31d sys/uvm/uvm_vnode.c:1102 #4 uvm_fault_lower_io+0x2d1 sys/uvm/uvm_fault.c:1652 #5 uvm_fault_lower+0x2bb sys/uvm/uvm_fault.c:1419 #6 uvm_fault+0x278 sys/uvm/uvm_fault.c:-1 #7 upageflttrap+0xa9 sys/arch/amd64/amd64/trap.c:192 #8 usertrap+0x403 sys/arch/amd64/amd64/trap.c:605 #9 recall_trap+0x8 exclusive mutex &uvm.pageqlock r = 0 (0xffffffff838f1dc8) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1160 #1 mtx_enter_try+0x1ad sys/kern/kern_lock.c:311 #2 mtx_enter+0x62 sys/kern/kern_lock.c:261 #3 uvn_get+0x679 sys/uvm/uvm_vnode.c:1117 #4 uvm_fault_lower_io+0x2d1 sys/uvm/uvm_fault.c:1652 #5 uvm_fault_lower+0x2bb sys/uvm/uvm_fault.c:1419 #6 uvm_fault+0x278 sys/uvm/uvm_fault.c:-1 #7 upageflttrap+0xa9 sys/arch/amd64/amd64/trap.c:192 #8 usertrap+0x403 sys/arch/amd64/amd64/trap.c:605 #9 recall_trap+0x8 Process 24970 (syz-executor) thread 0xffff80003c445220 (448213) exclusive rrwlock inode r = 0 (0xfffffd806b7d1b50) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1160 #1 rw_do_enter_write+0x42b sys/kern/kern_rwlock.c:319 #2 rrw_enter+0xc6 sys/kern/kern_rwlock.c:621 #3 VOP_LOCK+0xa6 sys/kern/vfs_vops.c:527 #4 vn_lock+0xa4 sys/kern/vfs_vnops.c:570 #5 sys_ftruncate+0x1c4 sys/kern/vfs_syscalls.c:2912 #6 syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] #6 syscall+0xb08 sys/arch/amd64/amd64/trap.c:748 #7 Xsyscall+0x128 Process 82711 (syz-executor) thread 0xffff80002a2d5c50 (213136) exclusive rwlock pipelk r = 0 (0xfffffd806c0afd50) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1160 #1 rw_do_enter_write+0x42b sys/kern/kern_rwlock.c:319 #2 pipe_write+0x4b6 sys/kern/sys_pipe.c:563 #3 dofilewritev+0x23c sys/kern/sys_generic.c:380 #4 sys_write+0xa2 sys/kern/sys_generic.c:300 #5 syscall+0xbc6 mi_syscall sys/sys/syscall_mi.h:176 [inline] #5 syscall+0xbc6 sys/arch/amd64/amd64/trap.c:748 #6 Xsyscall+0x128 Process 73717 (systqmp) thread 0xffff8000ffffe520 (62001) shared rwlock systqmp r = 0 (0xffffffff83861cb8) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1160 #1 taskq_thread+0x12a sys/kern/kern_task.c:442 #2 proc_trampoline+0x10 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10214 10955K 10968K 166960K 11300 0 pcb 17 12K 12K 166960K 17 0 rtable 177 5K 6K 166960K 273 0 pf 27 16K 16K 166960K 31 0 ifaddr 34 6K 7K 166960K 44 0 ifgroup 42 1K 2K 166960K 50 0 sysctl 2 1K 9K 166960K 8 0 counters 64 36K 36K 166960K 68 0 ioctlops 0 0K 2K 166960K 34 0 iov 0 0K 12K 166960K 21 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1334 84K 84K 166960K 1527 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 15 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 50 0 dirhash 12 2K 2K 166960K 30 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 22 81K 125K 166960K 519 0 sigio 2 0K 0K 166960K 7 0 proc 58 99K 131K 166960K 517 0 subproc 66 4K 4K 166960K 228 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 72 0 in_multi 77 5K 7K 166960K 124 0 ether_multi 1 0K 0K 166960K 5 0 mrt 2 0K 0K 166960K 2 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 223 996K 996K 166960K 223 0 exec 0 0K 1K 166960K 428 0 fusefs mount 1 32K 32K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 227 151K 175K 166960K 5931 0 UVM aobj 17 2K 2K 166960K 19 0 pinsyscall 43 86K 112K 166960K 1531 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 1 0K 0K 166960K 22 0 NDP 9 0K 2K 166960K 27 0 temp 71 8679K 8744K 166960K 5491 0 kqueue 13 20K 29K 166960K 86 0 SYN cache 2 16K 16K 166960K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 26 0 0 1 0 1 1 0 8 0 rtpcb 120 54 0 51 1 0 1 1 0 8 0 rtentry 176 103 0 23 5 0 5 5 0 8 0 unpcb 144 348 0 331 2 1 1 2 0 8 0 syncache 336 7 0 7 2 1 1 1 0 8 1 tcpqe 32 2 0 2 1 1 0 1 0 8 0 tcpcb 736 306 0 299 4 2 2 4 0 8 1 arp 128 12 0 2 1 0 1 1 0 8 0 ipq 40 1 0 0 1 0 1 1 0 8 0 ipqe 40 2 0 0 1 0 1 1 0 8 0 inpcb 328 732 0 718 7 0 7 7 0 8 5 ip6q 72 2 0 0 1 0 1 1 0 8 0 ip6af 40 2 0 0 1 0 1 1 0 8 0 nd6 144 22 0 8 1 0 1 1 0 8 0 kcovpl 48 25 0 18 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 466 0 65 29 3 26 29 0 8 0 art_table 40 467 0 65 5 0 5 5 0 8 0 art_node 32 103 0 24 1 0 1 1 0 8 0 sysvmsgpl 40 36 0 35 1 0 1 1 0 8 0 semapl 112 47 0 37 1 0 1 1 0 8 0 shmpl 112 16 0 2 1 0 1 1 0 8 0 dirhash 1024 30 0 13 3 0 3 3 0 8 0 dino2pl 256 2034 0 506 96 0 96 96 0 8 0 ffsino 296 2034 0 506 118 0 118 118 0 8 0 nchpl 144 2636 0 935 64 0 64 64 0 8 0 uvmvnodes 80 2271 0 0 47 0 47 47 0 8 0 vnodes 216 2271 0 0 127 0 127 127 0 8 0 namei 1024 8568 0 8568 2 1 1 2 0 8 1 percpumem 16 49 0 2 1 0 1 1 0 8 0 kstatmem 264 24 0 4 2 0 2 2 0 8 0 scxspl 216 9516 0 9516 7 6 1 6 1 8 1 plimitpl 152 161 0 139 3 1 2 2 0 8 1 sigapl 424 762 0 705 8 0 8 8 0 8 0 knotepl 120 367 0 0 12 0 12 12 0 8 0 kqueuepl 224 182 0 173 5 4 1 5 0 8 0 pipepl 344 172 0 144 3 0 3 3 0 8 0 fdescpl 528 739 0 705 4 1 3 4 0 8 0 filepl 160 3981 0 3771 13 1 12 13 0 8 2 lockfpl 104 100 0 97 1 0 1 1 0 8 0 lockfspl 48 37 0 34 1 0 1 1 0 8 0 sessionpl 144 41 0 27 1 0 1 1 0 8 0 pgrppl 48 70 0 48 1 0 1 1 0 8 0 ucredpl 104 679 0 662 1 0 1 1 0 8 0 zombiepl 144 705 0 705 1 0 1 1 0 8 1 processpl 1248 762 0 705 7 1 6 6 0 8 0 procpl 656 1321 0 1256 7 1 6 7 0 8 0 sosppl 168 10 0 10 1 0 1 1 0 8 1 sockpl 752 1136 0 1102 10 0 10 10 0 8 5 mcl64k 65536 2 0 0 1 0 1 1 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 113 0 0 15 0 15 15 0 8 0 mcl2k 2048 25 0 0 4 0 4 4 0 8 0 mtagpl 96 1 0 0 1 0 1 1 0 8 0 mbufpl 256 1483 0 0 93 0 93 93 0 8 0 bufpl 280 3481 0 116 241 0 241 241 0 8 0 anonpl 32 5470 0 0 45 0 45 45 0 246 0 amapchunkpl 152 19063 0 18584 32 7 25 31 0 158 5 amappl16 200 2100 0 2079 6 3 3 5 0 8 1 amappl15 192 6 0 6 1 1 0 1 0 8 0 amappl14 184 106 0 96 1 0 1 1 0 8 0 amappl13 176 4 0 4 1 1 0 1 0 8 0 amappl12 168 1337 0 1303 2 0 2 2 0 8 0 amappl11 160 65 0 55 1 0 1 1 0 8 0 amappl10 152 2 0 2 1 1 0 1 0 8 0 amappl9 144 249 0 249 1 1 0 1 0 8 0 amappl8 136 30 0 29 1 0 1 1 0 8 0 amappl7 128 119 0 109 1 0 1 1 0 8 0 amappl6 120 198 0 194 1 0 1 1 0 8 0 amappl5 112 113 0 106 1 0 1 1 0 8 0 amappl4 104 273 0 257 1 0 1 1 0 8 0 amappl3 96 3411 0 3297 4 0 4 4 0 8 0 amappl2 88 633 0 576 2 0 2 2 0 8 0 amappl1 80 10092 0 9532 14 0 14 14 0 8 0 amappl 88 5215 0 5052 5 0 5 5 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 72 18 0 2 1 0 1 1 0 8 0 uaddrrnd 24 739 0 705 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 739 0 705 1 0 1 1 0 8 0 vmmpekpl 168 7969 0 7926 3 0 3 3 0 8 0 vmmpepl 168 53027 0 51058 99 6 93 99 0 357 3 vmsppl 488 738 0 705 7 2 5 6 0 8 0 rwobjpl 80 18715 0 15597 66 1 65 65 0 8 1 pdppl 4096 1486 0 1410 118 36 82 98 0 8 6 pvpl 32 14244 0 0 115 0 115 115 0 265 0 pmappl 256 738 0 705 4 1 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 377 0 46 11 1 10 11 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffffffff837eeff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff8398b9d8) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:134 [inline] __mp_lock(ffffffff8398b9d8) at __mp_lock+0x192 sys/kern/kern_lock.c:165 __mp_acquire_count(ffffffff8398b9d8,1) at __mp_acquire_count+0x58 sys/kern/kern_lock.c:-1 sleep_finish(ffffffffffffffff,1) at sleep_finish+0x2da sys/kern/kern_synch.c:366 biowait(fffffd806a1c6e50) at biowait+0xc1 sys/kern/vfs_bio.c:1242 bwrite(fffffd806a1c6e50) at bwrite+0x2e5 sys/kern/vfs_bio.c:754 ffs_update(fffffd806b7d1ab0,1) at ffs_update+0x34f sys/ufs/ffs/ffs_inode.c:111 ffs_truncate(fffffd806b7d1ab0,79c4,0,fffffd80097fb138) at ffs_truncate+0x6c8 sys/ufs/ffs/ffs_inode.c:197 ufs_setattr(ffff80003c4915d0) at ufs_setattr+0x912 sys/ufs/ufs/ufs_vnops.c:403 VOP_SETATTR(fffffd8073005990,ffff80003c491658,fffffd80097fb138,ffff80003c445220) at VOP_SETATTR+0x11c sys/kern/vfs_vops.c:210 dotruncate(ffff80003c445220,fffffd8073005990,79c4) at dotruncate+0x1d6 sys/kern/vfs_syscalls.c:2860 sys_ftruncate(ffff80003c445220,ffff80003c491880,ffff80003c4917d0) at sys_ftruncate+0x1dd sys/kern/vfs_syscalls.c:2912 end trace frame: 0xffff80003c491870, count: 0 ddb{0}> trace x86_ipi_db(ffffffff837eeff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff8398b9d8) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:134 [inline] __mp_lock(ffffffff8398b9d8) at __mp_lock+0x192 sys/kern/kern_lock.c:165 __mp_acquire_count(ffffffff8398b9d8,1) at __mp_acquire_count+0x58 sys/kern/kern_lock.c:-1 sleep_finish(ffffffffffffffff,1) at sleep_finish+0x2da sys/kern/kern_synch.c:366 biowait(fffffd806a1c6e50) at biowait+0xc1 sys/kern/vfs_bio.c:1242 bwrite(fffffd806a1c6e50) at bwrite+0x2e5 sys/kern/vfs_bio.c:754 ffs_update(fffffd806b7d1ab0,1) at ffs_update+0x34f sys/ufs/ffs/ffs_inode.c:111 ffs_truncate(fffffd806b7d1ab0,79c4,0,fffffd80097fb138) at ffs_truncate+0x6c8 sys/ufs/ffs/ffs_inode.c:197 ufs_setattr(ffff80003c4915d0) at ufs_setattr+0x912 sys/ufs/ufs/ufs_vnops.c:403 VOP_SETATTR(fffffd8073005990,ffff80003c491658,fffffd80097fb138,ffff80003c445220) at VOP_SETATTR+0x11c sys/kern/vfs_vops.c:210 dotruncate(ffff80003c445220,fffffd8073005990,79c4) at dotruncate+0x1d6 sys/kern/vfs_syscalls.c:2860 sys_ftruncate(ffff80003c445220,ffff80003c491880,ffff80003c4917d0) at sys_ftruncate+0x1dd sys/kern/vfs_syscalls.c:2912 syscall(ffff80003c491880) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c491880) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x9a0ff82e3c0, count: -16 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x25: addq $0x8,%rsp db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff833f7d79) at panic+0x1e5 sys/kern/subr_prf.c:198 mtx_enter_try(ffffffff838f1db8) at mtx_enter_try+0x1da sys/kern/kern_lock.c:300 mtx_enter(ffffffff838f1db8) at mtx_enter+0x62 sys/kern/kern_lock.c:261 uvm_pageclean(fffffd8008cee758) at uvm_pageclean+0x290 uvm_pagedequeue sys/uvm/uvm_page.c:-1 [inline] uvm_pageclean(fffffd8008cee758) at uvm_pageclean+0x290 sys/uvm/uvm_page.c:980 uvm_pagefree(fffffd8008cee758) at uvm_pagefree+0x26 sys/uvm/uvm_page.c:1020 uvn_get(fffffd8073021418,0,ffff80003c47f4e8,ffff80003c47f4cc,0,2,d13b42f2a7dabdc2,2) at uvn_get+0x68b sys/uvm/uvm_vnode.c:1118 uvm_fault_lower_io(ffff80003c47f700,ffff80003c47f738,ffff80003c47f580,ffff80003c47f568) at uvm_fault_lower_io+0x2d1 sys/uvm/uvm_fault.c:1652 uvm_fault_lower(ffff80003c47f700,ffff80003c47f738,ffff80003c47f680) at uvm_fault_lower+0x2bb sys/uvm/uvm_fault.c:1419 uvm_fault(fffffd807e20f5d8,200000000000,0,2) at uvm_fault+0x278 sys/uvm/uvm_fault.c:-1 upageflttrap(ffff80003c47f890,2000000000c0) at upageflttrap+0xa9 sys/arch/amd64/amd64/trap.c:192 usertrap(ffff80003c47f890) at usertrap+0x403 sys/arch/amd64/amd64/trap.c:605 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0x7ce995e86ca0, count: 2 ddb{1}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff833f7d79) at panic+0x1e5 sys/kern/subr_prf.c:198 mtx_enter_try(ffffffff838f1db8) at mtx_enter_try+0x1da sys/kern/kern_lock.c:300 mtx_enter(ffffffff838f1db8) at mtx_enter+0x62 sys/kern/kern_lock.c:261 uvm_pageclean(fffffd8008cee758) at uvm_pageclean+0x290 uvm_pagedequeue sys/uvm/uvm_page.c:-1 [inline] uvm_pageclean(fffffd8008cee758) at uvm_pageclean+0x290 sys/uvm/uvm_page.c:980 uvm_pagefree(fffffd8008cee758) at uvm_pagefree+0x26 sys/uvm/uvm_page.c:1020 uvn_get(fffffd8073021418,0,ffff80003c47f4e8,ffff80003c47f4cc,0,2,d13b42f2a7dabdc2,2) at uvn_get+0x68b sys/uvm/uvm_vnode.c:1118 uvm_fault_lower_io(ffff80003c47f700,ffff80003c47f738,ffff80003c47f580,ffff80003c47f568) at uvm_fault_lower_io+0x2d1 sys/uvm/uvm_fault.c:1652 uvm_fault_lower(ffff80003c47f700,ffff80003c47f738,ffff80003c47f680) at uvm_fault_lower+0x2bb sys/uvm/uvm_fault.c:1419 uvm_fault(fffffd807e20f5d8,200000000000,0,2) at uvm_fault+0x278 sys/uvm/uvm_fault.c:-1 upageflttrap(ffff80003c47f890,2000000000c0) at upageflttrap+0xa9 sys/arch/amd64/amd64/trap.c:192 usertrap(ffff80003c47f890) at usertrap+0x403 sys/arch/amd64/amd64/trap.c:605 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0x7ce995e86ca0, count: -13