syzbot


KCSAN: data-race in __delete_from_page_cache / jbd2_journal_submit_inode_data_buffers

Status: auto-closed as invalid on 2021/03/12 14:06
Subsystems: iomap
[Documentation on labels]
First crash: 1177d, last: 1176d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __delete_from_page_cache / jbd2_journal_submit_inode_data_buffers (2) iomap 2 859d 890d 0/26 auto-closed as invalid on 2022/01/23 21:11

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

write to 0xffff88810d744d58 of 8 bytes by task 19142 on cpu 0:
 page_cache_delete mm/filemap.c:154 [inline]
 __delete_from_page_cache+0x28b/0x360 mm/filemap.c:239
 invalidate_complete_page2+0x126/0x2c0 mm/truncate.c:679
 invalidate_inode_pages2_range+0x49f/0x790 mm/truncate.c:772
 __iomap_dio_rw+0x52e/0x9b0 fs/iomap/direct-io.c:499
 iomap_dio_rw+0x30/0x70 fs/iomap/direct-io.c:605
 ext4_dio_write_iter fs/ext4/file.c:552 [inline]
 ext4_file_write_iter+0xe6a/0x1060 fs/ext4/file.c:662
 call_write_iter include/linux/fs.h:1901 [inline]
 do_iter_readv_writev+0x2cb/0x360 fs/read_write.c:740
 do_iter_write+0x112/0x4c0 fs/read_write.c:866
 vfs_iter_write+0x4c/0x70 fs/read_write.c:907
 iter_file_splice_write+0x41a/0x770 fs/splice.c:686
 do_splice_from fs/splice.c:764 [inline]
 direct_splice_actor+0x80/0xa0 fs/splice.c:933
 splice_direct_to_actor+0x345/0x650 fs/splice.c:888
 do_splice_direct+0xf5/0x170 fs/splice.c:976
 do_sendfile+0x5e0/0xcf0 fs/read_write.c:1257
 __do_sys_sendfile64 fs/read_write.c:1318 [inline]
 __se_sys_sendfile64 fs/read_write.c:1304 [inline]
 __x64_sys_sendfile64+0xf2/0x130 fs/read_write.c:1304
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88810d744d58 of 8 bytes by task 4853 on cpu 1:
 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: 1 PID: 4853 Comm: jbd2/sda1-8 Not tainted 5.11.0-rc6-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/02/05 14:06 upstream dd86e7fa07a3 23a562df .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __delete_from_page_cache / jbd2_journal_submit_inode_data_buffers
2021/02/05 01:47 upstream 5c279c4cf206 23a562df .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __delete_from_page_cache / jbd2_journal_submit_inode_data_buffers
* Struck through repros no longer work on HEAD.