syzbot


KCSAN: data-race in fat16_ent_put / fat_search_long (2)

Status: closed as invalid on 2020/06/18 14:24
Subsystems: exfat
[Documentation on labels]
First crash: 1751d, last: 1715d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in fat16_ent_put / fat_search_long exfat 1 1912d 1910d 0/28 auto-closed as invalid on 2020/01/12 12:03

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

write to 0xffff8881155eca40 of 2 bytes by task 11320 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_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 0xffff8881155eca40 of 1 bytes by task 11341 on cpu 0:
 fat_search_long+0x1df/0xba0 fs/fat/dir.c:482
 vfat_find+0xb5/0xc0 fs/fat/namei_vfat.c:698
 vfat_lookup+0x73/0x340 fs/fat/namei_vfat.c:712
 lookup_open fs/namei.c:3060 [inline]
 open_last_lookups fs/namei.c:3155 [inline]
 path_openat+0xb33/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: 11341 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 (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/05/18 13:18 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 24d91142 .config console log report ci2-upstream-kcsan-gce
2020/04/12 03:34 https://github.com/google/ktsan.git kcsan 40959e34d670 a8c6a3f8 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.