syzbot


KASAN: stack-out-of-bounds Read in gfs2_file_buffered_write

Status: auto-obsoleted due to no activity on 2024/01/09 18:18
Reported-by: syzbot+41d19c977c40cbbc00e4@syzkaller.appspotmail.com
First crash: 587d, last: 386d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 KASAN: stack-out-of-bounds Read in gfs2_file_buffered_write (2) origin:upstream C 5229 3h07m 312d 0/3 upstream: reported C repro on 2024/01/13 21:08

Sample crash report:
gfs2: fsid=syz:syz.0: first mount done, others may mount
==================================================================
BUG: KASAN: stack-out-of-bounds in should_fault_in_pages fs/gfs2/file.c:784 [inline]
BUG: KASAN: stack-out-of-bounds in gfs2_file_buffered_write+0x505/0x850 fs/gfs2/file.c:1069
Read of size 8 at addr ffffc90005527d30 by task syz-executor.3/30411

CPU: 1 PID: 30411 Comm: syz-executor.3 Not tainted 5.15.137-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106
 print_address_description+0x63/0x3b0 mm/kasan/report.c:248
 __kasan_report mm/kasan/report.c:434 [inline]
 kasan_report+0x16b/0x1c0 mm/kasan/report.c:451
 should_fault_in_pages fs/gfs2/file.c:784 [inline]
 gfs2_file_buffered_write+0x505/0x850 fs/gfs2/file.c:1069
 gfs2_file_write_iter+0x4a2/0xf10 fs/gfs2/file.c:1165
 call_write_iter include/linux/fs.h:2103 [inline]
 new_sync_write fs/read_write.c:507 [inline]
 vfs_write+0xacf/0xe50 fs/read_write.c:594
 ksys_write+0x1a2/0x2c0 fs/read_write.c:647
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f9263bb7ae9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f92621390c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f9263cd6f80 RCX: 00007f9263bb7ae9
RDX: 000000000000fea7 RSI: 0000000020000000 RDI: 0000000000000006
RBP: 00007f9263c0347a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f9263cd6f80 R15: 00007ffed87c32e8
 </TASK>


addr ffffc90005527d30 is located in stack of task syz-executor.3/30411 at offset 48 in frame:
 vfs_write+0x0/0xe50

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

Memory state around the buggy address:
 ffffc90005527c00: 00 00 00 f3 f3 f3 f3 f3 00 00 00 00 00 00 00 00
 ffffc90005527c80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffffc90005527d00: f1 f1 f1 f1 00 00 f2 f2 00 00 00 00 00 00 f2 f2
                                     ^
 ffffc90005527d80: f2 f2 00 00 00 00 00 f3 f3 f3 f3 f3 00 00 00 00
 ffffc90005527e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================

