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: 1556d, last: 1507d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KASAN: stack-out-of-bounds Read in iov_iter_revert fs io-uring C error 14 1182d 1198d 20/28 fixed on 2021/11/10 00:50
linux-4.19 KASAN: stack-out-of-bounds Read in iov_iter_revert C error 26 666d 1226d 0/1 upstream: reported C repro on 2021/07/16 11:05
android-5-10 KASAN: stack-out-of-bounds Read in iov_iter_revert C error 10 972d 1124d 0/2 closed as invalid on 2022/04/06 16:19
linux-4.14 KASAN: stack-out-of-bounds Read in iov_iter_revert xfs C error 8 665d 1167d 0/1 upstream: reported C repro on 2021/09/12 17:39
Last patch testing requests (3)
Created Duration User Patch Repo Result
2023/04/16 21:40 15m retest repro android12-5.4 OK log
2023/04/16 20:40 14m retest repro android12-5.4 OK log
2023/04/16 19:40 28m retest repro android12-5.4 OK log

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
==================================================================

Crashes (37):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/08/23 01:25 https://android.googlesource.com/kernel/common android-5.4 2f4d6c9fd77c 1da71ab0 .config console log report syz C ci2-android-5-4-kasan
2020/08/19 17:57 https://android.googlesource.com/kernel/common android-5.4 010ff9a0f65f db787902 .config console log report syz C ci2-android-5-4-kasan
2020/08/19 17:36 https://android.googlesource.com/kernel/common android-5.4 010ff9a0f65f db787902 .config console log report syz C ci2-android-5-4-kasan
2020/10/07 21:05 android12-5.4 489646b879ed 1880b4a9 .config console log report info ci2-android-5-4-kasan
2020/10/01 19:55 android12-5.4 2a7d52383a14 4103fce0 .config console log report info ci2-android-5-4-kasan
2020/10/01 14:55 android12-5.4 2a7d52383a14 4103fce0 .config console log report info ci2-android-5-4-kasan
2020/09/30 03:29 android12-5.4 6fa60aa03b21 5abc3f1a .config console log report info ci2-android-5-4-kasan
2020/09/28 17:19 android12-5.4 14bc969ca0c4 6bfdbe89 .config console log report info ci2-android-5-4-kasan
2020/09/26 22:37 https://android.googlesource.com/kernel/common android-5.4 63d1c2f0b547 2d5ea0cb .config console log report info ci2-android-5-4-kasan
2020/09/26 04:18 https://android.googlesource.com/kernel/common android-5.4 63d1c2f0b547 4a006f63 .config console log report info ci2-android-5-4-kasan
2020/09/26 00:28 https://android.googlesource.com/kernel/common android-5.4 63d1c2f0b547 4a006f63 .config console log report info ci2-android-5-4-kasan
2020/09/25 21:33 https://android.googlesource.com/kernel/common android-5.4 63d1c2f0b547 4a006f63 .config console log report info ci2-android-5-4-kasan
2020/09/25 02:50 https://android.googlesource.com/kernel/common android-5.4 63d1c2f0b547 54289b08 .config console log report info ci2-android-5-4-kasan
2020/09/24 07:37 https://android.googlesource.com/kernel/common android-5.4 63d1c2f0b547 54289b08 .config console log report info ci2-android-5-4-kasan
2020/09/22 16:03 https://android.googlesource.com/kernel/common android-5.4 63d1c2f0b547 3e8f6c27 .config console log report info ci2-android-5-4-kasan
2020/09/21 06:20 https://android.googlesource.com/kernel/common android-5.4 63d1c2f0b547 9564d2e9 .config console log report info ci2-android-5-4-kasan
2020/09/20 22:05 https://android.googlesource.com/kernel/common android-5.4 63d1c2f0b547 9564d2e9 .config console log report info ci2-android-5-4-kasan
2020/09/12 17:42 https://android.googlesource.com/kernel/common android-5.4 61eab9854560 21d289c2 .config console log report ci2-android-5-4-kasan
2020/09/12 02:32 https://android.googlesource.com/kernel/common android-5.4 e1c9ea5fd907 79fb24e2 .config console log report ci2-android-5-4-kasan
2020/09/07 10:18 https://android.googlesource.com/kernel/common android-5.4 0ef1db7b69dd abf9ba4f .config console log report ci2-android-5-4-kasan
2020/09/07 08:42 https://android.googlesource.com/kernel/common android-5.4 0ef1db7b69dd abf9ba4f .config console log report ci2-android-5-4-kasan
2020/09/06 10:34 https://android.googlesource.com/kernel/common android-5.4 0ef1db7b69dd abf9ba4f .config console log report ci2-android-5-4-kasan
2020/08/31 11:59 https://android.googlesource.com/kernel/common android-5.4 ebd04e3463fb d5a3ae1f .config console log report ci2-android-5-4-kasan
2020/08/31 06:08 https://android.googlesource.com/kernel/common android-5.4 e15cc541b749 d5a3ae1f .config console log report ci2-android-5-4-kasan
2020/08/31 03:26 https://android.googlesource.com/kernel/common android-5.4 e15cc541b749 d5a3ae1f .config console log report ci2-android-5-4-kasan
2020/08/30 19:37 https://android.googlesource.com/kernel/common android-5.4 e15cc541b749 d5a3ae1f .config console log report ci2-android-5-4-kasan
2020/08/26 07:01 https://android.googlesource.com/kernel/common android-5.4 a254a08c1327 344da168 .config console log report ci2-android-5-4-kasan
2020/08/25 14:40 https://android.googlesource.com/kernel/common android-5.4 931718fa65fe 344da168 .config console log report ci2-android-5-4-kasan
2020/08/25 14:11 https://android.googlesource.com/kernel/common android-5.4 931718fa65fe 344da168 .config console log report ci2-android-5-4-kasan
2020/08/25 14:04 https://android.googlesource.com/kernel/common android-5.4 931718fa65fe 344da168 .config console log report ci2-android-5-4-kasan
2020/08/25 06:47 https://android.googlesource.com/kernel/common android-5.4 8c7bf5fe0edb 344da168 .config console log report ci2-android-5-4-kasan
2020/08/25 06:11 https://android.googlesource.com/kernel/common android-5.4 8c7bf5fe0edb 344da168 .config console log report ci2-android-5-4-kasan
2020/08/25 05:47 https://android.googlesource.com/kernel/common android-5.4 8c7bf5fe0edb 344da168 .config console log report ci2-android-5-4-kasan
2020/08/24 03:11 https://android.googlesource.com/kernel/common android-5.4 d457f47f3685 cef5ae68 .config console log report ci2-android-5-4-kasan
2020/08/23 13:47 https://android.googlesource.com/kernel/common android-5.4 2f4d6c9fd77c a6d5f3ad .config console log report ci2-android-5-4-kasan
2020/08/21 09:42 https://android.googlesource.com/kernel/common android-5.4 17245be70d1d 1d75fe45 .config console log report ci2-android-5-4-kasan
2020/08/20 14:58 https://android.googlesource.com/kernel/common android-5.4 a2bf50800d51 ed282a3a .config console log report ci2-android-5-4-kasan
* Struck through repros no longer work on HEAD.