syzbot


KCSAN: data-race in __generic_file_fsync / __mark_inode_dirty (3)

Status: auto-closed as invalid on 2022/03/28 09:07
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 287d, last: 287d
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __generic_file_fsync / __mark_inode_dirty (2) 3 437d 452d 0/24 auto-closed as invalid on 2021/10/28 20:30
upstream KCSAN: data-race in __generic_file_fsync / __mark_inode_dirty 3 571d 635d 0/24 auto-closed as invalid on 2021/06/17 13:50

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __generic_file_fsync / __mark_inode_dirty

write to 0xffff8881232201e0 of 8 bytes by task 20629 on cpu 0:
 __mark_inode_dirty+0x1bc/0x6c0 fs/fs-writeback.c:2444
 fat_update_time+0x125/0x140 fs/fat/misc.c:351
 inode_update_time fs/inode.c:1868 [inline]
 touch_atime+0x16e/0x2e0 fs/inode.c:1941
 file_accessed include/linux/fs.h:2421 [inline]
 filemap_read+0x13a7/0x1430 mm/filemap.c:2744
 generic_file_read_iter+0x72/0x320 mm/filemap.c:2822
 call_read_iter include/linux/fs.h:2068 [inline]
 generic_file_splice_read+0x24f/0x330 fs/splice.c:311
 do_splice_to fs/splice.c:796 [inline]
 splice_direct_to_actor+0x2aa/0x650 fs/splice.c:870
 do_splice_direct+0x106/0x190 fs/splice.c:979
 do_sendfile+0x675/0xc40 fs/read_write.c:1245
 __do_sys_sendfile64 fs/read_write.c:1310 [inline]
 __se_sys_sendfile64 fs/read_write.c:1296 [inline]
 __x64_sys_sendfile64+0x102/0x140 fs/read_write.c:1296
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff8881232201e0 of 8 bytes by task 20609 on cpu 1:
 __generic_file_fsync+0x91/0x140 fs/libfs.c:1121
 fat_file_fsync+0x48/0x100 fs/fat/file.c:191
 vfs_fsync_range+0x107/0x120 fs/sync.c:188
 generic_write_sync include/linux/fs.h:2884 [inline]
 generic_file_write_iter+0x103/0x130 mm/filemap.c:3928
 call_write_iter include/linux/fs.h:2074 [inline]
 do_iter_readv_writev+0x2de/0x380 fs/read_write.c:725
 do_iter_write+0x192/0x5c0 fs/read_write.c:851
 vfs_iter_write+0x4c/0x70 fs/read_write.c:892
 iter_file_splice_write+0x43a/0x790 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/0x650 fs/splice.c:891
 do_splice_direct+0x106/0x190 fs/splice.c:979
 do_sendfile+0x675/0xc40 fs/read_write.c:1245
 __do_sys_sendfile64 fs/read_write.c:1310 [inline]
 __se_sys_sendfile64 fs/read_write.c:1296 [inline]
 __x64_sys_sendfile64+0x102/0x140 fs/read_write.c:1296
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x0000000000000000 -> 0x0000000000000001

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 20609 Comm: syz-executor.2 Tainted: G        W         5.17.0-rc5-syzkaller-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/02/21 09:00 upstream cfb92440ee71 3cd800e4 .config log report info KCSAN: data-race in __generic_file_fsync / __mark_inode_dirty
* Struck through repros no longer work on HEAD.