syzbot


KCSAN: data-race in _copy_to_iter / fat_alloc_new_dir

Status: auto-obsoleted due to no activity on 2023/11/12 15:57
Subsystems: exfat
[Documentation on labels]
First crash: 478d, last: 478d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in _copy_to_iter / fat_alloc_new_dir

write to 0xffff88814549f02b of 1 bytes by task 18847 on cpu 1:
 fat_alloc_new_dir+0x218/0x510 fs/fat/dir.c:1163
 msdos_mkdir+0x1e9/0x350 fs/fat/namei_msdos.c:367
 vfs_mkdir+0x1ac/0x2b0 fs/namei.c:4120
 do_mkdirat+0xf9/0x260 fs/namei.c:4143
 __do_sys_mkdirat fs/namei.c:4158 [inline]
 __se_sys_mkdirat fs/namei.c:4156 [inline]
 __x64_sys_mkdirat+0x50/0x60 fs/namei.c:4156
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff88814549f000 of 1024 bytes by task 4131 on cpu 0:
 instrument_copy_to_user include/linux/instrumented.h:113 [inline]
 copyout lib/iov_iter.c:167 [inline]
 _copy_to_iter+0x12b/0x950 lib/iov_iter.c:316
 copy_page_to_iter+0x171/0x2b0 lib/iov_iter.c:481
 copy_folio_to_iter include/linux/uio.h:185 [inline]
 filemap_read+0x424/0x680 mm/filemap.c:2703
 blkdev_read_iter+0x217/0x2c0 block/fops.c:730
 call_read_iter include/linux/fs.h:1950 [inline]
 new_sync_read fs/read_write.c:389 [inline]
 vfs_read+0x3da/0x5c0 fs/read_write.c:470
 ksys_read+0xeb/0x1a0 fs/read_write.c:613
 __do_sys_read fs/read_write.c:623 [inline]
 __se_sys_read fs/read_write.c:621 [inline]
 __x64_sys_read+0x42/0x50 fs/read_write.c:621
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 4131 Comm: udevd Not tainted 6.6.0-rc4-syzkaller-00284-gb9ddbb0cde2a #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/10/08 15:50 upstream b9ddbb0cde2a 5e837c76 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in _copy_to_iter / fat_alloc_new_dir
* Struck through repros no longer work on HEAD.