syzbot


KCSAN: data-race in fat16_ent_put / fat_fill_inode

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

Sample crash report:
==================================================================
BUG: KCSAN: data-race in fat16_ent_put / fat_fill_inode

write to 0xffff8881045243da of 2 bytes by task 17287 on cpu 1:
 fat16_ent_put+0x54/0x90 fs/fat/fatent.c:181
 fat_alloc_clusters+0x4e1/0xbf0 fs/fat/fatent.c:501
 fat_add_cluster+0x3b/0xd0 fs/fat/inode.c:108
 fat_fallocate+0x13b/0x1d0 fs/fat/file.c:291
 vfs_fallocate+0x3b1/0x640 fs/open.c:309
 ksys_fallocate+0x5b/0xa0 fs/open.c:332
 __do_sys_fallocate fs/open.c:340 [inline]
 __se_sys_fallocate fs/open.c:338 [inline]
 __x64_sys_fallocate+0x59/0x70 fs/open.c:338
 do_syscall_64+0xc7/0x3b0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff8881045243da of 2 bytes by task 17290 on cpu 0:
 fat_fill_inode+0x2c2/0xae0 fs/fat/inode.c:550
 fat_build_inode+0x173/0x1fb fs/fat/inode.c:608
 vfat_create+0x18f/0x2a0 fs/fat/namei_vfat.c:776
 lookup_open fs/namei.c:3081 [inline]
 open_last_lookups fs/namei.c:3155 [inline]
 path_openat+0x1f95/0x23d0 fs/namei.c:3343
 do_filp_open+0x11e/0x1b0 fs/namei.c:3373
 do_sys_openat2+0x52e/0x680 fs/open.c:1148
 do_sys_open+0xa2/0x110 fs/open.c:1164
 ksys_open include/linux/syscalls.h:1386 [inline]
 __do_sys_open fs/open.c:1170 [inline]
 __se_sys_open fs/open.c:1168 [inline]
 __x64_sys_open+0x50/0x60 fs/open.c:1168
 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: 0 PID: 17290 Comm: syz-executor.5 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/05/12 13:00 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 a497a5b4 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.