syzbot


KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle (2)

Status: auto-closed as invalid on 2022/03/10 18:26
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 297d, last: 297d
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle (3) 1 202d 202d 0/24 closed as invalid on 2022/05/13 11:20
upstream KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle 47 342d 407d 0/24 auto-closed as invalid on 2022/01/25 10:45

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle

write to 0xffff888103eb0078 of 8 bytes by task 16818 on cpu 1:
 jbd2_get_transaction fs/jbd2/transaction.c:125 [inline]
 start_this_handle+0xd37/0x1050 fs/jbd2/transaction.c:416
 jbd2__journal_start+0x1fc/0x3f0 fs/jbd2/transaction.c:525
 __ext4_journal_start_sb+0x159/0x310 fs/ext4/ext4_jbd2.c:105
 __ext4_new_inode+0xced/0x30b0 fs/ext4/ialloc.c:1080
 ext4_symlink+0x2cc/0x700 fs/ext4/namei.c:3293
 vfs_symlink+0x18a/0x280 fs/namei.c:4299
 do_symlinkat+0x104/0x380 fs/namei.c:4328
 __do_sys_symlink fs/namei.c:4350 [inline]
 __se_sys_symlink fs/namei.c:4348 [inline]
 __x64_sys_symlink+0x52/0x60 fs/namei.c:4348
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888103eb0078 of 8 bytes by task 1404 on cpu 0:
 __jbd2_journal_drop_transaction+0x1f0/0x2f0 fs/jbd2/checkpoint.c:803
 __jbd2_journal_remove_checkpoint+0x2d5/0x3a0 fs/jbd2/checkpoint.c:734
 jbd2_journal_commit_transaction+0x23f1/0x3460 fs/jbd2/commit.c:1019
 kjournald2+0x263/0x480 fs/jbd2/journal.c:213
 kthread+0x1bf/0x1e0 kernel/kthread.c:377
 ret_from_fork+0x1f/0x30

value changed: 0x0000000000000000 -> 0xffff88814e854c00

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 1404 Comm: jbd2/sda1-8 Not tainted 5.17.0-rc2-syzkaller-00060-g88808fbbead4 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/02/03 18:24 upstream 88808fbbead4 4ebb2798 .config log report info KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle
* Struck through repros no longer work on HEAD.