syzbot


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

Status: auto-closed as invalid on 2022/07/14 22:12
Subsystems: exfat
[Documentation on labels]
First crash: 796d, last: 684d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in vfs_fsync_range / writeback_single_inode (4) exfat 101 358d 624d 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 (5) exfat 3 290d 310d 0/26 auto-obsoleted due to no activity on 2023/08/12 00:00
upstream KCSAN: data-race in vfs_fsync_range / writeback_single_inode (6) exfat 13 64d 135d 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 1414d 1640d 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 870d 1233d 0/26 auto-closed as invalid on 2022/01/09 20:31

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

write to 0xffff888129318ab0 of 8 bytes by task 28056 on cpu 0:
 writeback_single_inode+0x109/0x4f0 fs/fs-writeback.c:1705
 sync_inode_metadata+0x52/0x70 fs/fs-writeback.c:2743
 __generic_file_fsync+0xf5/0x140 fs/libfs.c:1126
 fat_file_fsync+0x48/0x100 fs/fat/file.c:190
 vfs_fsync_range+0x107/0x120 fs/sync.c:188
 generic_write_sync include/linux/fs.h:2731 [inline]
 generic_file_write_iter+0x103/0x130 mm/filemap.c:3933
 do_iter_readv_writev+0x27b/0x300
 do_iter_write+0x16f/0x5c0 fs/read_write.c:868
 vfs_iter_write+0x4c/0x70 fs/read_write.c:909
 iter_file_splice_write+0x44a/0x7c0 fs/splice.c:689
 do_splice_from fs/splice.c:767 [inline]
 direct_splice_actor+0x80/0xa0 fs/splice.c:936
 splice_direct_to_actor+0x345/0x660 fs/splice.c:891
 do_splice_direct+0xfb/0x180 fs/splice.c:979
 do_sendfile+0x3ad/0x900 fs/read_write.c:1262
 __do_sys_sendfile64 fs/read_write.c:1327 [inline]
 __se_sys_sendfile64 fs/read_write.c:1313 [inline]
 __x64_sys_sendfile64+0x10c/0x150 fs/read_write.c:1313
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x46/0xb0

read to 0xffff888129318ab0 of 8 bytes by task 28059 on cpu 1:
 vfs_fsync_range+0x98/0x120 fs/sync.c:186
 generic_write_sync include/linux/fs.h:2731 [inline]
 generic_file_write_iter+0x103/0x130 mm/filemap.c:3933
 do_iter_readv_writev+0x27b/0x300
 do_iter_write+0x16f/0x5c0 fs/read_write.c:868
 vfs_iter_write+0x4c/0x70 fs/read_write.c:909
 iter_file_splice_write+0x44a/0x7c0 fs/splice.c:689
 do_splice_from fs/splice.c:767 [inline]
 direct_splice_actor+0x80/0xa0 fs/splice.c:936
 splice_direct_to_actor+0x345/0x660 fs/splice.c:891
 do_splice_direct+0xfb/0x180 fs/splice.c:979
 do_sendfile+0x3ad/0x900 fs/read_write.c:1262
 __do_sys_sendfile64 fs/read_write.c:1327 [inline]
 __se_sys_sendfile64 fs/read_write.c:1313 [inline]
 __x64_sys_sendfile64+0x10c/0x150 fs/read_write.c:1313
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x46/0xb0

value changed: 0x0000000000000007 -> 0x0000000000000084

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 28059 Comm: syz-executor.2 Not tainted 5.19.0-rc1-syzkaller-00094-g3d9f55c57bc3-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (12):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/06/09 22:10 upstream 3d9f55c57bc3 0d5abf15 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
2022/05/13 07:10 upstream 0ac824f379fb 9ad6612a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
2022/05/01 02:24 upstream 57ae8a492116 2df221f6 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
2022/04/26 22:29 upstream cf424ef014ac 1fa34c1b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
2022/04/26 06:24 upstream d615b5416f8a 1fa34c1b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
2022/04/21 02:50 upstream 559089e0a93d d4befee1 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
2022/04/19 19:16 upstream b7f73403a3e9 33fc6ed6 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
2022/04/12 17:36 upstream ce522ba9ef7e dacb3f1c .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
2022/04/06 08:23 upstream ce4c854ee868 0127c10f .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
2022/03/28 16:35 upstream f82da161ea75 89bc8608 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
2022/02/25 16:33 upstream 53ab78cd6d5a 7c337266 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
2022/02/17 09:21 upstream f71077a4d84b 2bea8a27 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vfs_fsync_range / writeback_single_inode
* Struck through repros no longer work on HEAD.