syzbot


KCSAN: data-race in jbd2_journal_file_inode / jbd2_journal_finish_inode_data_buffers

Status: auto-closed as invalid on 2021/03/20 13:35
Subsystems: ext4
[Documentation on labels]
First crash: 1452d, last: 1445d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in jbd2_journal_file_inode / jbd2_journal_finish_inode_data_buffers (3) ext4 1 1090d 1090d 0/28 auto-closed as invalid on 2022/03/10 12:04
upstream KCSAN: data-race in jbd2_journal_file_inode / jbd2_journal_finish_inode_data_buffers (2) ext4 7 1149d 1195d 0/28 auto-closed as invalid on 2022/01/10 19:46

Sample crash report:
==================================================================
BUG: KCSAN: data-race in jbd2_journal_file_inode / jbd2_journal_finish_inode_data_buffers

write to 0xffff888103da1e38 of 8 bytes by task 13686 on cpu 0:
 jbd2_journal_file_inode+0x17a/0x330 fs/jbd2/transaction.c:2662
 jbd2_journal_inode_ranged_write+0x30/0x40 fs/jbd2/transaction.c:2700
 ext4_jbd2_inode_add_write fs/ext4/ext4_jbd2.h:418 [inline]
 ext4_map_blocks+0xe5c/0xff0 fs/ext4/inode.c:739
 ext4_iomap_alloc fs/ext4/inode.c:3427 [inline]
 ext4_iomap_begin+0x513/0x6a0 fs/ext4/inode.c:3477
 iomap_apply+0x8d/0x4a0 fs/iomap/apply.c:46
 __iomap_dio_rw+0x448/0x9b0 fs/iomap/direct-io.c:517
 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 0xffff888103da1e38 of 8 bytes by task 4840 on cpu 1:
 jbd2_journal_finish_inode_data_buffers+0x3d/0x60 fs/jbd2/commit.c:276
 ext4_journal_finish_inode_data_buffers+0x41/0x60 fs/ext4/super.c:543
 journal_finish_inode_data_buffers fs/jbd2/commit.c:299 [inline]
 jbd2_journal_commit_transaction+0x1635/0x32b0 fs/jbd2/commit.c:786
 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: 4840 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 (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/02/13 13:32 upstream c6d8570e4d64 98682e5e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_file_inode / jbd2_journal_finish_inode_data_buffers
2021/02/06 23:20 upstream 964d069f93c4 0655e081 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_file_inode / jbd2_journal_finish_inode_data_buffers
* Struck through repros no longer work on HEAD.