syzbot


KCSAN: data-race in jbd2_journal_get_write_access / jbd2_journal_update_sb_log_tail (3)

Status: closed as invalid on 2022/05/13 11:20
Subsystems: ext4
[Documentation on labels]
First crash: 995d, last: 995d
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 (2) ext4 14 1135d 1198d 0/28 auto-closed as invalid on 2022/01/24 06:22
upstream KCSAN: data-race in jbd2_journal_get_write_access / jbd2_journal_update_sb_log_tail ext4 1 1447d 1447d 0/28 auto-closed as invalid on 2021/03/18 11:19

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

read-write to 0xffff888103dec000 of 8 bytes by task 1404 on cpu 0:
 jbd2_journal_update_sb_log_tail+0x16e/0x1a0 fs/jbd2/journal.c:1695
 jbd2_journal_commit_transaction+0x22a/0x3180 fs/jbd2/commit.c:430
 kjournald2+0x253/0x460 fs/jbd2/journal.c:213
 kthread+0x1a9/0x1e0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30

read to 0xffff888103dec000 of 8 bytes by task 9398 on cpu 1:
 is_journal_aborted include/linux/jbd2.h:1689 [inline]
 is_handle_aborted include/linux/jbd2.h:1696 [inline]
 jbd2_journal_get_write_access+0x60/0x1c0 fs/jbd2/transaction.c:1232
 __ext4_journal_get_write_access+0x174/0x450 fs/ext4/ext4_jbd2.c:235
 ext4_reserve_inode_write+0x14c/0x1f0 fs/ext4/inode.c:5746
 ext4_xattr_set_handle+0x363/0xbd0 fs/ext4/xattr.c:2319
 ext4_initxattrs+0x66/0xb0 fs/ext4/xattr_security.c:44
 security_inode_init_security+0x1b8/0x280 security/security.c:1116
 ext4_init_security+0x30/0x40 fs/ext4/xattr_security.c:58
 __ext4_new_inode+0x24c1/0x2700 fs/ext4/ialloc.c:1325
 ext4_create+0x179/0x300 fs/ext4/namei.c:2746
 lookup_open fs/namei.c:3330 [inline]
 open_last_lookups fs/namei.c:3400 [inline]
 path_openat+0xc50/0x1b30 fs/namei.c:3606
 do_filp_open+0x105/0x220 fs/namei.c:3636
 do_sys_openat2+0xb5/0x2a0 fs/open.c:1213
 do_sys_open fs/open.c:1229 [inline]
 __do_sys_openat fs/open.c:1245 [inline]
 __se_sys_openat fs/open.c:1240 [inline]
 __x64_sys_openat+0xef/0x110 fs/open.c:1240
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x0000000000000038 -> 0x0000000000000230

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 9398 Comm: syz-executor.0 Not tainted 5.18.0-rc6-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
2022/05/09 03:32 upstream c5eb0a61238d e60b1103 .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.