syzbot


KASAN: stack-out-of-bounds Read in gfs2_file_read_iter (2)

Status: upstream: reported on 2024/04/21 05:24
Reported-by: syzbot+0e28304b093273945196@syzkaller.appspotmail.com
First crash: 464d, last: 13h49m
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 KASAN: stack-out-of-bounds Read in gfs2_file_read_iter 17 15 681d 695d 0/3 auto-obsoleted due to no activity on 2023/11/25 16:09

Sample crash report:
==================================================================
BUG: KASAN: stack-out-of-bounds in should_fault_in_pages fs/gfs2/file.c:785 [inline]
BUG: KASAN: stack-out-of-bounds in gfs2_file_direct_read fs/gfs2/file.c:855 [inline]
BUG: KASAN: stack-out-of-bounds in gfs2_file_read_iter+0x447/0xd70 fs/gfs2/file.c:962
Read of size 8 at addr ffffc900039efd50 by task syz.6.815/7115

CPU: 0 PID: 7115 Comm: syz.6.815 Not tainted 5.15.189-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
Call Trace:
 <TASK>
 dump_stack_lvl+0x168/0x230 lib/dump_stack.c:106
 print_address_description+0x60/0x2d0 mm/kasan/report.c:248
 __kasan_report mm/kasan/report.c:434 [inline]
 kasan_report+0xdf/0x130 mm/kasan/report.c:451
 should_fault_in_pages fs/gfs2/file.c:785 [inline]
 gfs2_file_direct_read fs/gfs2/file.c:855 [inline]
 gfs2_file_read_iter+0x447/0xd70 fs/gfs2/file.c:962
 call_read_iter include/linux/fs.h:2166 [inline]
 new_sync_read fs/read_write.c:404 [inline]
 vfs_read+0x725/0xcf0 fs/read_write.c:485
 ksys_read+0x14d/0x250 fs/read_write.c:623
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f4a3c3289a9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f4a3a190038 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 00007f4a3c54ffa0 RCX: 00007f4a3c3289a9
RDX: 0000000000002000 RSI: 0000200000000000 RDI: 0000000000000004
RBP: 00007f4a3c3aad69 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f4a3c54ffa0 R15: 00007ffe56ba2fa8
 </TASK>


addr ffffc900039efd50 is located in stack of task syz.6.815/7115 at offset 48 in frame:
 vfs_read+0x0/0xcf0

this frame has 3 objects:
 [32, 48) 'iov.i'
 [64, 112) 'kiocb.i'
 [144, 184) 'iter.i'

Memory state around the buggy address:
 ffffc900039efc00: 00 00 00 00 00 00 00 f3 f3 f3 f3 f3 00 00 00 00
 ffffc900039efc80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffffc900039efd00: 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2 00 00 00 00
                                                 ^
 ffffc900039efd80: 00 00 f2 f2 f2 f2 00 00 00 00 00 f3 f3 f3 f3 f3
 ffffc900039efe00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================

Crashes (233):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/07/28 23:08 linux-5.15.y c79648372d02 6654ea9c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2025/07/26 17:30 linux-5.15.y c79648372d02 fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2025/07/26 03:54 linux-5.15.y c79648372d02 fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2025/07/21 02:47 linux-5.15.y c79648372d02 7117feec .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2025/07/11 04:25 linux-5.15.y 2f693b607545 3cda49cf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2025/07/10 12:57 linux-5.15.y 3dea0e7f549e 956bd956 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2025/07/03 00:43 linux-5.15.y 3dea0e7f549e bc80e4f0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2025/06/27 04:53 linux-5.15.y 1c700860e8bc 803ce19b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2025/06/05 00:05 linux-5.15.y 1c700860e8bc 6b6b5f21 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2025/06/04 14:57 linux-5.15.y 1c700860e8bc e565f08d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2025/06/04 11:03 linux-5.15.y 98f47d0e9b8c e565f08d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2025/06/03 01:27 linux-5.15.y 98f47d0e9b8c a30356b7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2025/06/02 15:27 linux-5.15.y 98f47d0e9b8c b396b4bf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2025/06/02 11:53 linux-5.15.y 98f47d0e9b8c b396b4bf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2025/06/01 00:08 linux-5.15.y 98f47d0e9b8c 3d2f584d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2025/05/30 07:20 linux-5.15.y 98f47d0e9b8c 3d2f584d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2025/05/28 23:45 linux-5.15.y 98f47d0e9b8c 3d2f584d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2025/04/29 10:24 linux-5.15.y f7347f400572 aeb6ec69 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2025/04/25 00:12 linux-5.15.y f7347f400572 9882047a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2025/04/19 02:15 linux-5.15.y f7347f400572 2a20f901 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2025/03/31 21:28 linux-5.15.y 0c935c049b5c d3999433 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2025/03/16 09:19 linux-5.15.y 0c935c049b5c e2826670 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2025/03/11 09:30 linux-5.15.y c16c81c81336 16256247 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2025/03/05 04:00 linux-5.15.y c16c81c81336 c3901742 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2025/02/21 17:03 linux-5.15.y c16c81c81336 0808a665 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2025/02/16 18:53 linux-5.15.y c16c81c81336 40a34ec9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2025/01/30 15:05 linux-5.15.y 003148680b79 afe4eff5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2025/01/26 13:40 linux-5.15.y 003148680b79 9fbd772e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2025/01/09 06:20 linux-5.15.y 91786f140358 f3558dbf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2025/01/05 08:28 linux-5.15.y 91786f140358 f3558dbf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2025/01/01 10:16 linux-5.15.y 91786f140358 d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2024/12/29 22:55 linux-5.15.y 91786f140358 d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2024/12/22 08:37 linux-5.15.y 91786f140358 d7f584ee .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2024/04/21 05:23 linux-5.15.y c52b9710c83d af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2025/06/19 15:58 linux-5.15.y 1c700860e8bc ed3e87f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2025/05/27 21:16 linux-5.15.y 98f47d0e9b8c 874a1386 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2025/04/30 04:33 linux-5.15.y f7347f400572 85a5a23f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2025/04/28 14:49 linux-5.15.y f7347f400572 c6b4fb39 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2025/04/24 19:04 linux-5.15.y f7347f400572 9882047a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2025/03/26 09:51 linux-5.15.y 0c935c049b5c 89d30d73 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2025/02/21 11:28 linux-5.15.y c16c81c81336 0808a665 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2025/02/21 11:03 linux-5.15.y c16c81c81336 0808a665 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2025/02/01 14:13 linux-5.15.y 003148680b79 aa47157c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2025/01/19 21:24 linux-5.15.y 4735586da88e f2cb035c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
* Struck through repros no longer work on HEAD.