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: 1008d, last: 448d
Fix bisection: failed (error log, bisect log)
  
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 964d 981d 20/26 fixed on 2021/11/10 00:50
android-54 KASAN: stack-out-of-bounds Read in iov_iter_revert C 37 1289d 1339d 0/2 auto-obsoleted due to no activity on 2023/04/16 21:56
android-5-10 KASAN: stack-out-of-bounds Read in iov_iter_revert C error 10 754d 906d 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 447d 950d 0/1 upstream: reported C repro on 2021/09/12 17:39
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2022/01/01 11:32 12m bisect fix linux-4.19.y error job log (0)
2021/08/22 15:25 28m bisect fix linux-4.19.y job log (0) log

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

Crashes (26):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/01/27 00:52 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report syz C [disk image] [vmlinux] ci2-linux-4-19 KASAN: stack-out-of-bounds Read in iov_iter_revert
2022/05/30 03:51 linux-4.19.y 3f8a27f9e27b a46af346 .config console log report syz C ci2-linux-4-19 KASAN: stack-out-of-bounds Read in iov_iter_revert
2021/07/23 15:11 linux-4.19.y 4938296e03bd bc5f1d88 .config console log report syz C ci2-linux-4-19 KASAN: stack-out-of-bounds Read in iov_iter_revert
2021/07/16 11:38 linux-4.19.y fcfbdfe9626e f115ae98 .config console log report syz C ci2-linux-4-19 KASAN: stack-out-of-bounds Read in iov_iter_revert
2023/01/27 00:22 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: stack-out-of-bounds Read in iov_iter_revert
2022/08/04 22:08 linux-4.19.y 3f8a27f9e27b 1c9013ac .config console log report info ci2-linux-4-19 KASAN: stack-out-of-bounds Read in iov_iter_revert
2022/07/02 13:38 linux-4.19.y 3f8a27f9e27b 1434eec0 .config console log report info ci2-linux-4-19 KASAN: stack-out-of-bounds Read in iov_iter_revert
2022/05/30 00:36 linux-4.19.y 3f8a27f9e27b a46af346 .config console log report info ci2-linux-4-19 KASAN: stack-out-of-bounds Read in iov_iter_revert
2022/03/07 04:11 linux-4.19.y 3f8a27f9e27b 7bdd8b2c .config console log report info ci2-linux-4-19 KASAN: stack-out-of-bounds Read in iov_iter_revert
2022/03/06 09:59 linux-4.19.y 3f8a27f9e27b 7bdd8b2c .config console log report info ci2-linux-4-19 KASAN: stack-out-of-bounds Read in iov_iter_revert
2021/12/02 10:26 linux-4.19.y 3f8a27f9e27b 61f86278 .config console log report info ci2-linux-4-19 KASAN: stack-out-of-bounds Read in iov_iter_revert
2021/11/28 19:40 linux-4.19.y 3f8a27f9e27b 63eeac02 .config console log report info ci2-linux-4-19 KASAN: stack-out-of-bounds Read in iov_iter_revert
2021/11/26 18:25 linux-4.19.y 3f8a27f9e27b 63eeac02 .config console log report info ci2-linux-4-19 KASAN: stack-out-of-bounds Read in iov_iter_revert
2021/11/25 11:56 linux-4.19.y 3f8a27f9e27b 545ab074 .config console log report info ci2-linux-4-19 KASAN: stack-out-of-bounds Read in iov_iter_revert
2021/11/25 00:49 linux-4.19.y 3f8a27f9e27b 545ab074 .config console log report info ci2-linux-4-19 KASAN: stack-out-of-bounds Read in iov_iter_revert
2021/11/21 21:02 linux-4.19.y 3f8a27f9e27b 4eb20a4e .config console log report info ci2-linux-4-19 KASAN: stack-out-of-bounds Read in iov_iter_revert
2021/11/17 05:04 linux-4.19.y 3f8a27f9e27b cafff8b6 .config console log report info ci2-linux-4-19 KASAN: stack-out-of-bounds Read in iov_iter_revert
2021/11/12 00:22 linux-4.19.y 3f8a27f9e27b 75b04091 .config console log report info ci2-linux-4-19 KASAN: stack-out-of-bounds Read in iov_iter_revert
2021/11/06 15:38 linux-4.19.y 3f8a27f9e27b 4c1be0be .config console log report info ci2-linux-4-19 KASAN: stack-out-of-bounds Read in iov_iter_revert
2021/11/03 10:05 linux-4.19.y 3f8a27f9e27b 17f3edd2 .config console log report info ci2-linux-4-19 KASAN: stack-out-of-bounds Read in iov_iter_revert
2021/11/02 07:41 linux-4.19.y 3f8a27f9e27b 098b5d53 .config console log report info ci2-linux-4-19 KASAN: stack-out-of-bounds Read in iov_iter_revert
2021/10/20 08:35 linux-4.19.y 3f8a27f9e27b 466b7db1 .config console log report info ci2-linux-4-19 KASAN: stack-out-of-bounds Read in iov_iter_revert
2021/10/03 12:38 linux-4.19.y c2276d585654 db0f5787 .config console log report info ci2-linux-4-19 KASAN: stack-out-of-bounds Read in iov_iter_revert
2021/09/26 02:13 linux-4.19.y 2950c9c5e0df 8cac236e .config console log report info ci2-linux-4-19 KASAN: stack-out-of-bounds Read in iov_iter_revert
2021/08/29 08:08 linux-4.19.y e23d55af0e1f be2c130d .config console log report info ci2-linux-4-19 KASAN: stack-out-of-bounds Read in iov_iter_revert
2021/07/16 11:04 linux-4.19.y fcfbdfe9626e f115ae98 .config console log report info ci2-linux-4-19 KASAN: stack-out-of-bounds Read in iov_iter_revert
* Struck through repros no longer work on HEAD.