Hello,
syzbot found the following issue on:
HEAD commit: 2f434a4256f3 Bump version to 9.1
git tree: openbsd
console output:
https://syzkaller.appspot.com/x/log.txt?x=14c83752580000
kernel config:
https://syzkaller.appspot.com/x/.config?x=7058272de1526588
dashboard link:
https://syzkaller.appspot.com/bug?extid=27c62742ccfde7447505
Unfortunately, I don't have any reproducer for this issue yet.
Downloadable assets:
disk image:
https://storage.googleapis.com/syzbot-assets/1a8635f37a45/disk-2f434a42.raw.xz
bsd.gdb:
https://storage.googleapis.com/syzbot-assets/2168916421f6/bsd-2f434a42.gdb.xz
kernel image:
https://storage.googleapis.com/syzbot-assets/a7dab5fe6953/kernel-2f434a42.xz
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by:
syzbot+27c627...@syzkaller.appspotmail.com
uvm_fault(0xffffffff83a06b78, 0xffff8000288921a0, 0, 1) -> d
kernel: page fault trap, code=0
Stopped at ffs2_balloc+0xa0d: movq 0(%rcx,%rax,8),%r14
TID PID UID PRFLAGS PFLAGS CPU COMMAND
ffs2_balloc(fffffd806f107c10,100140,40,fffffd80097fd410,1,ffff8000333c1688) at ffs2_balloc+0xa0d sys/ufs/ffs/ffs_balloc.c:614
ffs_write(ffff8000333c1710) at ffs_write+0x4f9 sys/ufs/ffs/ffs_vnops.c:345
VOP_WRITE(fffffd805f28c368,ffff8000333c17a8,23,fffffd80097fd410) at VOP_WRITE+0x101 sys/kern/vfs_vops.c:245
vn_rdwr(1,fffffd805f28c368,ffff8000333c18e0,40,0,1,141da7e30c62b0ae,0,1008,40) at vn_rdwr+0x12d sys/kern/vfs_vnops.c:324
acct_process(ffff8000ffffd230) at acct_process+0x7a2 sys/kern/kern_acct.c:245
exit1(ffff8000ffffd230,0,0,1) at exit1+0x5c4 sys/kern/kern_exit.c:228
sys_exit(ffff8000ffffd230,ffff8000333c1b20,ffff8000333c1a70) at sys_exit+0x1a sys/kern/kern_exit.c:-1
syscall(ffff8000333c1b20) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline]
syscall(ffff8000333c1b20) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:783
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7c6118769960, 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{0}>
ddb{0}> set $lines = 0
ddb{0}> set $maxwidth = 0
ddb{0}> show panic
*cpu0: uvm_fault(0xffffffff83a06b78, 0xffff8000288921a0, 0, 1) -> d
ddb{0}> trace
ffs2_balloc(fffffd806f107c10,100140,40,fffffd80097fd410,1,ffff8000333c1688) at ffs2_balloc+0xa0d sys/ufs/ffs/ffs_balloc.c:614
ffs_write(ffff8000333c1710) at ffs_write+0x4f9 sys/ufs/ffs/ffs_vnops.c:345
VOP_WRITE(fffffd805f28c368,ffff8000333c17a8,23,fffffd80097fd410) at VOP_WRITE+0x101 sys/kern/vfs_vops.c:245
vn_rdwr(1,fffffd805f28c368,ffff8000333c18e0,40,0,1,141da7e30c62b0ae,0,1008,40) at vn_rdwr+0x12d sys/kern/vfs_vnops.c:324
acct_process(ffff8000ffffd230) at acct_process+0x7a2 sys/kern/kern_acct.c:245
exit1(ffff8000ffffd230,0,0,1) at exit1+0x5c4 sys/kern/kern_exit.c:228
sys_exit(ffff8000ffffd230,ffff8000333c1b20,ffff8000333c1a70) at sys_exit+0x1a sys/kern/kern_exit.c:-1
syscall(ffff8000333c1b20) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline]
syscall(ffff8000333c1b20) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:783
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7c6118769960, count: -9
ddb{0}> show registers
rdi 0
rsi 0
rbp 0xffff8000333c1630
rbx 0
rdx 0
rcx 0xffff800028892000
rax 0x34
r8 0xffffffffffffffff
r9 0xffff8000333c1688
r10 0x78231bc66bd04f8b
r11 0x13ac590e5ae97ec6
r12 0x1
r13 0xffff800000c31800
r14 0xffff8000333c14c0
r15 0xfffffd805ffc2a10
rip 0xffffffff82c7da2d ffs2_balloc+0xa0d
cs 0x8
rflags 0x10246 __ALIGN_SIZE+0xf246
rsp 0xffff8000333c14b0
ss 0
ffs2_balloc+0xa0d: movq 0(%rcx,%rax,8),%r14
ddb{0}> show proc
PROC (syz-executor) tid=53767 pid=95711 tcnt=0 stat=onproc
flags process=1008<EXITING,SINGLEEXIT> proc=2000<WEXIT>
runpri=16, usrpri=50, slppri=16, nice=20
wchan=0x0, wmesg=, ps_single=0xffff8000ffffd230 scnt=-1 ecnt=1
forw=0xffffffffffffffff, list=0xffff8000333c2fb8,0xffffffff83987348
process=0xffff800037bc6b70 user=0xffff8000333bc000, vmspace=0xfffffd806c0b2b90
estcpu=36, cpticks=3, pctcpu=0.0, user=0, sys=1, intr=0
ddb{0}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
69605 481461 24913 0 2 0 syz-executor
69605 117676 24913 0 3 0x4000080 fsleep syz-executor
64 186394 69128 0 2 0 syz-executor
64 493628 69128 0 3 0x4000080 fsleep syz-executor
23434 348426 68306 0 2 0 syz-executor
23434 213336 68306 0 3 0x4000080 fsleep syz-executor
23434 256017 68306 0 3 0x4000080 fsleep syz-executor
5449 172913 27235 0 2 0 syz-executor
5449 193826 27235 0 3 0x4000080 fsleep syz-executor
5449 420198 27235 0 3 0x4000080 fsleep syz-executor
30776 65437 74096 0 2 0 syz-executor
30776 137159 74096 0 3 0x4000080 fsleep syz-executor
39117 422411 57156 0 2 0 syz-executor
39117 522417 57156 0 3 0x4000080 bell syz-executor
39117 105960 57156 0 3 0x4000080 bell syz-executor
39117 377861 57156 0 2 0x4000000 syz-executor
38600 464209 0 0 3 0x14200 acct acct
69128 522933 96059 0 2 0xc82 syz-executor
68306 41000 96059 0 2 0xc82 syz-executor
27235 220681 96059 0 3 0x82 nanoslp syz-executor
43906 74865 1 0 3 0x100083 ttyopn getty
77170 228004 36871 0 3 0x100082 sbwait arp
36871 138883 1 0 3 0x10008a sigsusp sh
96541 512234 96059 0 3 0x82 nanoslp syz-executor
24913 339541 96059 0 2 0xc82 syz-executor
74096 29639 96059 0 3 0x82 nanoslp syz-executor
57156 78176 96059 0 3 0x82 nanoslp syz-executor
96059 344985 74273 0 3 0x82 wait syz-executor
74273 204258 1765 0 3 0x10008a sigsusp ksh
1765 497013 15195 0 3 0x98 kqread sshd-session
15195 231728 75266 0 3 0x92 kqread sshd-session
75266 320889 1 0 3 0x88 kqread sshd
64636 40071 70672 74 3 0x1100092 bpf pflogd
70672 355765 1 0 3 0x80 sbwait pflogd
88632 134774 31062 73 3 0x1100090 kqread syslogd
31062 462808 1 0 3 0x100082 sbwait syslogd
90416 402411 1 0 3 0x100080 kqread resolvd
46963 375969 93577 77 3 0x100092 kqread dhcpleased
29126 357752 93577 77 3 0x100092 kqread dhcpleased
93577 157824 1 0 3 0x80 kqread dhcpleased
60041 88700 0 0 3 0x14200 bored smr
44831 157720 0 0 2 0x14200 zerothread
97858 331301 0 0 3 0x14200 aiodoned aiodoned
33658 351527 0 0 3 0x14200 syncer update
79858 38448 0 0 3 0x14200 cleaner cleaner
39140 379640 0 0 3 0x14200 reaper reaper
84415 339468 0 0 3 0x14200 pgdaemon pagedaemon
50561 226915 0 0 3 0x14200 bored viomb
83210 319245 0 0 3 0x40014200 acpi0 acpi0
3727 343386 0 0 7 0x40014200 idle1
35094 428693 0 0 3 0x14200 bored softnet1
40346 499971 0 0 3 0x14200 bored softnet0
66561 235645 0 0 3 0x14200 bored systqmp
41792 445066 0 0 3 0x14200 bored systq
43104 262818 0 0 3 0x14200 tmoslp softclockmp
45611 105280 0 0 3 0x40014200 tmoslp softclock
54053 286283 0 0 3 0x40014200 idle0
1 361517 0 0 3 0x80082 wait init
0 0 -1 0 3 0x10010200 scheduler swapper
ddb{0}> show all locks
ddb{0}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim
devbuf 11071 12089K 12411K 166960K 13874 0
pcb 17 12K 12K 166960K 228 0
rtable 128 5K 8K 166960K 598 0
pf 33 17K 23K 166960K 196 0
ifaddr 25 4K 7K 166960K 100 0
ifgroup 46 2K 2K 166960K 185 0
sysctl 3 1K 9K 166960K 12 0
counters 64 36K 37K 166960K 152 0
ioctlops 0 0K 4K 166960K 1668 0
iov 0 0K 28K 166960K 57 0
mount 1 1K 1K 166960K 1 0
log 0 0K 0K 166960K 4 0
vnodes 1291 81K 81K 166960K 2678 0
UFS quota 1 32K 32K 166960K 1 0
UFS mount 5 36K 36K 166960K 5 0
shm 2 20K 24K 166960K 13 0
VM map 2 1K 1K 166960K 2 0
sem 20 16K 16K 166960K 56 0
dirhash 12 2K 2K 166960K 33 0
ACPI 1692 195K 286K 166960K 12470 0
file desc 18 65K 236K 166960K 3563 0
sigio 0 0K 0K 166960K 34 0
proc 73 115K 164K 166960K 801 0
subproc 81 5K 5K 166960K 100 0
NFS srvsock 1 0K 0K 166960K 1 0
NFS daemon 1 16K 16K 166960K 1 0
ip_moptions 0 0K 0K 166960K 208 0
in_multi 36 2K 6K 166960K 223 0
ether_multi 1 0K 0K 166960K 52 0
mrt 1 0K 0K 166960K 54 0
ISOFS mount 1 32K 32K 166960K 1 0
MSDOSFS mount 1 16K 16K 166960K 1 0
ttys 121 546K 546K 166960K 121 0
exec 0 0K 1K 166960K 605 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 251 162K 175K 166960K 30391 0
UVM aobj 8 2K 2K 166960K 10 0
pinsyscall 45 90K 104K 166960K 4757 0
memdesc 1 4K 4K 166960K 1 0
crypto data 1 1K 1K 166960K 1 0
ip6_options 0 0K 0K 166960K 82 0
NDP 9 0K 1K 166960K 73 0
temp 76 9088K 9342K 166960K 101075 0
kqueue 14 22K 26K 166960K 337 0
SYN cache 2 16K 16K 166960K 2 0
ddb{0}> 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 126 0 122 1 0 1 1 0 8 0
rtentry 176 170 0 122 5 2 3 5 0 8 0
unpcb 144 785 0 766 1 0 1 1 0 8 0
syncache 336 3 0 3 1 1 0 1 0 8 0
tcpcb 736 328 0 324 1 0 1 1 0 8 0
arp 136 33 0 24 1 0 1 1 0 8 0
inpcb 328 999 0 992 2 1 1 2 0 8 0
nd6 152 30 0 21 1 0 1 1 0 8 0
pkpcb 40 3 0 3 2 2 0 1 0 8 0
kcovpl 48 11 0 2 1 0 1 1 0 8 0
ppxss 1192 24 0 24 3 2 1 1 0 8 1
pfstscr 40 2 0 2 1 1 0 1 0 8 0
pffrag 232 11 0 5 1 0 1 1 0 482 0
pffrnode 88 11 0 5 1 0 1 1 0 8 0
pffrent 40 16 0 10 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
pfrktable 1344 6 0 5 1 0 1 1 0 8 0
pfsrclim 320 3 0 3 2 2 0 1 0 8 0
pfanchor 1288 3 0 1 1 0 1 1 0 8 0
pftag 88 1 0 0 1 0 1 1 0 8 0
pfstitem 24 65 0 39 1 0 1 1 0 8 0
pfstkey 128 71 0 44 2 0 2 2 0 8 0
pfstate 448 67 0 42 4 0 4 4 0 8 0
pfrule 1360 36 0 30 2 1 1 2 0 8 0
art_heap8 4096 4 0 1 4 1 3 4 0 8 0
art_heap4 256 621 0 448 29 14 15 26 0 8 1
art_table 40 625 0 449 5 2 3 5 0 8 0
art_node 32 169 0 129 1 0 1 1 0 8 0
sysvmsgpl 40 27 0 8 1 0 1 1 0 8 0
semupl 112 6 0 6 4 3 1 1 0 8 1
semapl 112 45 0 27 1 0 1 1 0 8 0
shmpl 112 7 0 2 1 0 1 1 0 8 0
dirhash 1024 31 0 14 3 0 3 3 0 8 0
dino2pl 256 6881 0 5423 92 0 92 92 0 8 0
ffsino 296 6881 0 5423 114 0 114 114 0 8 0
nchpl 144 10967 0 9261 64 0 64 64 0 8 0
vnodes 216 5926 0 0 330 0 330 330 0 8 0
namei 1024 28161 0 28161 3 2 1 2 0 8 1
percpumem 16 91 0 44 1 0 1 1 0 8 0
pfiaddrpl 120 1 0 1 1 1 0 1 0 8 0
kstatmem 264 110 0 88 3 1 2 3 0 8 0
acpiwqpl 32 3 0 3 1 0 1 1 1 8 1
scsiplug 72 16 0 16 4 3 1 1 0 8 1
scxspl 216 37641 0 37641 11 10 1 8 1 8 1
plimitpl 152 293 0 274 1 0 1 1 0 8 0
sigapl 424 3859 0 3809 7 1 6 7 0 8 0
knotepl 120 617 0 0 17 0 17 17 0 8 0
kqueuepl 224 331 0 320 1 0 1 1 0 8 0
pipepl 344 167 0 137 4 1 3 3 0 8 0
fdescpl 528 3835 0 3803 3 0 3 3 0 8 0
filepl 160 10821 0 10589 11 0 11 11 0 8 0
lockfpl 104 734 0 732 1 0 1 1 0 8 0
lockfspl 48 300 0 298 1 0 1 1 0 8 0
sessionpl 144 90 0 81 1 0 1 1 0 8 0
pgrppl 48 112 0 94 1 0 1 1 0 8 0
ucredpl 104 2708 0 2694 1 0 1 1 0 8 0
zombiepl 144 3811 0 3809 2 1 1 1 0 8 0
processpl 1232 3859 0 3809 5 0 5 5 0 8 0
procpl 664 7594 0 7534 6 0 6 6 0 8 0
sockpl 752 1935 0 1905 4 0 4 4 0 8 1
mcl64k 65536 12 0 0 2 0 2 2 0 8 0
mcl16k 16384 17 0 0 3 0 3 3 0 8 0
mcl12k 12288 12 0 0 2 0 2 2 0 8 0
mcl9k 9216 6 0 0 1 0 1 1 0 8 0
mcl8k 8192 13 0 0 2 0 2 2 0 8 0
mcl4k 4096 108 0 0 14 0 14 14 0 8 0
mcl2k2 2112 2 0 0 1 0 1 1 0 8 0
mcl2k 2048 26 0 0 4 0 4 4 0 8 0
mtagpl 96 3 0 0 1 0 1 1 0 8 0
mbufpl 256 228 0 0 13 0 13 13 0 8 0
bufpl 280 11300 0 5170 438 0 438 438 0 8 0
anonpl 32 9658 0 0 78 0 78 78 0 246 0
amapchunkpl 152 103410 0 102774 40 14 26 27 0 158 0
amappl16 200 9158 0 9104 52 34 18 18 0 8 14
amappl15 192 3 0 3 1 1 0 1 0 8 0
amappl14 184 462 0 460 2 1 1 1 0 8 0
amappl13 176 127 0 114 1 0 1 1 0 8 0
amappl12 168 4103 0 4071 2 0 2 2 0 8 0
amappl11 160 11 0 11 2 2 0 1 0 8 0
amappl10 152 92 0 78 1 0 1 1 0 8 0
amappl9 144 264 0 264 2 2 0 1 0 8 0
amappl8 136 110 0 108 1 0 1 1 0 8 0
amappl7 128 204 0 190 1 0 1 1 0 8 0
amappl6 120 188 0 186 2 1 1 1 0 8 0
amappl5 112 89 0 79 1 0 1 1 0 8 0
amappl4 104 300 0 281 1 0 1 1 0 8 0
amappl3 96 22909 0 22788 4 0 4 4 0 8 0
amappl2 88 537 0 477 2 0 2 2 0 8 0
amappl1 80 23119 0 22484 16 1 15 15 0 8 0
amappl 88 29449 0 29274 5 0 5 5 0 92 0
uvmvnodes 80 170 0 0 4 0 4 4 0 8 0
dma65536 65536 5 0 5 3 3 0 1 0 8 0
dma32768 32768 4 0 4 2 1 1 1 0 8 1
dma16384 16384 1 0 1 1 0 1 1 0 8 1
dma4096 4096 1 0 1 1 1 0 1 0 8 0
dma2048 2048 8 0 8 3 2 1 1 0 8 1
dma1024 1024 3 0 2 1 0 1 1 0 8 0
dma256 256 13 0 13 5 5 0 1 0 8 0
dma128 128 262 0 262 4 3 1 1 0 8 1
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 21 0 20 1 0 1 1 0 8 0
aobjpl 72 9 0 2 1 0 1 1 0 8 0
uaddrrnd 24 3835 0 3802 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 3835 0 3802 1 0 1 1 0 8 0
vmmpekpl 168 24196 0 24142 3 0 3 3 0 8 0
vmmpepl 168 228013 0 225989 116 15 101 101 0 357 9
vmsppl 488 3834 0 3802 5 0 5 5 0 8 0
rwobjpl 80 51366 0 50188 34 4 30 30 0 8 1
pdppl 4096 7677 0 7604 111 36 75 85 0 8 2
pvpl 32 17882 0 0 144 0 144 144 0 265 0
pmappl 256 3834 0 3802 3 0 3 3 0 8 0
extentpl 40 45 0 27 1 0 1 1 0 8 0
phpool 112 307 0 67 8 0 8 8 0 8 0
ddb{0}> machine ddbcpu 0
Invalid cpu 0
ddb{0}> trace
ffs2_balloc(fffffd806f107c10,100140,40,fffffd80097fd410,1,ffff8000333c1688) at ffs2_balloc+0xa0d sys/ufs/ffs/ffs_balloc.c:614
ffs_write(ffff8000333c1710) at ffs_write+0x4f9 sys/ufs/ffs/ffs_vnops.c:345
VOP_WRITE(fffffd805f28c368,ffff8000333c17a8,23,fffffd80097fd410) at VOP_WRITE+0x101 sys/kern/vfs_vops.c:245
vn_rdwr(1,fffffd805f28c368,ffff8000333c18e0,40,0,1,141da7e30c62b0ae,0,1008,40) at vn_rdwr+0x12d sys/kern/vfs_vnops.c:324
acct_process(ffff8000ffffd230) at acct_process+0x7a2 sys/kern/kern_acct.c:245
exit1(ffff8000ffffd230,0,0,1) at exit1+0x5c4 sys/kern/kern_exit.c:228
sys_exit(ffff8000ffffd230,ffff8000333c1b20,ffff8000333c1a70) at sys_exit+0x1a sys/kern/kern_exit.c:-1
syscall(ffff8000333c1b20) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline]
syscall(ffff8000333c1b20) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:783
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7c6118769960, count: -9
ddb{0}> machine ddbcpu 1
Stopped at x86_ipi_db+0x27: addq $0x8,%rsp
x86_ipi_db(ffff8000299bdff0) 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
acpicpu_idle() at acpicpu_idle+0x457 sys/dev/acpi/acpicpu_x86.c:1224
sched_idle(ffff8000299bdff0) at sched_idle+0x391 sys/kern/kern_sched.c:191
end trace frame: 0x0, count: 10
ddb{1}> trace
x86_ipi_db(ffff8000299bdff0) 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
acpicpu_idle() at acpicpu_idle+0x457 sys/dev/acpi/acpicpu_x86.c:1224
sched_idle(ffff8000299bdff0) at sched_idle+0x391 sys/kern/kern_sched.c:191
end trace frame: 0x0, count: -5
---
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.
If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title
If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)
If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report
If you want to undo deduplication, reply with:
#syz undup