syzbot


KCSAN: data-race in jbd2_journal_get_write_access / jbd2_journal_update_sb_log_tail

Status: auto-closed as invalid on 2021/03/18 11:19
Subsystems: ext4
[Documentation on labels]
First crash: 1161d, last: 1161d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in jbd2_journal_get_write_access / jbd2_journal_update_sb_log_tail (3) ext4 1 709d 709d 0/26 closed as invalid on 2022/05/13 11:20
upstream KCSAN: data-race in jbd2_journal_get_write_access / jbd2_journal_update_sb_log_tail (2) ext4 14 849d 912d 0/26 auto-closed as invalid on 2022/01/24 06:22

Sample crash report:
==================================================================
BUG: KCSAN: data-race in jbd2_journal_get_write_access / jbd2_journal_update_sb_log_tail

write to 0xffff88810610d800 of 8 bytes by task 4853 on cpu 1:
 jbd2_journal_update_sb_log_tail+0x134/0x170 fs/jbd2/journal.c:1637
 __jbd2_update_log_tail+0x41/0x1f0 fs/jbd2/journal.c:1115
 jbd2_update_log_tail+0x5d/0x80 fs/jbd2/journal.c:1149
 jbd2_journal_commit_transaction+0x2168/0x32b0 fs/jbd2/commit.c:950
 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 0xffff88810610d800 of 8 bytes by task 15631 on cpu 0:
 is_journal_aborted include/linux/jbd2.h:1647 [inline]
 is_handle_aborted include/linux/jbd2.h:1654 [inline]
 jbd2_journal_get_write_access+0x60/0x1c0 fs/jbd2/transaction.c:1201
 __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
 add_dirent_to_buf+0x498/0x610 fs/ext4/namei.c:2031
 ext4_add_entry+0x62e/0x21a0 fs/ext4/namei.c:2242
 ext4_add_nondir+0x50/0x1a0 fs/ext4/namei.c:2576
 ext4_symlink+0x538/0x780 fs/ext4/namei.c:3406
 vfs_symlink+0x216/0x2d0 fs/namei.c:3962
 do_symlinkat+0xee/0x280 fs/namei.c:3989
 __do_sys_symlink fs/namei.c:4008 [inline]
 __se_sys_symlink fs/namei.c:4006 [inline]
 __x64_sys_symlink+0x32/0x40 fs/namei.c:4006
 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: 15631 Comm: syz-executor.2 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 11:13 upstream 291009f656e8 a52ee10a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_get_write_access / jbd2_journal_update_sb_log_tail
* Struck through repros no longer work on HEAD.