syzbot


KCSAN: data-race in copyout / fat12_ent_put

Status: closed as invalid on 2020/06/18 14:13
Subsystems: exfat
[Documentation on labels]
First crash: 1699d, last: 1699d

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

write to 0xffff8880a2cee2c7 of 1 bytes by task 10383 on cpu 0:
 fat12_ent_put+0x9d/0x1b0 fs/fat/fatent.c:163
 fat_alloc_clusters+0x4e1/0xbf0 fs/fat/fatent.c:501
 fat_add_cluster+0x3b/0xd0 fs/fat/inode.c:108
 __fat_get_block fs/fat/inode.c:155 [inline]
 fat_get_block+0x3c6/0x4f0 fs/fat/inode.c:190
 __block_write_begin_int+0x306/0xf80 fs/buffer.c:2002
 __block_write_begin fs/buffer.c:2052 [inline]
 block_write_begin+0x76/0x200 fs/buffer.c:2111
 cont_write_begin+0x3bd/0x660 fs/buffer.c:2460
 fat_write_begin+0x69/0xc0 fs/fat/inode.c:236
 generic_perform_write+0x13a/0x320 mm/filemap.c:3302
 __generic_file_write_iter+0x240/0x370 mm/filemap.c:3431
 generic_file_write_iter+0x294/0x38e mm/filemap.c:3463
 call_write_iter include/linux/fs.h:1907 [inline]
 new_sync_write+0x303/0x400 fs/read_write.c:484
 __vfs_write+0x9e/0xb0 fs/read_write.c:497
 vfs_write fs/read_write.c:559 [inline]
 vfs_write+0x189/0x380 fs/read_write.c:543
 ksys_write+0xc5/0x1a0 fs/read_write.c:612
 __do_sys_write fs/read_write.c:624 [inline]
 __se_sys_write fs/read_write.c:621 [inline]
 __x64_sys_write+0x49/0x60 fs/read_write.c:621
 do_syscall_64+0xc7/0x3b0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff8880a2cee000 of 4096 bytes by task 10386 on cpu 1:
 instrument_copy_to_user include/linux/instrumented.h:89 [inline]
 copyout+0x82/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:2129 [inline]
 generic_file_read_iter+0x96a/0x18c0 mm/filemap.c:2309
 blkdev_read_iter+0xae/0xe0 fs/block_dev.c:2053
 call_read_iter include/linux/fs.h:1901 [inline]
 new_sync_read+0x306/0x450 fs/read_write.c:415
 __vfs_read+0x9e/0xb0 fs/read_write.c:428
 vfs_read fs/read_write.c:462 [inline]
 vfs_read+0x13e/0x2b0 fs/read_write.c:447
 ksys_read+0xc5/0x1a0 fs/read_write.c:588
 __do_sys_read fs/read_write.c:598 [inline]
 __se_sys_read fs/read_write.c:596 [inline]
 __x64_sys_read+0x49/0x60 fs/read_write.c:596
 do_syscall_64+0xc7/0x3b0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 10386 Comm: systemd-udevd Not tainted 5.7.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/06/04 16:59 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 6720fdef .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.