syzbot


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

Status: closed as invalid on 2022/05/13 11:20
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 215d, last: 211d
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 (3) 5 309d 311d 0/24 auto-closed as invalid on 2022/03/10 19:17
upstream KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata (2) 160 353d 395d 0/24 auto-closed as invalid on 2022/01/25 08:30
upstream KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata 56 637d 636d 0/24 auto-closed as invalid on 2021/04/16 10:23

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

write to 0xffff88812bf314e4 of 4 bytes by task 1839 on cpu 1:
 jbd2_journal_dirty_metadata+0x2f7/0x680 fs/jbd2/transaction.c:1547
 __ext4_handle_dirty_metadata+0xe2/0x470 fs/ext4/ext4_jbd2.c:350
 ext4_mb_clear_bb+0xe7a/0x11f0 fs/ext4/mballoc.c:6055
 ext4_free_blocks+0x736/0x840 fs/ext4/mballoc.c:6164
 ext4_remove_blocks+0x724/0x950 fs/ext4/extents.c:2538
 ext4_ext_rm_leaf+0x6d1/0xf30 fs/ext4/extents.c:2704
 ext4_ext_remove_space+0x86a/0x1470 fs/ext4/extents.c:2952
 ext4_ext_truncate+0x11c/0x1a0 fs/ext4/extents.c:4412
 ext4_truncate+0x74d/0xab0 fs/ext4/inode.c:4238
 ext4_evict_inode+0xa1d/0xe40 fs/ext4/inode.c:286
 evict+0x1aa/0x410 fs/inode.c:664
 iput_final fs/inode.c:1744 [inline]
 iput+0x3f9/0x580 fs/inode.c:1770
 d_delete_notify include/linux/fsnotify.h:261 [inline]
 vfs_rmdir+0x270/0x2f0 fs/namei.c:4030
 do_rmdir+0x178/0x300 fs/namei.c:4078
 __do_sys_unlinkat fs/namei.c:4258 [inline]
 __se_sys_unlinkat fs/namei.c:4252 [inline]
 __x64_sys_unlinkat+0xa0/0xb0 fs/namei.c:4252
 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

read to 0xffff88812bf314e4 of 4 bytes by task 1822 on cpu 0:
 jbd2_journal_dirty_metadata+0x170/0x680 fs/jbd2/transaction.c:1515
 __ext4_handle_dirty_metadata+0xe2/0x470 fs/ext4/ext4_jbd2.c:350
 ext4_mb_clear_bb+0xe7a/0x11f0 fs/ext4/mballoc.c:6055
 ext4_free_blocks+0x736/0x840 fs/ext4/mballoc.c:6164
 ext4_remove_blocks+0x724/0x950 fs/ext4/extents.c:2538
 ext4_ext_rm_leaf+0x6d1/0xf30 fs/ext4/extents.c:2704
 ext4_ext_remove_space+0x86a/0x1470 fs/ext4/extents.c:2952
 ext4_ext_truncate+0x11c/0x1a0 fs/ext4/extents.c:4412
 ext4_truncate+0x74d/0xab0 fs/ext4/inode.c:4238
 ext4_evict_inode+0xa1d/0xe40 fs/ext4/inode.c:286
 evict+0x1aa/0x410 fs/inode.c:664
 iput_final fs/inode.c:1744 [inline]
 iput+0x3f9/0x580 fs/inode.c:1770
 d_delete_notify include/linux/fsnotify.h:261 [inline]
 vfs_rmdir+0x270/0x2f0 fs/namei.c:4030
 do_rmdir+0x178/0x300 fs/namei.c:4078
 __do_sys_unlinkat fs/namei.c:4258 [inline]
 __se_sys_unlinkat fs/namei.c:4252 [inline]
 __x64_sys_unlinkat+0xa0/0xb0 fs/namei.c:4252
 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: 0x00000000 -> 0x00000001

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 1822 Comm: syz-executor.1 Not tainted 5.18.0-rc6-syzkaller-00009-gfeb9c5e19e91 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (18):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/05/12 14:07 upstream feb9c5e19e91 9ad6612a .config log report info KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
ci2-upstream-kcsan-gce 2022/05/11 19:29 upstream feb9c5e19e91 beb0b407 .config log report info KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
ci2-upstream-kcsan-gce 2022/05/10 23:24 upstream feb9c5e19e91 8d7b3b67 .config log report info KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
ci2-upstream-kcsan-gce 2022/05/09 16:32 upstream 9be9ed2612b5 8b277b8e .config log report info KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
ci2-upstream-kcsan-gce 2022/05/09 10:36 upstream c5eb0a61238d 8b277b8e .config log report info KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
ci2-upstream-kcsan-gce 2022/05/09 08:14 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
ci2-upstream-kcsan-gce 2022/05/09 07:37 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
ci2-upstream-kcsan-gce 2022/05/09 07:17 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
ci2-upstream-kcsan-gce 2022/05/09 06:29 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
ci2-upstream-kcsan-gce 2022/05/09 04:42 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
ci2-upstream-kcsan-gce 2022/05/09 03:50 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
ci2-upstream-kcsan-gce 2022/05/09 03:14 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
ci2-upstream-kcsan-gce 2022/05/09 02:08 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
ci2-upstream-kcsan-gce 2022/05/08 22:45 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
ci2-upstream-kcsan-gce 2022/05/08 22:12 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
ci2-upstream-kcsan-gce 2022/05/08 21:39 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
ci2-upstream-kcsan-gce 2022/05/08 19:47 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
ci2-upstream-kcsan-gce 2022/05/08 17:57 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
* Struck through repros no longer work on HEAD.