syzbot


KCSAN: data-race in ext4_direct_IO / generic_file_read_iter

Status: auto-closed as invalid on 2020/02/14 01:06
Subsystems: ext4
[Documentation on labels]
First crash: 2078d, last: 2078d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in ext4_direct_IO / generic_file_read_iter

read to 0xffff888128b26678 of 8 bytes by task 8755 on cpu 1:
 generic_file_buffered_read mm/filemap.c:2106 [inline]
 generic_file_read_iter+0x860/0x1440 mm/filemap.c:2324
 ext4_file_read_iter fs/ext4/file.c:77 [inline]
 ext4_file_read_iter+0xfa/0x240 fs/ext4/file.c:65
 call_read_iter include/linux/fs.h:1889 [inline]
 new_sync_read+0x389/0x4f0 fs/read_write.c:414
 __vfs_read+0xb1/0xc0 fs/read_write.c:427
 integrity_kernel_read+0xa1/0xe0 security/integrity/iint.c:200
 ima_calc_file_hash_tfm+0x1b5/0x260 security/integrity/ima/ima_crypto.c:360
 ima_calc_file_shash security/integrity/ima/ima_crypto.c:389 [inline]
 ima_calc_file_hash+0x158/0xf40 security/integrity/ima/ima_crypto.c:454
 ima_collect_measurement+0x3b1/0x3e0 security/integrity/ima/ima_api.c:247
 process_measurement+0x9e3/0x1130 security/integrity/ima/ima_main.c:326
 ima_file_check+0x7e/0xb0 security/integrity/ima/ima_main.c:438
 do_last fs/namei.c:3412 [inline]
 path_openat+0xfaf/0x36e0 fs/namei.c:3525
 do_filp_open+0x11e/0x1b0 fs/namei.c:3555
 do_sys_open+0x3b3/0x4f0 fs/open.c:1097
 __do_sys_openat fs/open.c:1124 [inline]
 __se_sys_openat fs/open.c:1118 [inline]
 __x64_sys_openat+0x62/0x80 fs/open.c:1118
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

write to 0xffff888128b26678 of 8 bytes by task 8760 on cpu 0:
 i_size_write include/linux/fs.h:888 [inline]
 ext4_direct_IO_write fs/ext4/inode.c:3799 [inline]
 ext4_direct_IO+0xd51/0xfb0 fs/ext4/inode.c:3871
 generic_file_direct_write+0x14d/0x2e0 mm/filemap.c:3208
 __generic_file_write_iter+0x17e/0x380 mm/filemap.c:3391
 ext4_file_write_iter+0x1bd/0xa00 fs/ext4/file.c:268
 call_write_iter include/linux/fs.h:1895 [inline]
 new_sync_write+0x388/0x4a0 fs/read_write.c:483
 __vfs_write+0xb1/0xc0 fs/read_write.c:496
 vfs_write fs/read_write.c:558 [inline]
 vfs_write+0x18a/0x390 fs/read_write.c:542
 ksys_write+0xd5/0x1b0 fs/read_write.c:611
 __do_sys_write fs/read_write.c:623 [inline]
 __se_sys_write fs/read_write.c:620 [inline]
 __x64_sys_write+0x4c/0x60 fs/read_write.c:620
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 8760 Comm: syz-executor.5 Not tainted 5.4.0-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
2019/12/06 00:59 https://github.com/google/ktsan.git kcsan ef798c30ba4e 98b4ef2d .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.