syzbot


KCSAN: data-race in file_update_time / setattr_copy

Status: auto-closed as invalid on 2020/04/28 04:27
Subsystems: fs
[Documentation on labels]
First crash: 1996d, last: 1996d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in file_update_time / setattr_copy

read to 0xffff88812a7e86b8 of 8 bytes by task 10471 on cpu 1:
 file_update_time+0x12a/0x2d0 fs/inode.c:1896
 filemap_page_mkwrite+0xae/0x1d0 mm/filemap.c:2656
 do_page_mkwrite+0x100/0x210 mm/memory.c:2364
 do_shared_fault mm/memory.c:3738 [inline]
 do_fault mm/memory.c:3806 [inline]
 handle_pte_fault mm/memory.c:4033 [inline]
 __handle_mm_fault+0x1e45/0x2e00 mm/memory.c:4163
 handle_mm_fault+0x21b/0x530 mm/memory.c:4200
 faultin_page mm/gup.c:659 [inline]
 __get_user_pages+0x485/0x1130 mm/gup.c:870
 __get_user_pages_locked mm/gup.c:1057 [inline]
 get_user_pages_unlocked+0x23c/0x400 mm/gup.c:1765
 __gup_longterm_unlocked mm/gup.c:2423 [inline]
 internal_get_user_pages_fast mm/gup.c:2464 [inline]
 get_user_pages_fast+0x348/0x370 mm/gup.c:2505
 iov_iter_get_pages+0x1d3/0x8ba lib/iov_iter.c:1323
 __bio_iov_iter_get_pages block/bio.c:939 [inline]
 bio_iov_iter_get_pages+0x100/0x5a0 block/bio.c:995
 __blkdev_direct_IO fs/block_dev.c:386 [inline]
 blkdev_direct_IO+0x5e3/0xab0 fs/block_dev.c:476
 generic_file_read_iter+0x1b0/0x1440 mm/filemap.c:2281
 blkdev_read_iter+0xb2/0xe0 fs/block_dev.c:2039
 call_read_iter include/linux/fs.h:1895 [inline]
 do_iter_readv_writev+0x54b/0x5b0 fs/read_write.c:691
 do_iter_read+0x1fc/0x3d0 fs/read_write.c:933
 vfs_readv+0x9c/0xf0 fs/read_write.c:1053
 do_preadv+0x131/0x1d0 fs/read_write.c:1145
 __do_sys_preadv fs/read_write.c:1195 [inline]
 __se_sys_preadv fs/read_write.c:1190 [inline]
 __x64_sys_preadv+0x61/0x80 fs/read_write.c:1190
 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

write to 0xffff88812a7e86b8 of 16 bytes by task 9623 on cpu 0:
 setattr_copy+0x144/0x200 fs/attr.c:191
 shmem_setattr+0x22f/0x770 mm/shmem.c:1078
 notify_change+0x82b/0xb00 fs/attr.c:336
 utimes_common.isra.0+0x230/0x450 fs/utimes.c:60
 do_utimes+0x185/0x2c0 fs/utimes.c:125
 __do_sys_utimensat fs/utimes.c:153 [inline]
 __se_sys_utimensat fs/utimes.c:137 [inline]
 __x64_sys_utimensat+0x10d/0x180 fs/utimes.c:137
 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 9623 Comm: udevd 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/18 04:18 https://github.com/google/ktsan.git kcsan b12d66a6c34f 1ce142dc .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.