syzbot


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

Status: upstream: reported C repro on 2024/01/13 21:08
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+43147f1cd55d15dfbf7d@syzkaller.appspotmail.com
First crash: 304d, last: 9h16m
Bug presence (1)
Date Name Commit Repro Result
2024/04/12 upstream (ToT) 586b5dfb51b9 C [report] WARNING in __folio_mark_dirty
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 412 378d 578d 0/3 auto-obsoleted due to no activity on 2024/01/09 18:18

Sample crash report:
gfs2: fsid=nobarrier.0: first mount done, others may mount
gfs2: fsid=nobarrier.0: found 1 quota changes
==================================================================
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+0x4c8/0x874 fs/gfs2/file.c:1069
Read of size 8 at addr ffff80001c9c6fb0 by task syz-executor645/3965

CPU: 1 PID: 3965 Comm: syz-executor645 Not tainted 5.15.162-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
Call trace:
 dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152
 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106
 print_address_description+0x7c/0x3f0 mm/kasan/report.c:248
 __kasan_report mm/kasan/report.c:434 [inline]
 kasan_report+0x174/0x1e4 mm/kasan/report.c:451
 __asan_report_load8_noabort+0x44/0x50 mm/kasan/report_generic.c:309
 should_fault_in_pages fs/gfs2/file.c:784 [inline]
 gfs2_file_buffered_write+0x4c8/0x874 fs/gfs2/file.c:1069
 gfs2_file_write_iter+0x3b8/0xc80 fs/gfs2/file.c:1165
 __kernel_write+0x488/0x8b0 fs/read_write.c:539
 __dump_emit+0x200/0x338 fs/coredump.c:875
 dump_emit+0x288/0x36c fs/coredump.c:912
 elf_core_dump+0x2598/0x3640 fs/binfmt_elf.c:2237
 do_coredump+0x12c8/0x2890 fs/coredump.c:826
 get_signal+0x3dc/0x1550 kernel/signal.c:2875
 do_signal arch/arm64/kernel/signal.c:890 [inline]
 do_notify_resume+0x320/0x32b8 arch/arm64/kernel/signal.c:943
 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:133 [inline]
 exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline]
 el0_da+0x118/0x20c arch/arm64/kernel/entry-common.c:495
 el0t_64_sync_handler+0xc0/0xe4 arch/arm64/kernel/entry-common.c:629
 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584


addr ffff80001c9c6fb0 is located in stack of task syz-executor645/3965 at offset 48 in frame:
 new_sync_read fs/read_write.c:405 [inline]
 __kernel_write+0x0/0x8b0 fs/read_write.c:485

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

Memory state around the buggy address:
 ffff80001c9c6e80: f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00
 ffff80001c9c6f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff80001c9c6f80: f1 f1 f1 f1 00 00 f2 f2 00 00 00 00 00 00 f2 f2
                                     ^
 ffff80001c9c7000: f2 f2 00 00 00 00 00 f3 f3 f3 f3 f3 00 00 00 00
 ffff80001c9c7080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================

