syzbot


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

Status: auto-closed as invalid on 2022/01/25 08:30
Subsystems: ext4
[Documentation on labels]
Reported-by: syzbot+4aa092eb55a73e7ca545@syzkaller.appspotmail.com
First crash: 1167d, last: 1101d
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) ext4 5 1056d 1058d 0/28 auto-closed as invalid on 2022/03/10 19:17
upstream KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata ext4 56 1384d 1383d 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 958d 962d 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 0xffff888105f14864 of 4 bytes by task 1827 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:348
 ext4_do_update_inode fs/ext4/inode.c:5106 [inline]
 ext4_mark_iloc_dirty+0x513/0x890 fs/ext4/inode.c:5694
 __ext4_mark_inode_dirty+0x4ec/0x5f0 fs/ext4/inode.c:5890
 ext4_dirty_inode+0x86/0xa0 fs/ext4/inode.c:5919
 __mark_inode_dirty+0x72/0x6c0 fs/fs-writeback.c:2399
 generic_update_time fs/inode.c:1782 [inline]
 inode_update_time fs/inode.c:1795 [inline]
 touch_atime+0x1c4/0x2e0 fs/inode.c:1867
 file_accessed include/linux/fs.h:2505 [inline]
 iterate_dir+0x36d/0x3c0 fs/readdir.c:70
 __do_sys_getdents64 fs/readdir.c:369 [inline]
 __se_sys_getdents64+0x8e/0x1a0 fs/readdir.c:354
 __x64_sys_getdents64+0x3f/0x50 fs/readdir.c:354
 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 0xffff888105f14864 of 4 bytes by task 1829 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:348
 ext4_do_update_inode fs/ext4/inode.c:5106 [inline]
 ext4_mark_iloc_dirty+0x513/0x890 fs/ext4/inode.c:5694
 __ext4_mark_inode_dirty+0x4ec/0x5f0 fs/ext4/inode.c:5890
 ext4_dirty_inode+0x86/0xa0 fs/ext4/inode.c:5919
 __mark_inode_dirty+0x72/0x6c0 fs/fs-writeback.c:2399
 generic_update_time fs/inode.c:1782 [inline]
 inode_update_time fs/inode.c:1795 [inline]
 touch_atime+0x1c4/0x2e0 fs/inode.c:1867
 file_accessed include/linux/fs.h:2505 [inline]
 iterate_dir+0x36d/0x3c0 fs/readdir.c:70
 __do_sys_getdents64 fs/readdir.c:369 [inline]
 __se_sys_getdents64+0x8e/0x1a0 fs/readdir.c:354
 __x64_sys_getdents64+0x3f/0x50 fs/readdir.c:354
 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: 1829 Comm: syz-executor.2 Not tainted 5.16.0-rc6-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (160):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/12/21 08:29 upstream 6e0567b73052 a938f0b8 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/12/20 20:59 upstream 86085fe79e3c 62bd192b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/12/20 08:31 upstream a7904a538933 021b36cb .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/12/19 21:21 upstream a76c3d035872 44068e19 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/12/19 06:23 upstream 3f667b5d4053 44068e19 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/12/18 04:13 upstream 9eaa88c7036e 44068e19 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/12/17 14:53 upstream 6441998e2e37 44068e19 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/12/17 01:40 upstream fa36bbe6d43f 44068e19 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/12/16 19:16 upstream fa36bbe6d43f 8dd6a5e3 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/12/16 13:26 upstream 2b14864acbaa 8dd6a5e3 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/12/15 19:54 upstream 2b14864acbaa 572bcb40 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/12/15 18:08 upstream 5472f14a3742 572bcb40 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/12/15 00:08 upstream 5472f14a3742 f752fb53 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/12/14 12:24 upstream 5472f14a3742 d018dd31 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/12/14 00:15 upstream 5472f14a3742 5d14b1ea .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/12/13 11:47 upstream 2585cf9dfaad 0304899b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/12/13 10:36 upstream 2585cf9dfaad 49ca1f59 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/12/12 20:23 upstream 90d9fbc16b69 49ca1f59 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/12/12 04:31 upstream a763d5a5abd6 49ca1f59 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/12/11 15:26 upstream 6f513529296f 49ca1f59 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/12/11 02:09 upstream 9e65da135b39 49ca1f59 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/12/10 13:53 upstream c741e49150db fc17c959 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/12/10 01:29 upstream ded746bfc943 4d4ce9bc .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/12/09 20:30 upstream ded746bfc943 b54aa474 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/12/09 13:22 upstream 2a987e65025e b54aa474 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/12/08 09:33 upstream 2a987e65025e a4a2a501 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/12/08 01:03 upstream 2a987e65025e 0230ba3e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/12/07 11:57 upstream cd8c917a56f2 0230ba3e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/12/06 22:30 upstream f80ef9e49fdf 0230ba3e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/12/06 09:55 upstream 0fcfb00b28c0 579a8754 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/12/05 21:05 upstream 944207047ca4 a617004c .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/12/05 07:02 upstream 79a72162048e a617004c .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/12/04 17:40 upstream bbef3c7a63d2 a617004c .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/12/04 00:11 upstream 12119cfa1052 a617004c .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/12/03 11:51 upstream 5f58da2befa5 c7c20675 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/12/03 09:46 upstream 5f58da2befa5 61f86278 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/12/02 20:09 upstream a51e3ac43ddb 61f86278 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/12/01 19:28 upstream 58e1100fdc59 61f86278 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/12/01 07:27 upstream 58e1100fdc59 5fa3eacc .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/11/30 18:29 upstream f080815fdb3e 80270552 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/11/30 11:12 upstream d58071a8a76d 80270552 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/11/29 15:19 upstream d58071a8a76d d0830353 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/11/29 11:26 upstream d58071a8a76d 63eeac02 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/11/28 21:53 upstream d06c942efea4 63eeac02 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/11/28 08:46 upstream 3498e7f2bb41 63eeac02 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/11/27 19:22 upstream 741392771338 63eeac02 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/11/26 22:54 upstream c5c17547b778 63eeac02 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/11/26 08:49 upstream a4849f6000e2 63eeac02 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/11/25 19:03 upstream b501b85957de 63eeac02 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/11/25 17:39 upstream 5f53fa508db0 63eeac02 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/11/24 19:31 upstream 5f53fa508db0 545ab074 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/11/23 22:48 upstream 5d9f4cf36721 545ab074 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/11/22 13:41 upstream 136057256686 545ab074 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/11/22 11:44 upstream 136057256686 4eb20a4e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/11/08 23:35 upstream e851dfae4371 8ab17e57 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/11/05 05:40 upstream d4439a1189f9 4c1be0be .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_dirty_metadata / jbd2_journal_dirty_metadata
2021/10/15 15:47 upstream 8fe31e0995f0 0c5d9412 .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.