syzbot


KCSAN: data-race in copyout / fat_time_unix2fat

Status: auto-closed as invalid on 2020/05/07 13:55
Subsystems: exfat
[Documentation on labels]
First crash: 2010d, last: 2010d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in copyout / fat_time_unix2fat

write to 0xffff88810ff43236 of 2 bytes by task 30497 on cpu 0:
 fat_time_unix2fat+0x156/0x2c0 fs/fat/misc.c:263
 __fat_write_inode+0x37d/0x510 fs/fat/inode.c:880
 fat_write_inode+0x67/0xe0 fs/fat/inode.c:909
 write_inode fs/fs-writeback.c:1312 [inline]
 __writeback_single_inode+0x722/0x910 fs/fs-writeback.c:1511
 writeback_single_inode+0x219/0x2f0 fs/fs-writeback.c:1565
 sync_inode fs/fs-writeback.c:2602 [inline]
 sync_inode_metadata+0x75/0xa0 fs/fs-writeback.c:2622
 __generic_file_fsync+0x117/0x180 fs/libfs.c:1081
 fat_file_fsync+0x54/0x120 fs/fat/file.c:190
 vfs_fsync_range+0x7c/0x150 fs/sync.c:197
 generic_write_sync include/linux/fs.h:2867 [inline]
 generic_file_write_iter+0x31c/0x38e mm/filemap.c:3452
 call_write_iter include/linux/fs.h:1901 [inline]
 do_iter_readv_writev+0x4a7/0x5d0 fs/read_write.c:693
 do_iter_write fs/read_write.c:998 [inline]
 do_iter_write+0x137/0x3a0 fs/read_write.c:979
 vfs_iter_write+0x56/0x80 fs/read_write.c:1039
 iter_file_splice_write+0x530/0x830 fs/splice.c:760
 do_splice_from fs/splice.c:863 [inline]
 direct_splice_actor+0x97/0xb0 fs/splice.c:1037
 splice_direct_to_actor+0x22f/0x540 fs/splice.c:992
 do_splice_direct+0x152/0x1d0 fs/splice.c:1080
 do_sendfile+0x396/0x810 fs/read_write.c:1520
 __do_sys_sendfile64 fs/read_write.c:1581 [inline]
 __se_sys_sendfile64 fs/read_write.c:1567 [inline]
 __x64_sys_sendfile64+0x121/0x140 fs/read_write.c:1567
 do_syscall_64+0xc7/0x390 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88810ff43000 of 1024 bytes by task 30500 on cpu 1:
 instrument_copy_to_user include/linux/instrumented.h:89 [inline]
 copyout+0x9b/0xb0 lib/iov_iter.c:142
 copy_page_to_iter_iovec lib/iov_iter.c:212 [inline]
 copy_page_to_iter+0x25c/0x910 lib/iov_iter.c:921
 generic_file_buffered_read mm/filemap.c:2122 [inline]
 generic_file_read_iter+0x96a/0x1490 mm/filemap.c:2302
 blkdev_read_iter+0xae/0xe0 fs/block_dev.c:2039
 call_read_iter include/linux/fs.h:1895 [inline]
 new_sync_read+0x306/0x450 fs/read_write.c:414
 __vfs_read+0x9e/0xb0 fs/read_write.c:427
 vfs_read fs/read_write.c:461 [inline]
 vfs_read+0x13e/0x2b0 fs/read_write.c:446
 ksys_read+0xc5/0x1a0 fs/read_write.c:587
 __do_sys_read fs/read_write.c:597 [inline]
 __se_sys_read fs/read_write.c:595 [inline]
 __x64_sys_read+0x49/0x60 fs/read_write.c:595
 do_syscall_64+0xc7/0x390 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 30500 Comm: blkid Not tainted 5.6.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/02/27 13:47 https://github.com/google/ktsan.git kcsan 766d004d1b85 40bcfdd5 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.