uvm_fault: ffs2_balloc (2)

0 views
Skip to first unread message

syzbot

unread,
Jan 10, 2023, 1:48:40 AM1/10/23
to syzkaller-o...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: d240ffd03c9d i386: identifycpu(): don't print cpuspeed aft..
git tree: openbsd
console output: https://syzkaller.appspot.com/x/log.txt?x=1354dea4480000
kernel config: https://syzkaller.appspot.com/x/.config?x=1bc15e68cd2a49e5
dashboard link: https://syzkaller.appspot.com/bug?extid=b7ae665ceec7fec7fec1

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/b061187433de/disk-d240ffd0.raw.xz
bsd.gdb: https://storage.googleapis.com/syzbot-assets/19ccc47c7756/bsd-d240ffd0.gdb.xz
kernel image: https://storage.googleapis.com/syzbot-assets/3568f2c07726/kernel-d240ffd0.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+b7ae66...@syzkaller.appspotmail.com

uvm_fault(0xffffffff82c19bf0, 0xffff80001b75f0a8, 0, 2) -> d
kernel: page fault trap, code=0
Stopped at ffs2_balloc+0x16c2: movq %rbx,0(%rcx,%rax,8)
TID PID UID PRFLAGS PFLAGS CPU COMMAND
*346580 26597 0 0x2 0x4000001 0 syz-fuzzer
ffs2_balloc(fffffd80764c4c38,84000,48c,fffffd807f7d77b8,1,ffff800027fd3658) at ffs2_balloc+0x16c2 sys/ufs/ffs/ffs_balloc.c:747
ffs_write(ffff800027fd36f0) at ffs_write+0x411 sys/ufs/ffs/ffs_vnops.c:346
VOP_WRITE(fffffd805b0ad030,ffff800027fd37a0,3,fffffd807f7d77b8) at VOP_WRITE+0xbf sys/kern/vfs_vops.c:245
ktrwriteraw(ffff8000216df5e8,fffffd805b0ad030,fffffd807f7d77b8,ffff800027fd3868,ffff800027fd3840) at ktrwriteraw+0x13d sys/kern/kern_ktrace.c:660
ktrgenio(ffff8000216df5e8,1,1,ffff8000006c5870,54a8) at ktrgenio+0x27b ktrwrite2 sys/kern/kern_ktrace.c:624 [inline]
ktrgenio(ffff8000216df5e8,1,1,ffff8000006c5870,54a8) at ktrgenio+0x27b sys/kern/kern_ktrace.c:259
dofilewritev(ffff8000216df5e8,1,ffff800027fd39e8,0,ffff800027fd3ad0) at dofilewritev+0x38a sys/kern/sys_generic.c:396
sys_write(ffff8000216df5e8,ffff800027fd3a80,ffff800027fd3ad0) at sys_write+0x83 sys/kern/sys_generic.c:295
syscall(ffff800027fd3b50) at syscall+0x446 sys/arch/amd64/amd64/trap.c:599
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x2a6da7360, count: 6
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>
ddb> set $lines = 0
ddb> set $maxwidth = 0
ddb> show panic
*cpu0: uvm_fault(0xffffffff82c19bf0, 0xffff80001b75f0a8, 0, 2) -> d
ddb> trace
ffs2_balloc(fffffd80764c4c38,84000,48c,fffffd807f7d77b8,1,ffff800027fd3658) at ffs2_balloc+0x16c2 sys/ufs/ffs/ffs_balloc.c:747
ffs_write(ffff800027fd36f0) at ffs_write+0x411 sys/ufs/ffs/ffs_vnops.c:346
VOP_WRITE(fffffd805b0ad030,ffff800027fd37a0,3,fffffd807f7d77b8) at VOP_WRITE+0xbf sys/kern/vfs_vops.c:245
ktrwriteraw(ffff8000216df5e8,fffffd805b0ad030,fffffd807f7d77b8,ffff800027fd3868,ffff800027fd3840) at ktrwriteraw+0x13d sys/kern/kern_ktrace.c:660
ktrgenio(ffff8000216df5e8,1,1,ffff8000006c5870,54a8) at ktrgenio+0x27b ktrwrite2 sys/kern/kern_ktrace.c:624 [inline]
ktrgenio(ffff8000216df5e8,1,1,ffff8000006c5870,54a8) at ktrgenio+0x27b sys/kern/kern_ktrace.c:259
dofilewritev(ffff8000216df5e8,1,ffff800027fd39e8,0,ffff800027fd3ad0) at dofilewritev+0x38a sys/kern/sys_generic.c:396
sys_write(ffff8000216df5e8,ffff800027fd3a80,ffff800027fd3ad0) at sys_write+0x83 sys/kern/sys_generic.c:295
syscall(ffff800027fd3b50) at syscall+0x446 sys/arch/amd64/amd64/trap.c:599
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x2a6da7360, count: -9
ddb> show registers
rdi 0
rsi 0
rbp 0xffff800027fd3610
rbx 0x79058 acpi_pdirpa+0x64ebb
rdx 0
rcx 0xffff80001b75f000
rax 0x15
r8 0x4000 __ALIGN_SIZE+0x3000
r9 0
r10 0x65d3782f3f34df10
r11 0x1f941d88e579f1e0
r12 0xfffffd805b0ad030
r13 0xfffffd80764c4c38
r14 0x205800 acpi_pdirpa+0x1f1663
r15 0xfffffd8067c82480
rip 0xffffffff823222b2 ffs2_balloc+0x16c2
cs 0x8
rflags 0x10202 __ALIGN_SIZE+0xf202
rsp 0xffff800027fd3480
ss 0x10
ffs2_balloc+0x16c2: movq %rbx,0(%rcx,%rax,8)
ddb> show proc
PROC (syz-fuzzer) pid=346580 stat=onproc
flags process=2<EXEC> proc=4000001<INKTR,THREAD>
pri=51, usrpri=52, nice=20
forw=0xffffffffffffffff, list=0xffff800021700020,0xffff8000216de038
process=0xffff8000ffff6400 user=0xffff800027fce000, vmspace=0xfffffd807f013440
estcpu=2, cpticks=1, pctcpu=0.39
user=0, sys=1, intr=0
ddb> ps
PID TID PPID UID S FLAGS WAIT COMMAND
61774 255300 89309 0 3 0x80 nanoslp syz-executor.6
61774 18043 89309 0 3 0x4000080 ttyin syz-executor.6
61774 477092 89309 0 3 0x4000080 fsleep syz-executor.6
29809 243846 26597 0 3 0x82 piperd syz-executor.2
85269 522035 26597 0 3 0x82 piperd syz-executor.0
95072 190005 26597 0 3 0x82 piperd syz-executor.7
26270 140842 26597 0 3 0x82 piperd syz-executor.1
67257 181531 26597 0 3 0x82 piperd syz-executor.5
89309 196689 26597 0 3 0x82 nanoslp syz-executor.6
52289 119864 26597 0 2 0x2 syz-executor.4
57379 56098 1 0 3 0x100083 ttyin getty
90400 204378 26597 0 3 0x82 piperd syz-executor.3
34112 241274 0 0 3 0x14200 bored sosplice
26597 309031 57801 0 3 0x82 thrsleep syz-fuzzer
26597 474983 57801 0 3 0x4000082 nanoslp syz-fuzzer
26597 290034 57801 0 3 0x4000082 wait syz-fuzzer
26597 29020 57801 0 3 0x4000082 thrsleep syz-fuzzer
26597 186366 57801 0 3 0x4000082 wait syz-fuzzer
26597 443388 57801 0 3 0x4000082 thrsleep syz-fuzzer
26597 260292 57801 0 3 0x4000082 wait syz-fuzzer
26597 385064 57801 0 3 0x4000082 thrsleep syz-fuzzer
*26597 346580 57801 0 7 0x4000003 syz-fuzzer
26597 388434 57801 0 3 0x4000082 thrsleep syz-fuzzer
26597 273407 57801 0 3 0x4000082 wait syz-fuzzer
26597 138527 57801 0 3 0x4000082 wait syz-fuzzer
26597 19340 57801 0 3 0x4000082 wait syz-fuzzer
26597 409687 57801 0 3 0x4000082 wait syz-fuzzer
26597 349173 57801 0 3 0x4000082 wait syz-fuzzer
57801 119267 2193 0 3 0x10008a sigsusp ksh
2193 203717 3623 0 2 0x9a sshd
3623 360687 1 0 3 0x88 kqread sshd
6141 447525 24882 73 3 0x1100090 kqread syslogd
24882 494970 1 0 3 0x100082 netio syslogd
88689 361984 1 0 3 0x100080 kqread resolvd
92628 370971 15666 77 3 0x100092 kqread dhcpleased
67362 345364 15666 77 3 0x100092 kqread dhcpleased
15666 246806 1 0 3 0x80 kqread dhcpleased
884 254534 0 0 3 0x14200 bored smr
22330 426310 0 0 2 0x14200 zerothread
77634 272034 0 0 3 0x14200 aiodoned aiodoned
32305 446045 0 0 3 0x14200 syncer update
76521 298939 0 0 3 0x14200 cleaner cleaner
49951 77558 0 0 3 0x14200 reaper reaper
37022 497908 0 0 3 0x14200 pgdaemon pagedaemon
81662 161965 0 0 3 0x14200 bored viomb
72287 381934 0 0 3 0x40014200 acpi0 acpi0
52921 337297 0 0 3 0x14200 bored softnet
1091 280855 0 0 3 0x14200 bored softnet
4572 224893 0 0 3 0x14200 bored softnet
49271 338980 0 0 3 0x14200 bored softnet
85825 210893 0 0 3 0x14200 bored systqmp
73810 190622 0 0 3 0x14200 bored systq
40292 337470 0 0 2 0x40014200 softclock
64808 245207 0 0 3 0x40014200 idle0
1 486627 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb> show all locks
No such command
ddb> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim
devbuf 10231 6440K 7266K 78643K 24124 0
pcb 13 24K 28K 78643K 12830 0
rtable 190 16K 17K 78643K 2949 0
ifaddr 74 24K 28K 78643K 1231 0
sysctl 3 1K 1K 78643K 8 0
counters 28 17K 17K 78643K 711 0
ioctlops 0 0K 4K 78643K 2560 0
iov 0 0K 32K 78643K 2754 0
mount 1 1K 1K 78643K 1 0
log 0 0K 0K 78643K 4 0
vnodes 1564 98K 98K 78643K 10790 0
UFS quota 1 32K 32K 78643K 1 0
UFS mount 5 36K 36K 78643K 5 0
shm 2 1K 9K 78643K 133 0
VM map 2 0K 0K 78643K 2 0
sem 18 10K 20K 78643K 1450 0
dirhash 12 2K 2K 78643K 12 0
ACPI 1697 195K 286K 78643K 12548 0
file desc 11 37K 69K 78643K 15010 0
sigio 0 0K 0K 78643K 266 0
proc 65 59K 83K 78643K 2031 0
subproc 104 6K 7K 78643K 523 0
NFS srvsock 1 0K 0K 78643K 1 0
NFS daemon 1 16K 16K 78643K 1 0
ip_moptions 0 0K 0K 78643K 1423 0
in_multi 59 4K 7K 78643K 805 0
ether_multi 1 0K 0K 78643K 108 0
mrt 1 0K 0K 78643K 48 0
ISOFS mount 1 32K 32K 78643K 1 0
MSDOSFS mount 1 16K 16K 78643K 1 0
ttys 259 1155K 1155K 78643K 259 0
exec 0 0K 1K 78643K 2542 0
pfkey data 0 0K 0K 78643K 75 0
tdb 3 0K 0K 78643K 3 0
pagedep 1 8K 8K 78643K 1 0
inodedep 1 32K 32K 78643K 1 0
newblk 1 0K 0K 78643K 1 0
VM swap 8 62K 64K 78643K 10 0
UVM amap 348 95K 112K 78643K 102479 0
UVM aobj 131 8K 8K 78643K 131 0
memdesc 1 4K 4K 78643K 1 0
crypto data 1 1K 1K 78643K 1 0
ip6_options 0 0K 0K 78643K 655 0
NDP 13 0K 1K 78643K 379 0
temp 142 5774K 71307K 78643K 154404 0
kqueue 12 18K 26K 78643K 1242 0
SYN cache 2 16K 16K 78643K 2 0
ddb> show all pools
Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
rtpcb 120 1249 0 1246 19 18 1 3 0 8 0
rtentry 112 757 0 679 4 0 4 4 0 8 0
unpcb 144 47508 0 47495 299 293 6 16 0 8 5
syncache 296 114 0 114 29 29 0 1 0 8 0
tcpqe 32 656 37 656 9 9 0 1 0 8 0
tcpcb 776 7647 0 7637 276 274 2 14 0 8 0
arp 88 99 0 81 1 0 1 1 0 8 0
ipq 40 8 0 8 6 6 0 1 0 8 0
ipqe 40 90 0 90 6 6 0 1 0 8 0
inpcb 336 27823 0 27809 344 337 7 20 0 8 4
nd6 48 144 0 128 1 0 1 1 0 8 0
pkpcb 40 93 0 93 7 7 0 1 0 8 0
kcovpl 48 40 0 32 1 0 1 1 0 8 0
mppekey 1024 7 0 7 2 2 0 1 0 8 0
ppxss 1160 556 0 556 33 33 0 1 0 8 0
pppxif 1360 163 0 163 14 14 0 1 0 8 0
rttmr 136 11 0 11 4 4 0 1 0 8 0
art_heap8 4096 1 0 0 1 0 1 1 0 8 0
art_heap4 256 3070 0 2781 45 19 26 31 0 8 0
art_table 32 3071 0 2781 4 0 4 4 0 8 0
art_node 16 683 0 616 1 0 1 1 0 8 0
sysvmsgpl 40 92 0 86 1 0 1 1 0 8 0
semapl 112 1437 0 1421 1 0 1 1 0 8 0
shmpl 112 128 0 0 4 0 4 4 0 8 0
dirhash 1024 17 0 0 3 0 3 3 0 8 0
dino2pl 256 22508 0 21012 94 0 94 94 0 8 0
ffsino 240 22508 0 21012 89 0 89 89 0 8 0
nchpl 144 42959 0 41326 63 0 63 63 0 8 0
rtmask 32 25 0 25 8 8 0 1 0 8 0
uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0
vnodes 216 5926 0 0 330 0 330 330 0 8 0
namei 1024 158890 0 158890 10 9 1 2 0 8 1
vmpool 664 150 0 150 15 15 0 1 0 8 0
kstatmem 264 572 0 546 11 9 2 3 0 8 0
scsiplug 72 16 0 16 6 6 0 1 0 8 0
scxspl 216 115503 0 115503 29 28 1 8 0 8 1
plimitpl 152 2311 0 2296 1 0 1 1 0 8 0
sigapl 424 15443 0 15404 8 0 8 8 0 8 0
futexpl 64 185399 0 185398 3 2 1 1 0 8 0
knotepl 120 243060 0 242980 95 89 6 11 0 8 0
kqueuepl 184 3502 0 3494 56 55 1 6 0 8 0
pipepl 288 3908 0 3880 104 101 3 10 0 8 0
fdescpl 432 15224 0 15202 4 0 4 4 0 8 0
filepl 120 164138 0 163901 262 247 15 23 0 8 2
lockfpl 104 6848 0 6846 10 9 1 2 0 8 0
lockfspl 48 2018 0 2016 1 0 1 1 0 8 0
sessionpl 144 59 0 43 1 0 1 1 0 8 0
pgrppl 48 160 0 144 1 0 1 1 0 8 0
ucredpl 104 15679 0 15669 1 0 1 1 0 8 0
zombiepl 144 15404 0 15404 7 6 1 1 0 8 1
processpl 1008 15443 0 15404 10 2 8 9 0 8 0
procpl 696 42960 0 42905 38 30 8 10 0 8 0
sosppl 168 177 0 176 16 15 1 1 0 8 0
sockpl 456 76871 0 76835 2238 2207 31 64 0 8 22
mcl64k 65536 645 0 645 41 40 1 1 0 8 1
mcl16k 16384 1159 0 1159 42 41 1 1 0 8 1
mcl12k 12288 878 0 878 42 41 1 1 0 8 1
mcl9k 9216 160 0 160 49 49 0 1 0 8 0
mcl8k 8192 824 0 824 40 39 1 1 0 8 1
mcl4k 4096 1786 0 1786 18 17 1 1 0 8 1
mcl2k2 2112 158 0 158 45 45 0 1 0 8 0
mcl2k 2048 108863 0 108786 81 70 11 29 0 8 0
mtagpl 96 1096 0 1087 15 11 4 10 0 8 1
mbufpl 256 367844 0 367647 739 713 26 83 0 8 2
bufpl 288 26733 0 20312 459 0 459 459 0 8 0
anonpl 24 2998891 0 2983024 296 176 120 137 0 188 0
amapchunkpl 152 291213 0 290591 167 137 30 43 0 158 1
amappl16 200 27159 0 26562 194 160 34 48 0 8 0
amappl15 192 5 0 5 2 2 0 1 0 8 0
amappl14 184 271 0 259 2 1 1 2 0 8 0
amappl13 176 6 0 5 1 0 1 1 0 8 0
amappl12 168 796 0 792 1 0 1 1 0 8 0
amappl11 160 50 0 40 1 0 1 1 0 8 0
amappl10 152 71 0 60 1 0 1 1 0 8 0
amappl9 144 990 0 988 2 1 1 1 0 8 0
amappl8 136 520 0 403 8 3 5 5 0 8 0
amappl7 128 255 0 230 2 0 2 2 0 8 0
amappl6 120 421 0 397 1 0 1 1 0 8 0
amappl5 112 455 0 449 1 0 1 1 0 8 0
amappl4 104 1966 0 1935 2 1 1 2 0 8 0
amappl3 96 45590 0 45550 2 0 2 2 0 8 0
amappl2 88 16192 0 16128 3 1 2 3 0 8 0
amappl1 80 351017 0 350388 24 7 17 22 0 8 0
amappl 88 101267 0 101102 6 1 5 6 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 130 0 0 3 0 3 3 0 8 0
uaddrrnd 24 15374 0 15352 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 15374 0 15352 1 0 1 1 0 8 0
vmmpekpl 168 123662 0 123606 3 0 3 3 0 8 0
vmmpepl 168 1392320 0 1389894 508 371 137 162 0 357 0
vmsppl 272 15373 0 15352 3 1 2 2 0 8 0
rwobjpl 24 373966 0 366223 49 0 49 49 0 8 0
pdppl 4096 30754 0 30704 675 611 64 66 0 8 14
pvpl 32 5615231 0 5594479 597 398 199 253 0 265 0
pmappl 216 15373 0 15352 2 0 2 2 0 8 0
extentpl 40 56 0 38 1 0 1 1 0 8 0
phpool 112 2807 0 2016 25 0 25 25 0 8 0
ddb> machine ddbcpu 0
No such command
ddb> trace
ffs2_balloc(fffffd80764c4c38,84000,48c,fffffd807f7d77b8,1,ffff800027fd3658) at ffs2_balloc+0x16c2 sys/ufs/ffs/ffs_balloc.c:747
ffs_write(ffff800027fd36f0) at ffs_write+0x411 sys/ufs/ffs/ffs_vnops.c:346
VOP_WRITE(fffffd805b0ad030,ffff800027fd37a0,3,fffffd807f7d77b8) at VOP_WRITE+0xbf sys/kern/vfs_vops.c:245
ktrwriteraw(ffff8000216df5e8,fffffd805b0ad030,fffffd807f7d77b8,ffff800027fd3868,ffff800027fd3840) at ktrwriteraw+0x13d sys/kern/kern_ktrace.c:660
ktrgenio(ffff8000216df5e8,1,1,ffff8000006c5870,54a8) at ktrgenio+0x27b ktrwrite2 sys/kern/kern_ktrace.c:624 [inline]
ktrgenio(ffff8000216df5e8,1,1,ffff8000006c5870,54a8) at ktrgenio+0x27b sys/kern/kern_ktrace.c:259
dofilewritev(ffff8000216df5e8,1,ffff800027fd39e8,0,ffff800027fd3ad0) at dofilewritev+0x38a sys/kern/sys_generic.c:396
sys_write(ffff8000216df5e8,ffff800027fd3a80,ffff800027fd3ad0) at sys_write+0x83 sys/kern/sys_generic.c:295
syscall(ffff800027fd3b50) at syscall+0x446 sys/arch/amd64/amd64/trap.c:599
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x2a6da7360, count: -9
ddb> machine ddbcpu 1
No such command
ddb> trace
ffs2_balloc(fffffd80764c4c38,84000,48c,fffffd807f7d77b8,1,ffff800027fd3658) at ffs2_balloc+0x16c2 sys/ufs/ffs/ffs_balloc.c:747
ffs_write(ffff800027fd36f0) at ffs_write+0x411 sys/ufs/ffs/ffs_vnops.c:346
VOP_WRITE(fffffd805b0ad030,ffff800027fd37a0,3,fffffd807f7d77b8) at VOP_WRITE+0xbf sys/kern/vfs_vops.c:245
ktrwriteraw(ffff8000216df5e8,fffffd805b0ad030,fffffd807f7d77b8,ffff800027fd3868,ffff800027fd3840) at ktrwriteraw+0x13d sys/kern/kern_ktrace.c:660
ktrgenio(ffff8000216df5e8,1,1,ffff8000006c5870,54a8) at ktrgenio+0x27b ktrwrite2 sys/kern/kern_ktrace.c:624 [inline]
ktrgenio(ffff8000216df5e8,1,1,ffff8000006c5870,54a8) at ktrgenio+0x27b sys/kern/kern_ktrace.c:259
dofilewritev(ffff8000216df5e8,1,ffff800027fd39e8,0,ffff800027fd3ad0) at dofilewritev+0x38a sys/kern/sys_generic.c:396
sys_write(ffff8000216df5e8,ffff800027fd3a80,ffff800027fd3ad0) at sys_write+0x83 sys/kern/sys_generic.c:295
syscall(ffff800027fd3b50) at syscall+0x446 sys/arch/amd64/amd64/trap.c:599
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x2a6da7360, count: -9


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Jun 18, 2023, 4:00:46 PM6/18/23
to syzkaller-o...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages