uvm_fault(0xfffffd807d3facd0, 0x0, 0, 1) -> e
kernel: page fault trap, code=0
Stopped at rw_enter+0x179: movq 0(%r14),%r13
TID PID UID PRFLAGS PFLAGS CPU COMMAND
444238 68822 0 0 0 1 syz-executor.7
*401717 54269 0 0x2 0 0K syz-executor.4
rw_enter(0,1) at rw_enter+0x179 sys/kern/kern_rwlock.c:253
uvm_vnp_setsize(fffffd8071898290,0) at uvm_vnp_setsize+0x42 sys/uvm/uvm_vnode.c:1454
ffs_truncate(fffffd8072f66558,0,4,fffffd807f7d6680) at ffs_truncate+0x303 sys/ufs/ffs/ffs_inode.c:177
ufs_rmdir(ffff8000341a25b8) at ufs_rmdir+0x3a9 sys/ufs/ufs/ufs_vnops.c:1342
VOP_RMDIR(fffffd806435a798,fffffd8071898290,ffff8000341a2698) at VOP_RMDIR+0x12a sys/kern/vfs_vops.c:407
dounlinkat(ffff80002a252298,ffffff9c,7a210fdced80,8) at dounlinkat+0x20e sys/kern/vfs_syscalls.c:1880
syscall(ffff8000341a2810) at syscall+0x4e6 sys/arch/amd64/amd64/trap.c:606
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7a210fdced70, count: 7
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: uvm_fault(0xfffffd807d3facd0, 0x0, 0, 1) -> e
ddb{0}> trace
rw_enter(0,1) at rw_enter+0x179 sys/kern/kern_rwlock.c:253
uvm_vnp_setsize(fffffd8071898290,0) at uvm_vnp_setsize+0x42 sys/uvm/uvm_vnode.c:1454
ffs_truncate(fffffd8072f66558,0,4,fffffd807f7d6680) at ffs_truncate+0x303 sys/ufs/ffs/ffs_inode.c:177
ufs_rmdir(ffff8000341a25b8) at ufs_rmdir+0x3a9 sys/ufs/ufs/ufs_vnops.c:1342
VOP_RMDIR(fffffd806435a798,fffffd8071898290,ffff8000341a2698) at VOP_RMDIR+0x12a sys/kern/vfs_vops.c:407
dounlinkat(ffff80002a252298,ffffff9c,7a210fdced80,8) at dounlinkat+0x20e sys/kern/vfs_syscalls.c:1880
syscall(ffff8000341a2810) at syscall+0x4e6 sys/arch/amd64/amd64/trap.c:606
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7a210fdced70, count: -8
ddb{0}> show registers
rdi 0
rsi 0
rbp 0xffff8000341a22f0
rbx 0xffff80002a25229c
rdx 0
rcx 0xffff80002a252298
rax 0xffffffff82ba4ff0 cpu_info_full_primary+0x1ff0
r8 0xfffffd8072f665c8
r9 0
r10 0xb8fa381863bee4f0
r11 0xef794b9a088abb9f
r12 0
r13 0x1
r14 0
r15 0xffffffffffffffff
rip 0xffffffff81e2b699 rw_enter+0x179
cs 0x8
rflags 0x10246 __ALIGN_SIZE+0xf246
rsp 0xffff8000341a2250
ss 0
rw_enter+0x179: movq 0(%r14),%r13
ddb{0}> show proc
PROC (syz-executor.4) tid=401717 pid=54269 tcnt=1 stat=onproc
flags process=2<EXEC> proc=0
runpri=17, usrpri=86, slppri=17, nice=20
wchan=0x0, wmesg=, ps_single=0x0
forw=0xffffffffffffffff, list=0xffff80002a251ff0,0xffff80002a1c6d60
process=0xffff8000ffff10d8 user=0xffff80003419d000, vmspace=0xfffffd807d3facd0
estcpu=36, cpticks=3, pctcpu=0.47, user=0, sys=1, intr=0
ddb{0}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
28498 215329 15979 0 2 0 syz-executor.2
68822 444238 98579 0 7 0 syz-executor.7
96725 92705 6102 0 2 0 syz-executor.0
96725 399595 6102 0 3 0x4000080 fsleep syz-executor.0
60498 190668 49876 0 2 0 syz-executor.1
60498 253410 49876 0 3 0x4000080 fsleep syz-executor.1
60498 465703 49876 0 2 0x4000000 syz-executor.1
84911 380754 3374 0 2 0 syz-executor.3
84911 18030 3374 0 3 0x4000080 fsleep syz-executor.3
15979 104223 12708 0 2 0x482 syz-executor.2
21488 71098 12708 0 2 0x2 syz-executor.6
98579 50179 12708 0 3 0x82 nanoslp syz-executor.7
43239 446941 0 0 3 0x14200 acct acct
4150 336998 0 0 3 0x14200 bored sosplice
44014 449001 0 0 3 0x14280 nfsidl nfsio
34804 127747 0 0 3 0x14280 nfsidl nfsio
50004 451380 0 0 3 0x14280 nfsidl nfsio
33011 222391 0 0 3 0x14280 nfsidl nfsio
56776 282965 0 0 3 0x14280 nfsidl nfsio
39844 197250 0 0 3 0x14280 nfsidl nfsio
47596 385091 0 0 3 0x14280 nfsidl nfsio
44678 325978 0 0 3 0x14280 nfsidl nfsio
12580 340203 0 0 3 0x14280 nfsidl nfsio
10914 133632 0 0 3 0x14280 nfsidl nfsio
66540 382183 0 0 3 0x14280 nfsidl nfsio
30357 29027 0 0 3 0x14280 nfsidl nfsio
45944 469773 0 0 3 0x14280 nfsidl nfsio
54138 245486 0 0 3 0x14280 nfsidl nfsio
92965 428975 0 0 3 0x14280 nfsidl nfsio
32538 192622 0 0 3 0x14280 nfsidl nfsio
42156 35986 0 0 3 0x14280 nfsidl nfsio
27838 365437 0 0 3 0x14280 nfsidl nfsio
44753 35414 0 0 3 0x14280 nfsidl nfsio
75975 347742 0 0 3 0x14280 nfsidl nfsio
*54269 401717 12708 0 7 0x2 syz-executor.4
3374 94505 12708 0 3 0x82 nanoslp syz-executor.3
49876 314344 12708 0 3 0x82 nanoslp syz-executor.1
88332 390568 97909 0 3 0x100082 netio arp
97909 73412 1 0 3 0x10008a sigsusp sh
7982 392421 12708 0 2 0x2 syz-executor.5
6102 232879 12708 0 2 0x482 syz-executor.0
12708 370551 8427 0 3 0x2000082 thrsleep syz-fuzzer
12708 360235 8427 0 3 0x6000082 nanoslp syz-fuzzer
12708 482720 8427 0 3 0x6000082 thrsleep syz-fuzzer
12708 448084 8427 0 3 0x6000082 thrsleep syz-fuzzer
12708 271752 8427 0 3 0x6000082 wait syz-fuzzer
12708 442735 8427 0 3 0x6000082 wait syz-fuzzer
12708 464885 8427 0 3 0x6000082 wait syz-fuzzer
12708 412856 8427 0 3 0x6000082 wait syz-fuzzer
12708 261421 8427 0 3 0x6000082 wait syz-fuzzer
12708 152092 8427 0 3 0x6000082 thrsleep syz-fuzzer
12708 498655 8427 0 3 0x6000082 thrsleep syz-fuzzer
12708 507602 8427 0 3 0x6000082 thrsleep syz-fuzzer
12708 214031 8427 0 3 0x6000082 wait syz-fuzzer
12708 112126 8427 0 3 0x6000082 wait syz-fuzzer
12708 79600 8427 0 3 0x6000082 kqread syz-fuzzer
12708 164973 8427 0 3 0x6000082 wait syz-fuzzer
8427 229845 30243 0 3 0x10008a sigsusp ksh
30243 151177 33745 0 3 0x9a kqread sshd
47626 155151 1 0 3 0x100083 ttyin getty
33745 300177 1 0 3 0x88 kqread sshd
72483 409032 82399 74 3 0x1100092 bpf pflogd
82399 200510 1 0 3 0x80 netio pflogd
42116 402004 1423 73 3 0x1100090 kqread syslogd
1423 362929 1 0 3 0x100082 netio syslogd
53095 88703 1 0 3 0x100080 kqread resolvd
16600 219612 38702 77 3 0x100092 kqread dhcpleased
38922 264776 38702 77 3 0x100092 kqread dhcpleased
38702 521285 1 0 3 0x80 kqread dhcpleased
30340 200254 0 0 3 0x14200 bored smr
70963 354044 0 0 2 0x14200 zerothread
94971 475655 0 0 3 0x14200 aiodoned aiodoned
93238 370482 0 0 3 0x14200 syncer update
54148 377362 0 0 3 0x14200 cleaner cleaner
69629 401308 0 0 3 0x14200 reaper reaper
35452 79023 0 0 3 0x14200 pgdaemon pagedaemon
17627 325894 0 0 3 0x14200 bored viomb
74602 66257 0 0 3 0x40014200 acpi0 acpi0
80094 2227 0 0 3 0x40014200 idle1
9476 332501 0 0 3 0x14200 bored softnet3
26168 89745 0 0 3 0x14200 bored softnet2
1258 306201 0 0 3 0x14200 bored softnet1
64804 181577 0 0 3 0x14200 bored softnet0
29499 273861 0 0 3 0x14200 bored systqmp
66986 433682 0 0 3 0x14200 bored systq
20948 395175 0 0 3 0x14200 tmoslp softclockmp
66807 171953 0 0 2 0x40014200 softclock
51839 255479 0 0 3 0x40014200 idle0
1 169258 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{0}> show all locks
Process 68822 (syz-executor.7) thread 0xffff80002d754d50 (444238)
Process 54269 (syz-executor.4) thread 0xffff80002a252298 (401717)
ddb{0}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim
devbuf 10244 6514K 6992K 166960K 16330 0
pcb 13 10K 13K 166960K 317 0
rtable 244 7K 7K 166960K 683 0
pf 35 10K 10K 166960K 142 0
ifaddr 46 16K 16K 166960K 108 0
ifgroup 60 2K 2K 166960K 234 0
sysctl 3 0K 0K 166960K 3 0
counters 66 36K 36K 166960K 152 0
ioctlops 0 0K 4K 166960K 17982 0
iov 0 0K 18K 166960K 477 0
mount 1 1K 1K 166960K 1 0
log 0 0K 0K 166960K 4 0
vnodes 1464 92K 92K 166960K 10351 0
UFS quota 1 32K 32K 166960K 1 0
UFS mount 5 36K 36K 166960K 5 0
shm 2 1K 13K 166960K 130 0
VM map 2 1K 1K 166960K 2 0
sem 12 0K 1K 166960K 518 0
dirhash 12 2K 2K 166960K 369 0
ACPI 1697 195K 286K 166960K 12548 0
file desc 17 61K 89K 166960K 17113 0
sigio 0 0K 0K 166960K 49 0
proc 74 91K 127K 166960K 1701 0
subproc 117 7K 7K 166960K 169 0
NFS srvsock 1 0K 0K 166960K 1 0
NFS daemon 1 16K 16K 166960K 1 0
ip_moptions 0 0K 0K 166960K 295 0
in_multi 99 7K 7K 166960K 300 0
ether_multi 1 0K 0K 166960K 7 0
mrt 1 0K 0K 166960K 11 0
ISOFS mount 1 32K 32K 166960K 1 0
MSDOSFS mount 1 16K 16K 166960K 1 0
ttys 265 1182K 1182K 166960K 265 0
exec 0 0K 1K 166960K 852 0
pfkey data 0 0K 0K 166960K 5 0
tdb 3 0K 0K 166960K 3 0
pagedep 1 8K 8K 166960K 1 0
inodedep 1 32K 32K 166960K 1 0
newblk 1 0K 0K 166960K 1 0
VM swap 8 62K 64K 166960K 10 0
UVM amap 449 155K 155K 166960K 161204 0
UVM aobj 71 5K 5K 166960K 72 0
memdesc 1 4K 4K 166960K 1 0
crypto data 1 1K 1K 166960K 1 0
ip6_options 0 0K 0K 166960K 176 0
NDP 13 0K 1K 166960K 80 0
temp 74 5932K 6012K 166960K 85005 0
kqueue 12 18K 30K 166960K 4456 0
SYN cache 2 36K 44K 166960K 3 0
ddb{0}> show all pools
Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
plcache 128 24 0 0 1 0 1 1 0 8 0
rtpcb 120 221 0 217 1 0 1 1 0 8 0
rtentry 112 185 0 72 4 0 4 4 0 8 0
unpcb 144 11715 0 11700 70 66 4 9 0 8 3
syncache 312 112 0 112 7 7 0 1 0 8 0
tcpqe 32 226 0 226 8 8 0 1 0 8 0
tcpcb 808 1028 0 1020 21 20 1 9 0 8 0
arp 120 34 0 16 1 0 1 1 0 8 0
inpcb 368 2543 0 2532 33 31 2 9 0 8 0
nd6 136 42 0 15 1 0 1 1 0 8 0
pkpcb 40 15 0 15 3 3 0 1 0 8 0
kcovpl 48 13 0 4 1 0 1 1 0 8 0
ppxss 1256 4 0 4 1 1 0 1 0 8 0
pffrag 232 94 0 90 3 2 1 2 0 482 0
pffrnode 88 77 0 73 2 1 1 1 0 8 0
pffrent 40 3091 0 3087 2 1 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 178 0 174 1 0 1 1 0 8 0
pfstkey 128 180 0 176 3 2 1 3 0 8 0
pfstate 376 180 0 176 8 7 1 7 0 8 0
pfrule 1344 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 678 0 213 30 0 30 30 0 8 0
art_table 32 679 0 213 4 0 4 4 0 8 0
art_node 16 182 0 80 1 0 1 1 0 8 0
sysvmsgpl 40 29 0 17 1 0 1 1 0 8 0
semapl 112 497 0 487 2 1 1 1 0 8 0
shmpl 112 69 0 1 2 0 2 2 0 8 0
dirhash 1024 255 0 238 3 0 3 3 0 8 0
dino2pl 256 24526 0 23072 93 1 92 93 0 8 0
ffsino 272 24526 0 23072 99 1 98 99 0 8 0
nchpl 144 45971 0 44322 63 0 63 63 0 8 0
uvmvnodes 80 31875 0 0 651 0 651 651 0 8 0
uvmvnodes: pool(0xffffffff82d62870:uvmvnodes): page inconsistency: page 0x0; at page head addr 0xfffffd8067eb4f90 (p 0xfffffd8067eb4000)
vnodes 216 31875 0 0 1771 0 1771 1771 0 8 0
namei 1024 160591 0 160591 6 5 1 2 0 8 1
percpumem 16 90 0 43 1 0 1 1 0 8 0
vcpupl 2048 30 0 4 4 0 4 4 0 8 0
vmpool 696 36 0 10 3 0 3 3 0 8 0
kstatmem 264 112 0 86 2 0 2 2 0 8 0
scxspl 216 138488 0 138488 28 25 3 8 1 8 3
plimitpl 152 187 0 170 1 0 1 1 0 8 0
sigapl 424 17452 0 17382 10 1 9 9 0 8 0
futexpl 64 129925 0 129922 2 1 1 1 0 8 0
knotepl 120 667 0 0 13 2 11 11 0 8 0
kqueuepl 216 6341 0 6333 66 61 5 8 0 8 4
pipepl 320 1626 0 1530 56 48 8 9 0 8 0
fdescpl 496 17412 0 17382 5 0 5 5 0 8 0
filepl 152 95497 0 95107 123 108 15 21 0 8 0
lockfpl 104 7038 0 7035 13 12 1 2 0 8 0
lockfspl 48 3037 0 3034 1 0 1 1 0 8 0
sessionpl 144 29 0 11 1 0 1 1 0 8 0
pgrppl 48 32 0 14 1 0 1 1 0 8 0
ucredpl 104 4226 0 4214 1 0 1 1 0 8 0
zombiepl 144 17382 0 17382 3 2 1 1 0 8 1
processpl 1072 17452 0 17382 5 0 5 5 0 8 0
procpl 680 43747 0 43658 14 5 9 10 0 8 0
srpgc 96 2 0 2 1 1 0 1 0 8 0
sosppl 168 111 0 111 3 3 0 2 0 8 0
sockpl 488 14521 0 14491 234 221 13 29 0 8 8
mcl64k 65536 28 0 0 3 0 3 3 0 8 0
mcl16k 16384 21 0 0 3 1 2 3 0 8 0
mcl12k 12288 23 0 0 2 0 2 2 0 8 0
mcl9k 9216 26 0 0 2 1 1 2 0 8 0
mcl8k 8192 35 0 0 4 0 4 4 0 8 0
mcl4k 4096 43 0 0 4 1 3 3 0 8 0
mcl2k2 2112 10 0 0 1 0 1 1 0 8 0
mcl2k 2048 534 0 0 35 20 15 35 0 8 0
mtagpl 96 224 0 0 6 1 5 6 0 8 0
mbufpl 256 1311 0 0 74 0 74 74 0 8 0
bufpl 288 27933 0 21609 453 0 453 453 0 8 0
anonpl 24 1495187 0 1484516 193 126 67 125 0 186 1
amapchunkpl 152 505921 0 505139 100 64 36 63 0 158 2
amappl16 200 28007 0 27710 92 75 17 29 0 8 1
amappl15 192 24 0 23 1 0 1 1 0 8 0
amappl14 184 178 0 161 2 1 1 2 0 8 0
amappl13 176 38 0 38 3 3 0 1 0 8 0
amappl12 168 18149 0 18117 3 1 2 2 0 8 0
amappl11 160 64 0 49 1 0 1 1 0 8 0
amappl10 152 42 0 29 2 1 1 1 0 8 0
amappl9 144 243 0 242 2 1 1 1 0 8 0
amappl8 136 661 0 489 6 0 6 6 0 8 0
amappl7 128 232 0 205 2 0 2 2 0 8 0
amappl6 120 460 0 443 1 0 1 1 0 8 0
amappl5 112 292 0 280 1 0 1 1 0 8 0
amappl4 104 695 0 663 3 2 1 3 0 8 0
amappl3 96 100669 0 100582 5 2 3 3 0 8 0
amappl2 88 19374 0 19292 3 1 2 3 0 8 0
amappl1 80 67865 0 67284 23 10 13 23 0 8 0
amappl 88 160409 0 160184 8 1 7 7 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 71 0 1 2 0 2 2 0 8 0
uaddrrnd 24 17448 0 17392 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 17448 0 17392 1 0 1 1 0 8 0
vmmpekpl 168 115949 0 115887 4 0 4 4 0 8 0
vmmpepl 168 999773 0 997396 223 110 113 118 0 357 4
vmsppl 464 17447 0 17392 8 0 8 8 0 8 0
rwobjpl 56 254549 0 221063 482 10 472 472 0 8 0
pdppl 4096 34904 0 34810 731 632 99 104 0 8 5
pvpl 32 45352 0 0 366 0 366 366 0 265 0
pmappl 248 17447 0 17392 4 0 4 4 0 8 0
extentpl 40 56 0 38 1 0 1 1 0 8 0
phpool 112 1622 0 727 27 0 27 27 0 8 0
ddb{0}> machine ddbcpu 0
Invalid cpu 0
ddb{0}> trace
rw_enter(0,1) at rw_enter+0x179 sys/kern/kern_rwlock.c:253
uvm_vnp_setsize(fffffd8071898290,0) at uvm_vnp_setsize+0x42 sys/uvm/uvm_vnode.c:1454
ffs_truncate(fffffd8072f66558,0,4,fffffd807f7d6680) at ffs_truncate+0x303 sys/ufs/ffs/ffs_inode.c:177
ufs_rmdir(ffff8000341a25b8) at ufs_rmdir+0x3a9 sys/ufs/ufs/ufs_vnops.c:1342
VOP_RMDIR(fffffd806435a798,fffffd8071898290,ffff8000341a2698) at VOP_RMDIR+0x12a sys/kern/vfs_vops.c:407
dounlinkat(ffff80002a252298,ffffff9c,7a210fdced80,8) at dounlinkat+0x20e sys/kern/vfs_syscalls.c:1880
syscall(ffff8000341a2810) at syscall+0x4e6 sys/arch/amd64/amd64/trap.c:606
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7a210fdced70, count: -8
ddb{0}> machine ddbcpu 1
Stopped at x86_ipi_db+0x1e: addq $0x8,%rsp
x86_ipi_db(ffff800029d2bff0) at x86_ipi_db+0x1e 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+0x27
__mp_lock(ffffffff82d01998) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline]
__mp_lock(ffffffff82d01998) at __mp_lock+0x122 sys/kern/kern_lock.c:147
syscall(ffff800039009220) at syscall+0x4cc mi_syscall sys/sys/syscall_mi.h:103 [inline]
syscall(ffff800039009220) at syscall+0x4cc sys/arch/amd64/amd64/trap.c:606
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f5208f23640, count: 9
ddb{1}> trace
x86_ipi_db(ffff800029d2bff0) at x86_ipi_db+0x1e 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+0x27
__mp_lock(ffffffff82d01998) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline]
__mp_lock(ffffffff82d01998) at __mp_lock+0x122 sys/kern/kern_lock.c:147
syscall(ffff800039009220) at syscall+0x4cc mi_syscall sys/sys/syscall_mi.h:103 [inline]
syscall(ffff800039009220) at syscall+0x4cc sys/arch/amd64/amd64/trap.c:606
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f5208f23640, count: -6