syzbot


KCSAN: data-race in __ext4_update_other_inode_time / clear_inode

Status: auto-closed as invalid on 2020/10/02 18:58
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 959d, last: 888d
similar bugs (3):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __ext4_update_other_inode_time / clear_inode (2) 1 541d 541d 0/24 auto-closed as invalid on 2021/09/15 11:45
upstream KCSAN: data-race in __ext4_update_other_inode_time / clear_inode (3) 1 479d 479d 0/24 auto-closed as invalid on 2021/11/16 12:09
upstream KCSAN: data-race in __ext4_update_other_inode_time / clear_inode (4) 3 410d 432d 0/24 auto-closed as invalid on 2022/01/24 08:32

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

write to 0xffff88807a045a10 of 8 bytes by task 8758 on cpu 1:
 clear_inode+0x105/0x140 fs/inode.c:538
 ext4_clear_inode+0x1f/0x100 fs/ext4/super.c:1223
 ext4_free_inode+0x1b6/0x9d0 fs/ext4/ialloc.c:276
 ext4_evict_inode+0xafa/0xc20 fs/ext4/inode.c:324
 evict+0x19f/0x470 fs/inode.c:576
 iput_final fs/inode.c:1652 [inline]
 iput+0x44a/0x550 fs/inode.c:1678
 do_unlinkat+0x2c9/0x4d0 fs/namei.c:3902
 __do_sys_unlink fs/namei.c:3942 [inline]
 __se_sys_unlink fs/namei.c:3940 [inline]
 __x64_sys_unlink+0x2c/0x30 fs/namei.c:3940
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88807a045a10 of 8 bytes by task 14198 on cpu 0:
 __ext4_update_other_inode_time+0x45/0x570 fs/ext4/inode.c:4893
 ext4_update_other_inodes_time fs/ext4/inode.c:4940 [inline]
 ext4_do_update_inode fs/ext4/inode.c:5068 [inline]
 ext4_mark_iloc_dirty+0x1296/0x1660 fs/ext4/inode.c:5624
 __ext4_mark_inode_dirty+0x448/0x630 fs/ext4/inode.c:5818
 ext4_dirty_inode+0xa6/0xc0 fs/ext4/inode.c:5854
 __mark_inode_dirty+0x72/0x7e0 fs/fs-writeback.c:2258
 mark_inode_dirty include/linux/fs.h:2166 [inline]
 generic_write_end+0x166/0x250 fs/buffer.c:2202
 ext4_da_write_end+0x57e/0x760 fs/ext4/inode.c:3091
 generic_perform_write+0x23b/0x390 mm/filemap.c:3414
 ext4_buffered_write_iter+0x2cc/0x3b0 fs/ext4/file.c:269
 ext4_file_write_iter+0x768/0x1060 include/linux/fs.h:784
 call_write_iter include/linux/fs.h:1882 [inline]
 new_sync_write fs/read_write.c:503 [inline]
 vfs_write+0x665/0x6f0 fs/read_write.c:578
 ksys_write+0xce/0x180 fs/read_write.c:631
 __do_sys_write fs/read_write.c:643 [inline]
 __se_sys_write fs/read_write.c:640 [inline]
 __x64_sys_write+0x3e/0x50 fs/read_write.c:640
 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: 14198 Comm: syz-executor.0 Not tainted 5.9.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (25):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-upstream-kcsan-gce 2020/08/28 18:58 upstream 15bc20c6af4c d5a3ae1f .config console log report
ci2-upstream-kcsan-gce 2020/08/15 06:01 upstream c9c9735c46f5 5ce13532 .config console log report
ci2-upstream-kcsan-gce 2020/08/09 21:24 upstream 9420f1ce0186 70301872 .config console log report
ci2-upstream-kcsan-gce 2020/08/09 15:41 upstream 06a81c1c7db9 70301872 .config console log report
ci2-upstream-kcsan-gce 2020/08/07 13:48 upstream 86cfccb66937 28ac5c9e .config console log report
ci2-upstream-kcsan-gce 2020/08/01 03:15 upstream 7dc6fd0f3b84 8df85ed9 .config console log report
ci2-upstream-kcsan-gce 2020/07/30 10:43 upstream 83bdc7275e62 b0947553 .config console log report
ci2-upstream-kcsan-gce 2020/07/28 21:24 upstream 6ba1b005ffc3 cb93dc6a .config console log report
ci2-upstream-kcsan-gce 2020/07/25 14:30 upstream 23ee3e4e5bd2 1f7cc1ca .config console log report
ci2-upstream-kcsan-gce 2020/07/22 02:24 upstream 4fa640dc5230 21f1765e .config console log report
ci2-upstream-kcsan-gce 2020/07/18 19:45 upstream 6cf7ccba29dc 9c812472 .config console log report
ci2-upstream-kcsan-gce 2020/07/17 15:57 upstream 8882572675c1 9c812472 .config console log report
ci2-upstream-kcsan-gce 2020/07/17 02:00 upstream 07a56bb875af 54b3c45e .config console log report
ci2-upstream-kcsan-gce 2020/07/13 08:35 upstream 11ba468877bb f90ec899 .config console log report
ci2-upstream-kcsan-gce 2020/07/07 15:23 upstream bfe91da29bfa 42723355 .config console log report
ci2-upstream-kcsan-gce 2020/07/05 20:25 upstream 45a5ac7a5cc3 22f87567 .config console log report
ci2-upstream-kcsan-gce 2020/07/05 20:23 upstream 45a5ac7a5cc3 22f87567 .config console log report
ci2-upstream-kcsan-gce 2020/07/05 02:25 upstream 35e884f89df4 24d7f505 .config console log report
ci2-upstream-kcsan-gce 2020/07/03 13:32 upstream cdd3bb54332f 6e569755 .config console log report
ci2-upstream-kcsan-gce 2020/07/02 04:33 upstream cd77006e01b3 bed10395 .config console log report
ci2-upstream-kcsan-gce 2020/06/29 05:24 upstream 9ebcfadb0610 a2cdad9d .config console log report
ci2-upstream-kcsan-gce 2020/06/27 15:57 upstream 1590a2e1c681 2defc703 .config console log report
ci2-upstream-kcsan-gce 2020/06/21 19:24 upstream 64677779e896 4f2acff9 .config console log report
ci2-upstream-kcsan-gce 2020/06/19 20:42 upstream 672f9255a727 123cf502 .config console log report
ci2-upstream-kcsan-gce 2020/06/19 04:27 upstream 5e857ce6eae7 bc258b50 .config console log report
* Struck through repros no longer work on HEAD.