syzbot


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

Status: auto-closed as invalid on 2021/10/28 20:30
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 455d, last: 440d
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 3 573d 637d 0/24 auto-closed as invalid on 2021/06/17 13:50
upstream KCSAN: data-race in __generic_file_fsync / __mark_inode_dirty (3) 1 289d 289d 0/24 auto-closed as invalid on 2022/03/28 09:07

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

write to 0xffff88812e1167e0 of 8 bytes by task 14643 on cpu 0:
 __mark_inode_dirty+0x1c4/0x6a0 fs/fs-writeback.c:2433
 fat_update_time+0x125/0x140 fs/fat/misc.c:351
 update_time fs/inode.c:1786 [inline]
 touch_atime+0x12f/0x250 fs/inode.c:1858
 file_accessed include/linux/fs.h:2504 [inline]
 filemap_read+0x11a8/0x1220 mm/filemap.c:2700
 generic_file_read_iter+0x75/0x2c0 mm/filemap.c:2779
 call_read_iter include/linux/fs.h:2157 [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+0x63e/0xbb0 fs/read_write.c:1249
 __do_sys_sendfile64 fs/read_write.c:1314 [inline]
 __se_sys_sendfile64 fs/read_write.c:1300 [inline]
 __x64_sys_sendfile64+0x102/0x140 fs/read_write.c:1300
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88812e1167e0 of 8 bytes by task 14669 on cpu 1:
 __generic_file_fsync+0x91/0x140 fs/libfs.c:1094
 fat_file_fsync+0x48/0x100 fs/fat/file.c:190
 vfs_fsync_range+0x107/0x120 fs/sync.c:200
 generic_write_sync include/linux/fs.h:2955 [inline]
 generic_file_write_iter+0x103/0x130 mm/filemap.c:3933
 call_write_iter include/linux/fs.h:2163 [inline]
 do_iter_readv_writev+0x2de/0x380 fs/read_write.c:729
 do_iter_write+0x192/0x5c0 fs/read_write.c:855
 vfs_iter_write+0x4c/0x70 fs/read_write.c:896
 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+0x63e/0xbb0 fs/read_write.c:1249
 __do_sys_sendfile64 fs/read_write.c:1314 [inline]
 __se_sys_sendfile64 fs/read_write.c:1300 [inline]
 __x64_sys_sendfile64+0x102/0x140 fs/read_write.c:1300
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xa0 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: 14669 Comm: syz-executor.5 Not tainted 5.15.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (3):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/09/23 20:24 upstream f10f0481a5b5 8cac236e .config log report info KCSAN: data-race in __generic_file_fsync / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/09/09 12:27 upstream a3fa7a101dcf e2776ee4 .config log report info KCSAN: data-race in __generic_file_fsync / __mark_inode_dirty
ci2-upstream-kcsan-gce 2021/09/08 19:11 upstream ac08b1c68d1b e2776ee4 .config log report info KCSAN: data-race in __generic_file_fsync / __mark_inode_dirty
* Struck through repros no longer work on HEAD.