syzbot


KCSAN: data-race in __mark_inode_dirty / vfs_fsync_range

Status: closed as invalid on 2019/11/19 13:44
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 983d, last: 981d
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 392d 392d 0/22 auto-closed as invalid on 2021/07/10 17:50
upstream KCSAN: data-race in __mark_inode_dirty / vfs_fsync_range (5) 5 449d 496d 0/22 auto-closed as invalid on 2021/05/14 12:10
upstream KCSAN: data-race in __mark_inode_dirty / vfs_fsync_range (4) 6 550d 572d 0/22 auto-closed as invalid on 2021/02/02 16:23
upstream KCSAN: data-race in __mark_inode_dirty / vfs_fsync_range (2) 1 745d 745d 0/22 closed as invalid on 2020/06/18 14:13
upstream KCSAN: data-race in __mark_inode_dirty / vfs_fsync_range (3) 1 711d 711d 0/22 auto-closed as invalid on 2020/08/25 18:47

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

write to 0xffff888125859380 of 8 bytes by task 19710 on cpu 1:
 __mark_inode_dirty+0x601/0x940 fs/fs-writeback.c:2285
 generic_update_time+0x184/0x270 fs/inode.c:1667
 update_time fs/inode.c:1683 [inline]
 touch_atime+0x172/0x190 fs/inode.c:1754
 file_accessed include/linux/fs.h:2202 [inline]
 generic_file_buffered_read mm/filemap.c:2257 [inline]
 generic_file_read_iter+0x116e/0x1440 mm/filemap.c:2323
 ext4_file_read_iter fs/ext4/file.c:77 [inline]
 ext4_file_read_iter+0xfa/0x240 fs/ext4/file.c:65
 call_read_iter include/linux/fs.h:1889 [inline]
 generic_file_splice_read+0x35c/0x500 fs/splice.c:307
 do_splice_to+0xf2/0x130 fs/splice.c:877
 splice_direct_to_actor+0x1a1/0x510 fs/splice.c:954
 do_splice_direct+0x161/0x1e0 fs/splice.c:1063
 do_sendfile+0x384/0x7f0 fs/read_write.c:1464
 __do_sys_sendfile64 fs/read_write.c:1525 [inline]
 __se_sys_sendfile64 fs/read_write.c:1511 [inline]
 __x64_sys_sendfile64+0x12a/0x140 fs/read_write.c:1511
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff888125859380 of 8 bytes by task 19713 on cpu 0:
 vfs_fsync_range+0xdb/0x150 fs/sync.c:195
 generic_write_sync include/linux/fs.h:2853 [inline]
 ext4_file_write_iter+0x45b/0xa00 fs/ext4/file.c:279
 call_write_iter include/linux/fs.h:1895 [inline]
 do_iter_readv_writev+0x487/0x5b0 fs/read_write.c:693
 do_iter_write fs/read_write.c:970 [inline]
 do_iter_write+0x13b/0x3c0 fs/read_write.c:951
 vfs_iter_write+0x5c/0x80 fs/read_write.c:983
 iter_file_splice_write+0x4c0/0x7f0 fs/splice.c:746
 do_splice_from fs/splice.c:848 [inline]
 direct_splice_actor+0xa0/0xc0 fs/splice.c:1020
 splice_direct_to_actor+0x215/0x510 fs/splice.c:975
 do_splice_direct+0x161/0x1e0 fs/splice.c:1063
 do_sendfile+0x384/0x7f0 fs/read_write.c:1464
 __do_sys_sendfile64 fs/read_write.c:1525 [inline]
 __se_sys_sendfile64 fs/read_write.c:1511 [inline]
 __x64_sys_sendfile64+0x12a/0x140 fs/read_write.c:1511
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 19713 Comm: syz-executor.4 Not tainted 5.4.0-rc3+ #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (2):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2019/10/25 15:08 https://github.com/google/ktsan.git kcsan 05f2236801fe 04ca72cd .config log report
ci2-upstream-kcsan-gce 2019/10/23 17:23 https://github.com/google/ktsan.git kcsan 05f2236801fe b602d64b .config log report