syzbot


KCSAN: data-race in generic_write_end / mpage_submit_page

Status: closed as invalid on 2019/10/15 15:50
Subsystems: ext4
[Documentation on labels]
First crash: 1662d, last: 1652d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in generic_write_end / mpage_submit_page (2) ext4 166 1394d 1644d 0/26 auto-closed as invalid on 2020/08/02 18:32

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

read to 0xffff888125bdc178 of 8 bytes by task 7274 on cpu 0:
 mpage_submit_page+0x81/0x170 fs/ext4/inode.c:2248
 mpage_map_and_submit_buffers+0x331/0x520 fs/ext4/inode.c:2450
 mpage_map_and_submit_extent fs/ext4/inode.c:2584 [inline]
 ext4_writepages+0x147c/0x22e0 fs/ext4/inode.c:2897
 do_writepages+0x6b/0x170 mm/page-writeback.c:2342
 __filemap_fdatawrite_range+0x19e/0x200 mm/filemap.c:415
 __filemap_fdatawrite mm/filemap.c:423 [inline]
 filemap_flush+0x2d/0x40 mm/filemap.c:450
 ext4_alloc_da_blocks+0x78/0x180 fs/ext4/inode.c:3289
 ext4_ioctl+0x3da/0x29b0 fs/ext4/ioctl.c:977
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:509 [inline]
 do_vfs_ioctl+0x991/0xc60 fs/ioctl.c:696
 ksys_ioctl+0xbd/0xe0 fs/ioctl.c:713
 __do_sys_ioctl fs/ioctl.c:720 [inline]
 __se_sys_ioctl fs/ioctl.c:718 [inline]
 __x64_sys_ioctl+0x4c/0x60 fs/ioctl.c:718
 do_syscall_64+0xcf/0x2f0 arch/x86/entry/common.c:296
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

write to 0xffff888125bdc178 of 8 bytes by task 7271 on cpu 1:
 i_size_write include/linux/fs.h:875 [inline]
 generic_write_end+0xd0/0x1f0 fs/buffer.c:2143
 ext4_da_write_end+0x158/0x620 fs/ext4/inode.c:3217
 generic_perform_write+0x1d3/0x320 mm/filemap.c:3338
 __generic_file_write_iter+0x251/0x380 mm/filemap.c:3456
 ext4_file_write_iter+0x1fc/0xa40 fs/ext4/file.c:270
 call_write_iter include/linux/fs.h:1870 [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+0xcf/0x2f0 arch/x86/entry/common.c:296
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 7271 Comm: syz-executor.0 Not tainted 5.3.0+ #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/10/14 11:28 https://github.com/google/ktsan.git kcsan d724f94f63de a6aef847 .config console log report ci2-upstream-kcsan-gce
2019/10/08 18:00 https://github.com/google/ktsan.git kcsan d724f94f63de b1ebbfef .config console log report ci2-upstream-kcsan-gce
2019/10/04 14:37 https://github.com/google/ktsan.git kcsan b4bd934316dc c86336cf .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.