syzbot


KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata (3)

Status: auto-closed as invalid on 2022/03/10 19:17
Subsystems: ext4
[Documentation on labels]
First crash: 1041d, last: 1039d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata (2) ext4 160 1084d 1126d 0/28 auto-closed as invalid on 2022/01/25 08:30
upstream KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata ext4 56 1368d 1366d 0/28 auto-closed as invalid on 2021/04/16 10:23
upstream KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata (4) ext4 18 942d 945d 0/28 closed as invalid on 2022/05/13 11:20

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

write to 0xffff888103a310f4 of 4 bytes by task 1839 on cpu 0:
 jbd2_journal_dirty_metadata+0x2f6/0x690 fs/jbd2/transaction.c:1538
 __ext4_handle_dirty_metadata+0xfb/0x5a0 fs/ext4/ext4_jbd2.c:350
 ext4_free_inode+0x8cf/0xa30 fs/ext4/ialloc.c:351
 ext4_evict_inode+0xbff/0xf10 fs/ext4/inode.c:333
 evict+0x1aa/0x410 fs/inode.c:664
 iput_final fs/inode.c:1744 [inline]
 iput+0x3ef/0x580 fs/inode.c:1770
 d_delete_notify include/linux/fsnotify.h:261 [inline]
 vfs_rmdir+0x270/0x320 fs/namei.c:4032
 do_rmdir+0x18d/0x330 fs/namei.c:4080
 __do_sys_rmdir fs/namei.c:4099 [inline]
 __se_sys_rmdir fs/namei.c:4097 [inline]
 __x64_sys_rmdir+0x2c/0x30 fs/namei.c:4097
 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 0xffff888103a310f4 of 4 bytes by task 1843 on cpu 1:
 jbd2_journal_dirty_metadata+0x16f/0x690 fs/jbd2/transaction.c:1506
 __ext4_handle_dirty_metadata+0xfb/0x5a0 fs/ext4/ext4_jbd2.c:350
 ext4_free_inode+0x8cf/0xa30 fs/ext4/ialloc.c:351
 ext4_evict_inode+0xbff/0xf10 fs/ext4/inode.c:333
 evict+0x1aa/0x410 fs/inode.c:664
 iput_final fs/inode.c:1744 [inline]
 iput+0x3ef/0x580 fs/inode.c:1770
 d_delete_notify include/linux/fsnotify.h:261 [inline]
 vfs_rmdir+0x270/0x320 fs/namei.c:4032
 do_rmdir+0x18d/0x330 fs/namei.c:4080
 __do_sys_rmdir fs/namei.c:4099 [inline]
 __se_sys_rmdir fs/namei.c:4097 [inline]
 __x64_sys_rmdir+0x2c/0x30 fs/namei.c:4097
 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

value changed: 0x00000000 -> 0x00000001

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 1843 Comm: syz-executor.4 Not tainted 5.17.0-rc2-syzkaller-00064-gc36c04c2e132 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/02/03 19:15 upstream c36c04c2e132 30646bfe .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2022/02/03 08:01 upstream 88808fbbead4 4ebb2798 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2022/02/02 19:42 upstream 27bb0b18c208 4ebb2798 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2022/02/02 19:25 upstream 27bb0b18c208 4ebb2798 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2022/02/01 22:31 upstream 9f7fb8de5d9b 4ebb2798 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
* Struck through repros no longer work on HEAD.