syzbot


KCSAN: data-race in delete_from_page_cache_batch / jbd2_journal_submit_inode_data_buffers

Status: auto-closed as invalid on 2021/03/18 02:29
Subsystems: ext4
[Documentation on labels]
First crash: 1170d, last: 1170d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in delete_from_page_cache_batch / jbd2_journal_submit_inode_data_buffers

write to 0xffff8881068efd58 of 8 bytes by task 4508 on cpu 1:
 page_cache_delete_batch mm/filemap.c:340 [inline]
 delete_from_page_cache_batch+0x597/0x820 mm/filemap.c:358
 truncate_inode_pages_range+0x482/0x10e0 mm/truncate.c:366
 truncate_inode_pages mm/truncate.c:476 [inline]
 truncate_pagecache+0x4f/0x70 mm/truncate.c:845
 ext4_setattr+0xae3/0xf60 fs/ext4/inode.c:5500
 notify_change+0x86d/0xa60 fs/attr.c:336
 do_truncate+0xe0/0x120 fs/open.c:64
 handle_truncate fs/namei.c:2912 [inline]
 do_open fs/namei.c:3258 [inline]
 path_openat+0x1a30/0x20a0 fs/namei.c:3371
 do_filp_open+0xbd/0x1d0 fs/namei.c:3398
 do_sys_openat2+0xa3/0x250 fs/open.c:1172
 do_sys_open fs/open.c:1188 [inline]
 __do_sys_creat fs/open.c:1262 [inline]
 __se_sys_creat fs/open.c:1256 [inline]
 __x64_sys_creat+0x62/0x80 fs/open.c:1256
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff8881068efd58 of 8 bytes by task 4853 on cpu 0:
 jbd2_journal_submit_inode_data_buffers+0x40/0xe0 fs/jbd2/commit.c:195
 ext4_journal_submit_inode_data_buffers+0x53/0x120 fs/ext4/super.c:533
 journal_submit_data_buffers+0xf0/0x260 fs/jbd2/commit.c:256
 jbd2_journal_commit_transaction+0x819/0x32b0 fs/jbd2/commit.c:591
 kjournald2+0x263/0x480 fs/jbd2/journal.c:213
 kthread+0x20b/0x230 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 4853 Comm: jbd2/sda1-8 Not tainted 5.11.0-rc7-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
2021/02/11 02:20 upstream 291009f656e8 a52ee10a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in delete_from_page_cache_batch / jbd2_journal_submit_inode_data_buffers
* Struck through repros no longer work on HEAD.