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

Status: upstream: reported on 2026/06/01 03:40
Reported-by: syzbot+09675e90f1ef60d6ed3d@syzkaller.appspotmail.com
First crash: 111d, last: 1h56m
Similar bugs (2)
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 (2) 17 341 202d 882d 0/3 auto-obsoleted due to no activity on 2026/05/11 16:12
linux-5.15 KASAN: stack-out-of-bounds Read in gfs2_file_read_iter 17 15 1100d 1114d 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_read_iter+0x90c/0xdc0 fs/gfs2/file.c:995
Read of size 8 at addr ffffc900046d7d50 by task syz.3.70/4545

CPU: 0 PID: 4545 Comm: syz.3.70 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Call Trace:
 <TASK>
 dump_stack_lvl+0x188/0x250 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_read_iter+0x90c/0xdc0 fs/gfs2/file.c:995
 call_read_iter include/linux/fs.h:2173 [inline]
 new_sync_read fs/read_write.c:404 [inline]
 vfs_read+0x75e/0xd50 fs/read_write.c:485
 ksys_read+0x153/0x260 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:0x7f51c7ee7159
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 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 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f51c613f028 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 00007f51c816efa0 RCX: 00007f51c7ee7159
RDX: 0000000000002020 RSI: 0000200000003c80 RDI: 0000000000000004
RBP: 00007f51c7f7e06b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f51c816f038 R14: 00007f51c816efa0 R15: 00007ffd2fc41898
 </TASK>


addr ffffc900046d7d50 is located in stack of task syz.3.70/4545 at offset 48 in frame:
 vfs_read+0x0/0xd50

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

Memory state around the buggy address:
 ffffc900046d7c00: 00 00 00 00 00 00 00 f3 f3 f3 f3 f3 00 00 00 00
 ffffc900046d7c80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffffc900046d7d00: 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2 00 00 00 00
                                                 ^
 ffffc900046d7d80: 00 00 f2 f2 f2 f2 00 00 00 00 00 f3 f3 f3 f3 f3
 ffffc900046d7e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================

Crashes (38):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/09/20 22:22 linux-5.15.y 0248c33e835e 853b104b .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
2026/09/08 18:24 linux-5.15.y 0996e0926f6b 243b72f1 .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
2026/09/08 18:24 linux-5.15.y 0996e0926f6b 243b72f1 .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
2026/09/07 23:14 linux-5.15.y 0996e0926f6b 680aa3e1 .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
2026/09/07 23:14 linux-5.15.y 0996e0926f6b 680aa3e1 .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
2026/09/04 19:26 linux-5.15.y 0996e0926f6b f65209a4 .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
2026/09/04 05:29 linux-5.15.y 0996e0926f6b 801f0966 .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
2026/09/04 05:29 linux-5.15.y 0996e0926f6b 801f0966 .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
2026/09/04 05:27 linux-5.15.y 0996e0926f6b 801f0966 .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
2026/09/04 03:25 linux-5.15.y 0996e0926f6b 801f0966 .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
2026/08/31 14:56 linux-5.15.y 28c35638ec51 2f52988a .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
2026/08/31 14:54 linux-5.15.y 28c35638ec51 2f52988a .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
2026/08/27 18:00 linux-5.15.y 4a1eaf96ee5c 69a01293 .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
2026/08/26 18:47 linux-5.15.y 945fa863f02c a2b77b9e .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
2026/08/26 18:46 linux-5.15.y 945fa863f02c a2b77b9e .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
2026/08/25 15:53 linux-5.15.y 945fa863f02c a9a1fc32 .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
2026/08/23 16:00 linux-5.15.y 945fa863f02c 1e72964b .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
2026/08/23 15:58 linux-5.15.y 945fa863f02c 1e72964b .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
2026/08/23 05:20 linux-5.15.y 0eb903b5b519 1e72964b .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
2026/08/21 19:12 linux-5.15.y 0eb903b5b519 1e72964b .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
2026/08/18 06:41 linux-5.15.y aabd761612db 1e72964b .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
2026/08/15 16:05 linux-5.15.y aabd761612db 746171ee .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
2026/08/11 21:02 linux-5.15.y aabd761612db 71790083 .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
2026/07/14 06:26 linux-5.15.y c86c4726e7f0 2130f682 .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
2026/07/14 06:21 linux-5.15.y c86c4726e7f0 2130f682 .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
2026/07/12 17:56 linux-5.15.y c86c4726e7f0 d78ea535 .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
2026/07/11 22:10 linux-5.15.y c86c4726e7f0 d78ea535 .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
2026/07/11 22:08 linux-5.15.y c86c4726e7f0 d78ea535 .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
2026/07/10 22:17 linux-5.15.y c86c4726e7f0 99e64375 .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
2026/07/10 22:16 linux-5.15.y c86c4726e7f0 99e64375 .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
2026/07/07 06:56 linux-5.15.y c86c4726e7f0 8e71ce95 .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
2026/06/22 01:50 linux-5.15.y eceeec79dbc6 43bfcdb0 .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
2026/06/20 07:31 linux-5.15.y eceeec79dbc6 43bfcdb0 .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
2026/06/13 14:02 linux-5.15.y dc027a595035 1d2f3589 .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
2026/06/02 04:51 linux-5.15.y dc027a595035 1095583b .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
2026/06/02 04:51 linux-5.15.y dc027a595035 1095583b .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
2026/06/01 03:42 linux-5.15.y 241d66fa280c 6b4a8443 .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
2026/06/01 03:40 linux-5.15.y 241d66fa280c 6b4a8443 .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
* Struck through repros no longer work on HEAD.