syzbot


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

Status: auto-closed as invalid on 2020/08/25 18:47
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 757d, last: 757d
similar bugs (5):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __mark_inode_dirty / vfs_fsync_range (6) 1 438d 438d 0/23 auto-closed as invalid on 2021/07/10 17:50
upstream KCSAN: data-race in __mark_inode_dirty / vfs_fsync_range (5) 5 496d 542d 0/23 auto-closed as invalid on 2021/05/14 12:10
upstream KCSAN: data-race in __mark_inode_dirty / vfs_fsync_range (4) 6 597d 619d 0/23 auto-closed as invalid on 2021/02/02 16:23
upstream KCSAN: data-race in __mark_inode_dirty / vfs_fsync_range (2) 1 791d 791d 0/23 closed as invalid on 2020/06/18 14:13
upstream KCSAN: data-race in __mark_inode_dirty / vfs_fsync_range 2 1028d 1029d 0/23 closed as invalid on 2019/11/19 13:44

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

write to 0xffff8880b558a200 of 8 bytes by task 25996 on cpu 0:
 __mark_inode_dirty+0x214/0x7e0 fs/fs-writeback.c:2288
 generic_update_time fs/inode.c:1762 [inline]
 update_time fs/inode.c:1775 [inline]
 file_update_time+0x3a8/0x3f0 fs/inode.c:1990
 file_modified+0x62/0x80 fs/inode.c:2013
 ext4_dio_write_checks fs/ext4/file.c:437 [inline]
 ext4_dio_write_iter fs/ext4/file.c:501 [inline]
 ext4_file_write_iter+0xb84/0x1010 fs/ext4/file.c:653
 call_write_iter include/linux/fs.h:1908 [inline]
 do_iter_readv_writev+0x321/0x3c0 fs/read_write.c:713
 do_iter_write+0x10e/0x470 fs/read_write.c:1018
 vfs_iter_write+0x4c/0x70 fs/read_write.c:1059
 iter_file_splice_write+0x41a/0x770 fs/splice.c:750
 do_splice_from fs/splice.c:846 [inline]
 direct_splice_actor+0x95/0x160 fs/splice.c:1016
 splice_direct_to_actor+0x365/0x660 fs/splice.c:971
 do_splice_direct+0xf2/0x170 fs/splice.c:1059
 do_sendfile+0x562/0xb10 fs/read_write.c:1540
 __do_sys_sendfile64 fs/read_write.c:1601 [inline]
 __se_sys_sendfile64 fs/read_write.c:1587 [inline]
 __x64_sys_sendfile64+0xf2/0x130 fs/read_write.c:1587
 do_syscall_64+0x51/0xb0 arch/x86/entry/common.c:384
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff8880b558a200 of 8 bytes by task 26003 on cpu 1:
 vfs_fsync_range+0x98/0x120 fs/sync.c:198
 generic_write_sync include/linux/fs.h:2882 [inline]
 ext4_buffered_write_iter+0x369/0x3b0 fs/ext4/file.c:277
 ext4_file_write_iter+0x76f/0x1010 include/linux/fs.h:805
 call_write_iter include/linux/fs.h:1908 [inline]
 do_iter_readv_writev+0x321/0x3c0 fs/read_write.c:713
 do_iter_write+0x10e/0x470 fs/read_write.c:1018
 vfs_iter_write+0x4c/0x70 fs/read_write.c:1059
 iter_file_splice_write+0x41a/0x770 fs/splice.c:750
 do_splice_from fs/splice.c:846 [inline]
 direct_splice_actor+0x95/0x160 fs/splice.c:1016
 splice_direct_to_actor+0x365/0x660 fs/splice.c:971
 do_splice_direct+0xf2/0x170 fs/splice.c:1059
 do_sendfile+0x562/0xb10 fs/read_write.c:1540
 __do_sys_sendfile64 fs/read_write.c:1601 [inline]
 __se_sys_sendfile64 fs/read_write.c:1587 [inline]
 __x64_sys_sendfile64+0xf2/0x130 fs/read_write.c:1587
 do_syscall_64+0x51/0xb0 arch/x86/entry/common.c:384
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 26003 Comm: syz-executor.1 Not tainted 5.8.0-rc6-syzkaller #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 2020/07/21 18:40 upstream 4fa640dc5230 e562dd8a .config log report