syzbot


KCSAN: data-race in vfs_fsync_range / writeback_single_inode (5)

Status: auto-obsoleted due to no activity on 2023/08/12 00:00
Subsystems: exfat
[Documentation on labels]
First crash: 346d, last: 327d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in vfs_fsync_range / writeback_single_inode (7) ext4 6 9d13h 11d 0/26 moderation: reported on 2024/05/19 01:02
upstream KCSAN: data-race in vfs_fsync_range / writeback_single_inode (4) exfat 101 395d 660d 0/26 auto-obsoleted due to no activity on 2023/06/05 02:12
upstream KCSAN: data-race in vfs_fsync_range / writeback_single_inode (3) exfat 12 720d 833d 0/26 auto-closed as invalid on 2022/07/14 22:12
upstream KCSAN: data-race in vfs_fsync_range / writeback_single_inode (6) exfat 13 100d 172d 0/26 auto-obsoleted due to no activity on 2024/03/25 18:33
upstream KCSAN: data-race in vfs_fsync_range / writeback_single_inode exfat 12 1450d 1677d 0/26 closed as invalid on 2020/06/18 14:24
upstream KCSAN: data-race in vfs_fsync_range / writeback_single_inode (2) exfat 131 906d 1270d 0/26 auto-closed as invalid on 2022/01/09 20:31

Sample crash report:
loop2: detected capacity change from 0 to 128
==================================================================
BUG: KCSAN: data-race in vfs_fsync_range / writeback_single_inode

write to 0xffff88810a6ac740 of 8 bytes by task 21840 on cpu 1:
 writeback_single_inode+0x10e/0x4a0 fs/fs-writeback.c:1721
 sync_inode_metadata+0x56/0x80 fs/fs-writeback.c:2786
 __generic_file_fsync+0xf9/0x140 fs/libfs.c:1138
 fat_file_fsync+0x4c/0x100 fs/fat/file.c:191
 vfs_fsync_range+0x111/0x120 fs/sync.c:188
 generic_write_sync include/linux/fs.h:2493 [inline]
 generic_file_write_iter+0x191/0x1c0 mm/filemap.c:4048
 do_iter_write+0x4b4/0x7b0 fs/read_write.c:860
 vfs_iter_write+0x56/0x70 fs/read_write.c:901
 iter_file_splice_write+0x462/0x7e0 fs/splice.c:739
 do_splice_from fs/splice.c:934 [inline]
 direct_splice_actor+0x8a/0xb0 fs/splice.c:1143
 splice_direct_to_actor+0x31d/0x690 fs/splice.c:1089
 do_splice_direct+0x10d/0x190 fs/splice.c:1195
 do_sendfile+0x3b6/0x9a0 fs/read_write.c:1254
 __do_sys_sendfile64 fs/read_write.c:1316 [inline]
 __se_sys_sendfile64 fs/read_write.c:1308 [inline]
 __x64_sys_sendfile64+0xbd/0x150 fs/read_write.c:1308
 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

read to 0xffff88810a6ac740 of 8 bytes by task 21841 on cpu 0:
 vfs_fsync_range+0xa2/0x120 fs/sync.c:186
 generic_write_sync include/linux/fs.h:2493 [inline]
 generic_file_write_iter+0x191/0x1c0 mm/filemap.c:4048
 do_iter_write+0x4b4/0x7b0 fs/read_write.c:860
 vfs_iter_write+0x56/0x70 fs/read_write.c:901
 iter_file_splice_write+0x462/0x7e0 fs/splice.c:739
 do_splice_from fs/splice.c:934 [inline]
 direct_splice_actor+0x8a/0xb0 fs/splice.c:1143
 splice_direct_to_actor+0x31d/0x690 fs/splice.c:1089
 do_splice_direct+0x10d/0x190 fs/splice.c:1195
 do_sendfile+0x3b6/0x9a0 fs/read_write.c:1254
 __do_sys_sendfile64 fs/read_write.c:1316 [inline]
 __se_sys_sendfile64 fs/read_write.c:1308 [inline]
 __x64_sys_sendfile64+0xbd/0x150 fs/read_write.c:1308
 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: 0x0000000000000007 -> 0x0000000000000084

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 21841 Comm: syz-executor.2 Tainted: G        W          6.4.0-syzkaller-12274-g5133c9e51de4 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/07/07 23:52 upstream 5133c9e51de4 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
2023/06/21 10:42 upstream 99ec1ed7c2ed 79782afc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
2023/06/18 15:26 upstream 1b29d271614a f3921d4d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
* Struck through repros no longer work on HEAD.