syzbot


KCSAN: data-race in generic_buffers_fsync_noflush / inode_cgwb_move_to_attached (3)

Status: moderation: reported on 2025/09/27 15:29
Subsystems: ext4
[Documentation on labels]
Reported-by: syzbot+408c1ec498d73d48215a@syzkaller.appspotmail.com
First crash: 52d, last: 1d22h
Similar bugs (2)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in generic_buffers_fsync_noflush / inode_cgwb_move_to_attached (2) ext4 6 31 119d 372d 0/29 auto-obsoleted due to no activity on 2025/09/17 05:51
upstream KCSAN: data-race in generic_buffers_fsync_noflush / inode_cgwb_move_to_attached ext4 6 7 416d 463d 0/29 auto-obsoleted due to no activity on 2024/11/03 13:08

Sample crash report:
==================================================================
BUG: KCSAN: data-race in generic_buffers_fsync_noflush / inode_cgwb_move_to_attached

write to 0xffff88812f269758 of 4 bytes by task 15555 on cpu 0:
 inode_cgwb_move_to_attached+0x9b/0x310 fs/fs-writeback.c:309
 writeback_single_inode+0x2b5/0x3f0 fs/fs-writeback.c:1857
 sync_inode_metadata+0x5b/0x90 fs/fs-writeback.c:2923
 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:3046 [inline]
 ext4_buffered_write_iter+0x34f/0x3c0 fs/ext4/file.c:305
 ext4_file_write_iter+0x387/0xf60 fs/ext4/file.c:-1
 iter_file_splice_write+0x666/0xa60 fs/splice.c:738
 do_splice_from fs/splice.c:938 [inline]
 direct_splice_actor+0x156/0x2a0 fs/splice.c:1161
 splice_direct_to_actor+0x312/0x680 fs/splice.c:1105
 do_splice_direct_actor fs/splice.c:1204 [inline]
 do_splice_direct+0xda/0x150 fs/splice.c:1230
 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+0x2bb4/0x3000 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 0xffff88812f269758 of 4 bytes by task 15507 on cpu 1:
 generic_buffers_fsync_noflush+0x80/0x120 fs/buffer.c:614
 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:3046 [inline]
 ext4_buffered_write_iter+0x34f/0x3c0 fs/ext4/file.c:305
 ext4_file_write_iter+0x387/0xf60 fs/ext4/file.c:-1
 iter_file_splice_write+0x666/0xa60 fs/splice.c:738
 do_splice_from fs/splice.c:938 [inline]
 direct_splice_actor+0x156/0x2a0 fs/splice.c:1161
 splice_direct_to_actor+0x312/0x680 fs/splice.c:1105
 do_splice_direct_actor fs/splice.c:1204 [inline]
 do_splice_direct+0xda/0x150 fs/splice.c:1230
 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+0x2bb4/0x3000 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: 0x00000002 -> 0x00000040

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 15507 Comm: syz.6.8168 Tainted: G        W           syzkaller #0 PREEMPT(voluntary) 
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
==================================================================

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/11/17 16:33 upstream 6a23ae0a96a6 ef766cd7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_buffers_fsync_noflush / inode_cgwb_move_to_attached
2025/11/06 00:51 upstream 1c353dc8d962 a6c9c731 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_buffers_fsync_noflush / inode_cgwb_move_to_attached
2025/10/18 12:21 upstream f406055cb18c 1c8c8cd8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_buffers_fsync_noflush / inode_cgwb_move_to_attached
2025/10/13 09:42 upstream 3a8660878839 ff1712fe .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_buffers_fsync_noflush / inode_cgwb_move_to_attached
2025/10/11 10:25 upstream 0739473694c4 ff1712fe .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_buffers_fsync_noflush / inode_cgwb_move_to_attached
2025/09/27 15:28 upstream fec734e8d564 001c9061 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_buffers_fsync_noflush / inode_cgwb_move_to_attached
* Struck through repros no longer work on HEAD.