syzbot


KCSAN: data-race in copy_page_to_iter / fat32_ent_put

Status: auto-closed as invalid on 2020/08/07 21:36
Subsystems: exfat
[Documentation on labels]
First crash: 1363d, last: 1363d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in copy_page_to_iter / fat32_ent_put

write to 0xffff888118364330 of 4 bytes by task 27249 on cpu 1:
 fat32_ent_put+0x54/0x90 fs/fat/fatent.c:189
 fat_alloc_clusters+0x430/0xa60 fs/fat/fatent.c:501
 fat_add_cluster fs/fat/inode.c:108 [inline]
 __fat_get_block fs/fat/inode.c:155 [inline]
 fat_get_block+0x213/0x5a0 fs/fat/inode.c:190
 __block_write_begin_int+0x4bf/0xfd0 fs/buffer.c:2012
 __block_write_begin fs/buffer.c:2062 [inline]
 block_write_begin+0x4f/0x190 fs/buffer.c:2121
 cont_write_begin+0x42c/0x610 fs/buffer.c:2470
 fat_write_begin+0x61/0xf0 fs/fat/inode.c:235
 generic_perform_write+0x196/0x390 mm/filemap.c:3299
 __generic_file_write_iter+0x154/0x330 mm/filemap.c:3428
 generic_file_write_iter+0x2f3/0x3e0 mm/filemap.c:3460
 call_write_iter include/linux/fs.h:1907 [inline]
 new_sync_write fs/read_write.c:484 [inline]
 __vfs_write+0x2d8/0x340 fs/read_write.c:497
 vfs_write+0x19b/0x350 fs/read_write.c:559
 ksys_write+0xce/0x180 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+0x3e/0x50 fs/read_write.c:621
 do_syscall_64+0x51/0xb0 arch/x86/entry/common.c:359
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff888118364000 of 4096 bytes by task 27240 on cpu 0:
 instrument_copy_to_user include/linux/instrumented.h:89 [inline]
 copyout lib/iov_iter.c:142 [inline]
 copy_page_to_iter_iovec lib/iov_iter.c:212 [inline]
 copy_page_to_iter+0x346/0x8a0 lib/iov_iter.c:921
 generic_file_buffered_read+0x1075/0x1800 mm/filemap.c:2126
 generic_file_read_iter+0x7d/0x3e0 mm/filemap.c:2307
 blkdev_read_iter+0xb3/0xc0 fs/block_dev.c:2044
 call_read_iter include/linux/fs.h:1901 [inline]
 new_sync_read fs/read_write.c:415 [inline]
 __vfs_read+0x2d5/0x330 fs/read_write.c:428
 vfs_read+0x131/0x2a0 fs/read_write.c:462
 ksys_read+0xce/0x180 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+0x3e/0x50 fs/read_write.c:596
 do_syscall_64+0x51/0xb0 arch/x86/entry/common.c:359
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 27240 Comm: systemd-udevd Not tainted 5.8.0-rc3-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/07/03 21:34 upstream cdd3bb54332f 6e569755 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.