syzbot


KCSAN: data-race in do_get_write_access / jbd2_journal_commit_transaction

Status: auto-closed as invalid on 2021/03/24 19:15
Subsystems: ext4
[Documentation on labels]
First crash: 1178d, last: 1178d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in do_get_write_access / jbd2_journal_commit_transaction

write to 0xffff888102579000 of 8 bytes by task 4842 on cpu 1:
 jbd2_journal_commit_transaction+0x2982/0x32b0 fs/jbd2/commit.c:1181
 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

read to 0xffff888102579000 of 8 bytes by task 8408 on cpu 0:
 is_journal_aborted include/linux/jbd2.h:1647 [inline]
 is_handle_aborted include/linux/jbd2.h:1654 [inline]
 do_get_write_access+0x35e/0x8a0 fs/jbd2/transaction.c:1010
 jbd2_journal_get_write_access+0x10c/0x1c0 fs/jbd2/transaction.c:1211
 __ext4_journal_get_write_access+0x17e/0x2c0 fs/ext4/ext4_jbd2.c:231
 ext4_reserve_inode_write+0x144/0x1f0 fs/ext4/inode.c:5747
 __ext4_mark_inode_dirty+0x6f/0x5e0 fs/ext4/inode.c:5911
 ext4_rmdir+0x8eb/0x970 fs/ext4/namei.c:3170
 vfs_rmdir+0x135/0x2a0 fs/namei.c:3715
 do_rmdir+0x16e/0x300 fs/namei.c:3776
 __do_sys_rmdir fs/namei.c:3794 [inline]
 __se_sys_rmdir fs/namei.c:3792 [inline]
 __x64_sys_rmdir+0x2c/0x30 fs/namei.c:3792
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 8408 Comm: syz-executor.2 Not tainted 5.11.0-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/17 19:09 upstream f40ddce88593 14052202 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in do_get_write_access / jbd2_journal_commit_transaction
* Struck through repros no longer work on HEAD.