syzbot
KASAN: stack-out-of-bounds Read in iov_iter_revert
Status:
auto-obsoleted due to no activity on 2023/04/16 21:56
Reported-by: syzbot+c77ec3164d96c0a029c7@syzkaller.appspotmail.com
First crash: 2179d, last: 2130d
▶
▼
Last patch testing requests (3)
Sample crash report:
BUG: KASAN: stack-out-of-bounds in iov_iter_revert+0x249/0xa60 lib/iov_iter.c:1100
Read of size 8 at addr ffff8881cdf5fcb8 by task syz-executor242/342
CPU: 0 PID: 342 Comm: syz-executor242 Not tainted 5.4.59-syzkaller-00527-g2f4d6c9fd77c #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x14a/0x1ce lib/dump_stack.c:118
print_address_description+0x93/0x620 mm/kasan/report.c:374
__kasan_report+0x16d/0x1e0 mm/kasan/report.c:506
kasan_report+0x36/0x60 mm/kasan/common.c:634
iov_iter_revert+0x249/0xa60 lib/iov_iter.c:1100
generic_file_read_iter+0x1dd5/0x20b0 mm/filemap.c:2308
fuse_cache_read_iter fs/fuse/file.c:1018 [inline]
fuse_file_read_iter+0x3ec/0x4e0 fs/fuse/file.c:1576
call_read_iter include/linux/fs.h:1965 [inline]
new_sync_read fs/read_write.c:414 [inline]
__vfs_read+0x59a/0x710 fs/read_write.c:427
vfs_read+0x166/0x380 fs/read_write.c:461
ksys_read+0x18c/0x2c0 fs/read_write.c:590
do_syscall_64+0xcb/0x150 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x446f79
Code: e8 9c b4 02 00 48 83 c4 18 c3 0f 1f 80 00 00 00 00 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 0f 83 eb 07 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fcff961fd98 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 00000000006dfc48 RCX: 0000000000446f79
RDX: 00000000200041e0 RSI: 00000000200021c0 RDI: 0000000000000006
RBP: 00000000006dfc40 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dfc4c
R13: 0000000020006380 R14: 00000000004b11d0 R15: 00000000004af1c8
The buggy address belongs to the page:
page:ffffea000737d7c0 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0
flags: 0x8000000000000000()
raw: 8000000000000000 0000000000000000 ffffea000737d7c8 0000000000000000
raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
addr ffff8881cdf5fcb8 is located in stack of task syz-executor242/342 at offset 24 in frame:
__vfs_read+0x0/0x710 fs/read_write.c:39
this frame has 3 objects:
[32, 48) 'iov.i'
[64, 112) 'kiocb.i'
[144, 184) 'iter.i'
Memory state around the buggy address:
ffff8881cdf5fb80: 00 00 00 00 00 00 00 00 00 f3 f3 f3 f3 f3 f3 f3
ffff8881cdf5fc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff8881cdf5fc80: 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2 00 00 00 00
^
ffff8881cdf5fd00: 00 00 f2 f2 f2 f2 00 00 00 00 00 f3 f3 f3 f3 f3
ffff8881cdf5fd80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================
* Struck through repros no longer work on HEAD.