syzbot


KCSAN: data-race in generic_fillattr / generic_write_end (3)

Status: auto-obsoleted due to no activity on 2023/10/04 07:55
Subsystems: ext4
[Documentation on labels]
First crash: 251d, last: 251d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in generic_fillattr / generic_write_end ext4 1 566d 566d 0/26 auto-obsoleted due to no activity on 2022/11/23 01:20
upstream KCSAN: data-race in generic_fillattr / generic_write_end (2) ext4 1 314d 314d 0/26 auto-obsoleted due to no activity on 2023/08/01 21:38

Sample crash report:
==================================================================
BUG: KCSAN: data-race in generic_fillattr / generic_write_end

write to 0xffff88810984aa88 of 8 bytes by task 7591 on cpu 1:
 i_size_write include/linux/fs.h:932 [inline]
 generic_write_end+0x94/0x230 fs/buffer.c:2280
 ext4_da_write_end+0x49e/0x6f0 fs/ext4/inode.c:2988
 generic_perform_write+0x267/0x410 mm/filemap.c:3956
 ext4_buffered_write_iter+0x1f6/0x370 fs/ext4/file.c:299
 ext4_file_write_iter+0x283/0x1230
 __kernel_write_iter+0x162/0x3c0 fs/read_write.c:517
 dump_emit_page fs/coredump.c:888 [inline]
 dump_user_range+0x25d/0x480 fs/coredump.c:915
 elf_core_dump+0x1a85/0x1ba0 fs/binfmt_elf.c:2142
 do_coredump+0x1029/0x1890 fs/coredump.c:764
 get_signal+0xda3/0x1090 kernel/signal.c:2878
 arch_do_signal_or_restart+0x95/0x4b0 arch/x86/kernel/signal.c:308
 exit_to_user_mode_loop+0x6f/0xe0 kernel/entry/common.c:168
 exit_to_user_mode_prepare+0x6c/0xb0 kernel/entry/common.c:204
 irqentry_exit_to_user_mode+0x9/0x20 kernel/entry/common.c:309
 irqentry_exit+0x12/0x40 kernel/entry/common.c:412
 exc_general_protection+0x339/0x4c0 arch/x86/kernel/traps.c:729
 asm_exc_general_protection+0x26/0x30 arch/x86/include/asm/idtentry.h:564

read to 0xffff88810984aa88 of 8 bytes by task 3117 on cpu 0:
 i_size_read include/linux/fs.h:910 [inline]
 generic_fillattr+0x147/0x430 fs/stat.c:90
 ext4_getattr+0x4cb/0x4e0 fs/ext4/inode.c:5538
 ext4_file_getattr+0x4a/0x160 fs/ext4/inode.c:5549
 vfs_getattr_nosec fs/stat.c:172 [inline]
 vfs_getattr fs/stat.c:209 [inline]
 vfs_statx+0x266/0x430 fs/stat.c:281
 vfs_fstatat fs/stat.c:315 [inline]
 __do_sys_newfstatat fs/stat.c:485 [inline]
 __se_sys_newfstatat+0x8a/0x2a0 fs/stat.c:479
 __x64_sys_newfstatat+0x55/0x60 fs/stat.c:479
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x000000000101e000 -> 0x0000000001020000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 3117 Comm: syz-executor.5 Not tainted 6.5.0-syzkaller-04808-g6c1b980a7e79 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/08/30 07:47 upstream 6c1b980a7e79 ce731e62 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_fillattr / generic_write_end
* Struck through repros no longer work on HEAD.