Crashes (412):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/10/31 15:10 linux-5.15.y 12952a23a5da 58499c95 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_buffered_write
2023/09/22 00:54 linux-5.15.y 35ecaa3632bf 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_buffered_write
2023/10/20 02:36 linux-5.15.y 00c03985402e a42250d2 .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_buffered_write
2023/10/20 01:12 linux-5.15.y 00c03985402e 42e1d524 .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_buffered_write
2023/10/19 15:43 linux-5.15.y 02e21884dcf2 42e1d524 .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_buffered_write
2023/10/19 12:04 linux-5.15.y 02e21884dcf2 42e1d524 .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_buffered_write
2023/10/17 00:46 linux-5.15.y 02e21884dcf2 342b9c55 .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_buffered_write
2023/10/13 17:18 linux-5.15.y 02e21884dcf2 f757a323 .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_buffered_write
2023/10/13 02:15 linux-5.15.y 02e21884dcf2 6388bc36 .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_buffered_write
2023/10/12 09:01 linux-5.15.y 02e21884dcf2 1b231e3c .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_buffered_write
2023/10/11 04:41 linux-5.15.y 02e21884dcf2 83165b57 .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_buffered_write
2023/10/10 23:24 linux-5.15.y 02e21884dcf2 83165b57 .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_buffered_write
2023/10/10 07:24 linux-5.15.y 1edcec18cfb7 c9be5398 .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_buffered_write
2023/10/10 02:06 linux-5.15.y 1edcec18cfb7 c9be5398 .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_buffered_write
2023/10/09 20:02 linux-5.15.y 1edcec18cfb7 3c53c7d9 .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_buffered_write
2023/10/09 13:50 linux-5.15.y 1edcec18cfb7 3c53c7d9 .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_buffered_write
2023/10/07 10:35 linux-5.15.y 1edcec18cfb7 5e837c76 .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_buffered_write
2023/10/07 05:16 linux-5.15.y 1edcec18cfb7 5e837c76 .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_buffered_write
2023/10/05 22:56 linux-5.15.y b911329317b4 db17ad9f .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_buffered_write
2023/10/04 12:36 linux-5.15.y b911329317b4 b7d7ff54 .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_buffered_write
2023/10/03 04:43 linux-5.15.y b911329317b4 65faba36 .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_buffered_write
2023/10/03 00:39 linux-5.15.y b911329317b4 65faba36 .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_buffered_write
2023/09/29 17:00 linux-5.15.y b911329317b4 8e26a358 .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_buffered_write
2023/09/28 21:11 linux-5.15.y b911329317b4 d265efd8 .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_buffered_write
2023/09/28 17:56 linux-5.15.y b911329317b4 d265efd8 .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_buffered_write
2023/09/28 09:50 linux-5.15.y b911329317b4 c2ab1e5d .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_buffered_write
2023/09/28 05:18 linux-5.15.y b911329317b4 c2ab1e5d .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_buffered_write
2023/09/28 03:53 linux-5.15.y b911329317b4 c2ab1e5d .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_buffered_write
2023/09/27 19:09 linux-5.15.y b911329317b4 2895a507 .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_buffered_write
2023/09/27 16:14 linux-5.15.y b911329317b4 2895a507 .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_buffered_write
2023/09/27 07:45 linux-5.15.y b911329317b4 0b6a67ac .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_buffered_write
2023/09/27 03:19 linux-5.15.y b911329317b4 0b6a67ac .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_buffered_write
2023/09/26 22:01 linux-5.15.y b911329317b4 0b6a67ac .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_buffered_write
2023/09/26 15:54 linux-5.15.y b911329317b4 0b6a67ac .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_buffered_write
2023/09/26 14:12 linux-5.15.y b911329317b4 0b6a67ac .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_buffered_write
2023/09/26 12:42 linux-5.15.y b911329317b4 0b6a67ac .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_buffered_write
2023/09/26 11:37 linux-5.15.y b911329317b4 0b6a67ac .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_buffered_write
2023/09/26 01:18 linux-5.15.y b911329317b4 0b6a67ac .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_buffered_write
2023/09/24 07:52 linux-5.15.y b911329317b4 0b6a67ac .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_buffered_write
2023/09/23 18:05 linux-5.15.y b911329317b4 0b6a67ac .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_buffered_write
2023/09/23 15:28 linux-5.15.y b911329317b4 0b6a67ac .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_buffered_write
2023/09/23 12:58 linux-5.15.y b911329317b4 0b6a67ac .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_buffered_write
2023/09/23 11:50 linux-5.15.y b911329317b4 0b6a67ac .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_buffered_write
2023/09/23 10:29 linux-5.15.y b911329317b4 0b6a67ac .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_buffered_write
2023/04/14 10:25 linux-5.15.y 4fdad925aa1a 3cfcaa1b .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_buffered_write
2023/09/17 16:08 linux-5.15.y aff03380bda4 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: slab-out-of-bounds Read in gfs2_file_buffered_write
* Struck through repros no longer work on HEAD.