Crashes (5134):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/07/14 02:02 linux-5.15.y f45bea23c39c eaeb5c15 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro #1] [mounted in repro #2] ci2-linux-5-15-kasan-arm64 KASAN: stack-out-of-bounds Read in gfs2_file_buffered_write
2024/04/12 10:00 linux-5.15.y cdfd0a7f0139 27de0a5c .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro #1] [mounted in repro #2] ci2-linux-5-15-kasan-arm64 KASAN: stack-out-of-bounds Read in gfs2_file_buffered_write
2024/11/12 12:13 linux-5.15.y 3c17fc483905 75bb1b32 .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
2024/11/08 13:31 linux-5.15.y 72244eab0dad 179b040e .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
2024/11/07 20:24 linux-5.15.y 72244eab0dad 867e44df .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
2024/11/05 02:13 linux-5.15.y 72244eab0dad 509da429 .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
2024/11/03 05:58 linux-5.15.y 72244eab0dad f00eed24 .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
2024/10/31 22:17 linux-5.15.y 74cdd62cb470 96eb609f .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
2024/10/31 04:57 linux-5.15.y 74cdd62cb470 96eb609f .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
2024/01/13 21:08 linux-5.15.y 26c690eff0a5 551587c1 .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
2024/11/12 18:24 linux-5.15.y 3c17fc483905 75bb1b32 .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
2024/11/12 17:24 linux-5.15.y 3c17fc483905 75bb1b32 .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
2024/11/12 16:15 linux-5.15.y 3c17fc483905 75bb1b32 .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
2024/11/11 07:48 linux-5.15.y 3c17fc483905 6b856513 .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
2024/11/11 05:09 linux-5.15.y 3c17fc483905 6b856513 .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
2024/11/11 02:39 linux-5.15.y 3c17fc483905 6b856513 .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
2024/11/11 00:23 linux-5.15.y 3c17fc483905 6b856513 .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
2024/11/10 23:16 linux-5.15.y 3c17fc483905 6b856513 .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
2024/11/10 21:20 linux-5.15.y 3c17fc483905 6b856513 .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
2024/11/10 20:00 linux-5.15.y 3c17fc483905 6b856513 .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
2024/11/10 15:27 linux-5.15.y 3c17fc483905 6b856513 .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
2024/11/10 11:33 linux-5.15.y 3c17fc483905 6b856513 .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
2024/11/10 07:44 linux-5.15.y 3c17fc483905 6b856513 .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
2024/11/09 23:13 linux-5.15.y 3c17fc483905 6b856513 .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
2024/11/09 18:58 linux-5.15.y 3c17fc483905 6b856513 .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
2024/11/09 17:47 linux-5.15.y 3c17fc483905 6b856513 .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
2024/11/09 15:38 linux-5.15.y 3c17fc483905 6b856513 .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
2024/11/09 09:58 linux-5.15.y 3c17fc483905 6b856513 .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
2024/11/09 08:26 linux-5.15.y 3c17fc483905 6b856513 .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
2024/11/09 06:48 linux-5.15.y 3c17fc483905 6b856513 .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
2024/11/09 01:21 linux-5.15.y 3c17fc483905 6b856513 .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
2024/11/07 03:38 linux-5.15.y 72244eab0dad df3dc63b .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
2024/11/05 21:42 linux-5.15.y 72244eab0dad da38b4c9 .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
2024/11/05 10:28 linux-5.15.y 72244eab0dad 509da429 .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
2024/11/05 07:47 linux-5.15.y 72244eab0dad 509da429 .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
2024/11/05 06:08 linux-5.15.y 72244eab0dad 509da429 .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
2024/11/05 05:16 linux-5.15.y 72244eab0dad 509da429 .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
2024/11/04 07:27 linux-5.15.y 72244eab0dad f00eed24 .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
2024/11/03 23:41 linux-5.15.y 72244eab0dad f00eed24 .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
2024/11/03 22:31 linux-5.15.y 72244eab0dad f00eed24 .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
2024/11/03 12:44 linux-5.15.y 72244eab0dad f00eed24 .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
2024/11/03 08:22 linux-5.15.y 72244eab0dad f00eed24 .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
2024/11/02 21:31 linux-5.15.y 72244eab0dad f00eed24 .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
2024/11/02 11:05 linux-5.15.y 72244eab0dad f00eed24 .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
2024/11/02 06:44 linux-5.15.y 72244eab0dad f00eed24 .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
2024/10/30 22:54 linux-5.15.y 74cdd62cb470 fb888278 .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
2024/10/30 21:41 linux-5.15.y 74cdd62cb470 fb888278 .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
2024/10/30 21:40 linux-5.15.y 74cdd62cb470 fb888278 .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
2024/11/09 21:40 linux-5.15.y 3c17fc483905 6b856513 .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
2024/11/09 17:26 linux-5.15.y 3c17fc483905 6b856513 .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
2024/11/05 23:26 linux-5.15.y 72244eab0dad da38b4c9 .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.