syzbot


KCSAN: data-race in __writeback_single_inode / vfs_fsync_range (10)

Status: moderation: reported on 2025/08/03 05:05
Subsystems: ext4
[Documentation on labels]
Reported-by: syzbot+fbea47ac63f2a4eca1cc@syzkaller.appspotmail.com
First crash: 45d, last: 45d
Similar bugs (9)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __writeback_single_inode / vfs_fsync_range ext4 6 2 2139d 2140d 0/29 closed as invalid on 2019/11/19 14:44
upstream KCSAN: data-race in __writeback_single_inode / vfs_fsync_range (7) exfat 6 1 1288d 1288d 0/29 auto-closed as invalid on 2022/04/13 08:14
upstream KCSAN: data-race in __writeback_single_inode / vfs_fsync_range (6) ext4 6 1 1604d 1604d 0/29 auto-closed as invalid on 2021/06/01 07:24
upstream KCSAN: data-race in __writeback_single_inode / vfs_fsync_range (8) ext4 exfat 6 2 977d 984d 0/29 auto-obsoleted due to no activity on 2023/04/01 19:00
upstream KCSAN: data-race in __writeback_single_inode / vfs_fsync_range (5) exfat 6 2 1682d 1698d 0/29 auto-closed as invalid on 2021/03/15 14:17
upstream KCSAN: data-race in __writeback_single_inode / vfs_fsync_range (9) ext4 6 2 369d 373d 0/29 auto-obsoleted due to no activity on 2024/10/18 18:53
upstream KCSAN: data-race in __writeback_single_inode / vfs_fsync_range (3) ext4 6 2 1876d 1903d 0/29 auto-closed as invalid on 2020/09/02 05:07
upstream KCSAN: data-race in __writeback_single_inode / vfs_fsync_range (2) ext4 6 2 2114d 2116d 0/29 auto-closed as invalid on 2020/02/12 06:26
upstream KCSAN: data-race in __writeback_single_inode / vfs_fsync_range (4) ext4 6 1 1836d 1836d 0/29 auto-closed as invalid on 2020/10/12 03:20

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __writeback_single_inode / vfs_fsync_range

read-write to 0xffff888106ed01a0 of 4 bytes by task 13548 on cpu 0:
 __writeback_single_inode+0x1e3/0x7c0 fs/fs-writeback.c:1716
 writeback_single_inode+0x167/0x3e0 fs/fs-writeback.c:1801
 sync_inode_metadata+0x5b/0x90 fs/fs-writeback.c:2883
 generic_buffers_fsync_noflush+0xd9/0x120 fs/buffer.c:619
 ext4_fsync_nojournal fs/ext4/fsync.c:88 [inline]
 ext4_sync_file+0x1ab/0x690 fs/ext4/fsync.c:147
 vfs_fsync_range+0x10d/0x130 fs/sync.c:187
 generic_write_sync include/linux/fs.h:3042 [inline]
 ext4_buffered_write_iter+0x34f/0x3c0 fs/ext4/file.c:305
 ext4_file_write_iter+0x383/0xf00 fs/ext4/file.c:-1
 iter_file_splice_write+0x5f2/0x970 fs/splice.c:738
 do_splice_from fs/splice.c:935 [inline]
 direct_splice_actor+0x153/0x2a0 fs/splice.c:1158
 splice_direct_to_actor+0x30f/0x680 fs/splice.c:1102
 do_splice_direct_actor fs/splice.c:1201 [inline]
 do_splice_direct+0xda/0x150 fs/splice.c:1227
 do_sendfile+0x380/0x650 fs/read_write.c:1370
 __do_sys_sendfile64 fs/read_write.c:1431 [inline]
 __se_sys_sendfile64 fs/read_write.c:1417 [inline]
 __x64_sys_sendfile64+0x105/0x150 fs/read_write.c:1417
 x64_sys_call+0x2bb0/0x2ff0 arch/x86/include/generated/asm/syscalls_64.h:41
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff888106ed01a0 of 4 bytes by task 13545 on cpu 1:
 vfs_fsync_range+0x9b/0x130 fs/sync.c:185
 generic_write_sync include/linux/fs.h:3042 [inline]
 ext4_buffered_write_iter+0x34f/0x3c0 fs/ext4/file.c:305
 ext4_file_write_iter+0x383/0xf00 fs/ext4/file.c:-1
 iter_file_splice_write+0x5f2/0x970 fs/splice.c:738
 do_splice_from fs/splice.c:935 [inline]
 direct_splice_actor+0x153/0x2a0 fs/splice.c:1158
 splice_direct_to_actor+0x30f/0x680 fs/splice.c:1102
 do_splice_direct_actor fs/splice.c:1201 [inline]
 do_splice_direct+0xda/0x150 fs/splice.c:1227
 do_sendfile+0x380/0x650 fs/read_write.c:1370
 __do_sys_sendfile64 fs/read_write.c:1431 [inline]
 __se_sys_sendfile64 fs/read_write.c:1417 [inline]
 __x64_sys_sendfile64+0x105/0x150 fs/read_write.c:1417
 x64_sys_call+0x2bb0/0x2ff0 arch/x86/include/generated/asm/syscalls_64.h:41
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x0000003a -> 0x00000002

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 13545 Comm: syz.2.3637 Not tainted 6.16.0-syzkaller-11241-g186f3edfdd41 #0 PREEMPT(voluntary) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/08/03 05:04 upstream 186f3edfdd41 7368264b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / vfs_fsync_range
* Struck through repros no longer work on HEAD.