syzbot


KCSAN: data-race in ext4_write_end / mpage_process_page_bufs

Status: auto-closed as invalid on 2020/03/01 21:02
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 965d, last: 965d
similar bugs (3):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in ext4_write_end / mpage_process_page_bufs (2) 6 804d 874d 0/23 closed as invalid on 2020/06/18 14:24
upstream KCSAN: data-race in ext4_write_end / mpage_process_page_bufs (3) 150 248d 615d 0/23 auto-closed as invalid on 2022/01/12 03:52
upstream KCSAN: data-race in ext4_write_end / mpage_process_page_bufs (4) 1 97d 97d 0/23 closed as invalid on 2022/05/13 11:20

Sample crash report:
==================================================================
BUG: KCSAN: data-race in ext4_write_end / mpage_process_page_bufs

write to 0xffff88812572ba38 of 8 bytes by task 12348 on cpu 1:
 i_size_write include/linux/fs.h:888 [inline]
 ext4_update_inode_size fs/ext4/ext4.h:2982 [inline]
 ext4_write_end+0x304/0x800 fs/ext4/inode.c:1288
 generic_perform_write+0x1d3/0x320 mm/filemap.c:3320
 ext4_buffered_write_iter+0x143/0x290 fs/ext4/file.c:252
 ext4_file_write_iter+0xf4/0xd40 fs/ext4/file.c:547
 call_write_iter include/linux/fs.h:1902 [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/0x3a0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88812572ba38 of 8 bytes by task 21 on cpu 0:
 mpage_process_page_bufs+0x40/0x400 fs/ext4/inode.c:2167
 mpage_prepare_extent_to_map+0x48b/0x760 fs/ext4/inode.c:2596
 ext4_writepages+0x974/0x2500 fs/ext4/inode.c:2724
 do_writepages+0x6b/0x170 mm/page-writeback.c:2344
 __writeback_single_inode+0xaf/0x8e0 fs/fs-writeback.c:1452
 writeback_sb_inodes+0x4ba/0xa50 fs/fs-writeback.c:1716
 __writeback_inodes_wb+0xe8/0x1b0 fs/fs-writeback.c:1785
 wb_writeback+0x557/0x6a0 fs/fs-writeback.c:1894
 wb_check_background_flush fs/fs-writeback.c:1962 [inline]
 wb_do_writeback fs/fs-writeback.c:2050 [inline]
 wb_workfn+0x696/0x970 fs/fs-writeback.c:2078
 process_one_work+0x3d4/0x890 kernel/workqueue.c:2264
 worker_thread+0xa0/0x800 kernel/workqueue.c:2410
 kthread+0x1d4/0x200 drivers/block/aoe/aoecmd.c:1253
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 21 Comm: kworker/u4:1 Not tainted 5.5.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: writeback wb_workfn (flush-8:0)
==================================================================

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2019/12/22 20:56 https://github.com/google/ktsan.git kcsan 245a43005292 8b967267 .config log report