syzbot


KCSAN: data-race in ext4_setattr / mpage_submit_page (4)

Status: auto-closed as invalid on 2020/08/02 08:15
Subsystems: ext4
[Documentation on labels]
First crash: 1391d, last: 1391d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in ext4_setattr / mpage_submit_page (3) ext4 4 1437d 1516d 0/26 auto-closed as invalid on 2020/06/18 14:03
upstream KCSAN: data-race in ext4_setattr / mpage_submit_page (2) ext4 1 1594d 1594d 0/26 auto-closed as invalid on 2020/02/16 17:06
upstream KCSAN: data-race in ext4_setattr / mpage_submit_page ext4 1 1631d 1631d 0/26 closed as invalid on 2019/11/19 13:24

Sample crash report:
==================================================================
BUG: KCSAN: data-race in ext4_setattr / mpage_submit_page

write to 0xffff88811f0e11f8 of 8 bytes by task 14494 on cpu 0:
 i_size_write include/linux/fs.h:896 [inline]
 ext4_setattr+0xd50/0xeb0 fs/ext4/inode.c:5386
 notify_change+0x7d4/0xa20 fs/attr.c:336
 do_truncate+0xe0/0x120 fs/open.c:64
 handle_truncate fs/namei.c:2901 [inline]
 do_open fs/namei.c:3247 [inline]
 path_openat+0x1a4c/0x20e0 fs/namei.c:3360
 do_filp_open+0xbd/0x1d0 fs/namei.c:3387
 do_sys_openat2+0x33c/0x4a0 fs/open.c:1179
 do_sys_open fs/open.c:1195 [inline]
 __do_sys_openat fs/open.c:1209 [inline]
 __se_sys_openat fs/open.c:1204 [inline]
 __x64_sys_openat+0xef/0x110 fs/open.c:1204
 do_syscall_64+0x71/0x120 arch/x86/entry/common.c:359
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88811f0e11f8 of 8 bytes by task 14490 on cpu 1:
 i_size_read include/linux/fs.h:874 [inline]
 mpage_submit_page+0x67/0x170 fs/ext4/inode.c:2076
 mpage_map_and_submit_buffers fs/ext4/inode.c:2330 [inline]
 mpage_map_and_submit_extent fs/ext4/inode.c:2469 [inline]
 ext4_writepages+0x106b/0x1cb0 fs/ext4/inode.c:2782
 do_writepages+0x7b/0x150 mm/page-writeback.c:2354
 __filemap_fdatawrite_range+0x19b/0x1d0 mm/filemap.c:421
 __filemap_fdatawrite mm/filemap.c:429 [inline]
 filemap_flush+0x1f/0x30 mm/filemap.c:456
 ext4_alloc_da_blocks+0x4c/0x130 fs/ext4/inode.c:3146
 ext4_release_file+0x36/0x180 fs/ext4/file.c:142
 __fput+0x1df/0x460 fs/file_table.c:281
 ____fput+0x11/0x20 fs/file_table.c:314
 task_work_run+0x8e/0x110 kernel/task_work.c:123
 tracehook_notify_resume include/linux/tracehook.h:188 [inline]
 exit_to_usermode_loop arch/x86/entry/common.c:216 [inline]
 __prepare_exit_to_usermode+0x1c8/0x230 arch/x86/entry/common.c:246
 __syscall_return_slowpath arch/x86/entry/common.c:329 [inline]
 do_syscall_64+0xb9/0x120 arch/x86/entry/common.c:368
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 14490 Comm: syz-executor.0 Not tainted 5.8.0-rc2-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/06/28 08:08 upstream 916a3b0fc120 a2cdad9d .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.