syzbot
KASAN: stack-out-of-bounds Read in iov_iter_revert
Status:
upstream: reported C repro on 2021/07/16 11:05
Reported-by: syzbot+6c16be03d2cb50b20a4d@syzkaller.appspotmail.com
First crash: 1848d, last: 1288d
▶
▼
Fix bisection attempts (2)
Sample crash report:
IPVS: ftp: loaded support on port[0] = 21
audit: type=1800 audit(1674780623.111:2): pid=8128 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor193" name="/" dev="fuse" ino=1 res=0
==================================================================
BUG: KASAN: stack-out-of-bounds in iov_iter_revert lib/iov_iter.c:1047 [inline]
BUG: KASAN: stack-out-of-bounds in iov_iter_revert+0x90c/0x9a0 lib/iov_iter.c:996
Read of size 8 at addr ffff8880b168fd10 by task syz-executor193/8127
CPU: 0 PID: 8127 Comm: syz-executor193 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
print_address_description.cold+0x54/0x219 mm/kasan/report.c:256
kasan_report_error.cold+0x8a/0x1b9 mm/kasan/report.c:354
kasan_report mm/kasan/report.c:412 [inline]
__asan_report_load8_noabort+0x88/0x90 mm/kasan/report.c:433
iov_iter_revert lib/iov_iter.c:1047 [inline]
iov_iter_revert+0x90c/0x9a0 lib/iov_iter.c:996
generic_file_read_iter+0x16fb/0x2b60 mm/filemap.c:2369
fuse_file_read_iter+0x198/0x240 fs/fuse/file.c:944
call_read_iter include/linux/fs.h:1815 [inline]
new_sync_read fs/read_write.c:406 [inline]
__vfs_read+0x518/0x750 fs/read_write.c:418
vfs_read+0x194/0x3c0 fs/read_write.c:452
ksys_read+0x12b/0x2a0 fs/read_write.c:579
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f5f87eab169
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 71 15 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f5f87e1a2f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 00007f5f87f3c4e0 RCX: 00007f5f87eab169
RDX: 000000007ffff000 RSI: 0000000020016400 RDI: 0000000000000005
RBP: 00007f5f87f090e4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0030656c69662f2e
R13: 00007f5f87f050d8 R14: 00007f5f87f070e0 R15: 00007f5f87f3c4e8
The buggy address belongs to the page:
page:ffffea0002c5a3c0 count:0 mapcount:0 mapping:0000000000000000 index:0x0
flags: 0xfff00000000000()
raw: 00fff00000000000 0000000000000000 ffffffff02c50101 0000000000000000
raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
Memory state around the buggy address:
ffff8880b168fc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff8880b168fc80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1
>ffff8880b168fd00: f1 f1 f1 00 00 f2 f2 00 00 00 00 00 f2 f2 f2 f2
^
ffff8880b168fd80: f2 00 00 00 00 00 f3 f3 f3 f3 f3 00 00 00 00 00
ffff8880b168fe00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================
* Struck through repros no longer work on HEAD.