syzbot


KCSAN: data-race in __ext4_update_other_inode_time / clear_inode (4)

Status: auto-closed as invalid on 2022/01/24 08:32
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 365d, last: 343d
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 474d 474d 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 412d 412d 0/24 auto-closed as invalid on 2021/11/16 12:09
upstream KCSAN: data-race in __ext4_update_other_inode_time / clear_inode 25 821d 892d 0/24 auto-closed as invalid on 2020/10/02 18:58

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

write to 0xffff888126083270 of 8 bytes by task 1825 on cpu 1:
 clear_inode+0xdd/0x110 fs/inode.c:552
 ext4_clear_inode+0x27/0x100 fs/ext4/super.c:1408
 ext4_free_inode+0x19f/0xa30 fs/ext4/ialloc.c:278
 ext4_evict_inode+0xbff/0xf10 fs/ext4/inode.c:332
 evict+0x1aa/0x410 fs/inode.c:590
 iput_final fs/inode.c:1670 [inline]
 iput+0x3ef/0x580 fs/inode.c:1696
 do_unlinkat+0x2d4/0x540 fs/namei.c:4174
 __do_sys_unlink fs/namei.c:4215 [inline]
 __se_sys_unlink fs/namei.c:4213 [inline]
 __x64_sys_unlink+0x2c/0x30 fs/namei.c:4213
 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 0xffff888126083270 of 8 bytes by task 24125 on cpu 0:
 inode_is_dirtytime_only include/linux/fs.h:2470 [inline]
 __ext4_update_other_inode_time+0x45/0x550 fs/ext4/inode.c:5010
 ext4_update_other_inodes_time fs/ext4/inode.c:5053 [inline]
 ext4_do_update_inode fs/ext4/inode.c:5102 [inline]
 ext4_mark_iloc_dirty+0x4c6/0x890 fs/ext4/inode.c:5694
 __ext4_mark_inode_dirty+0x4ec/0x5f0 fs/ext4/inode.c:5890
 ext4_ext_tree_init+0x94/0xa0 fs/ext4/extents.c:870
 __ext4_new_inode+0x29e6/0x2fc0 fs/ext4/ialloc.c:1334
 ext4_symlink+0x2cc/0x700 fs/ext4/namei.c:3293
 vfs_symlink+0x241/0x330 fs/namei.c:4248
 do_symlinkat+0x104/0x380 fs/namei.c:4277
 __do_sys_symlink fs/namei.c:4299 [inline]
 __se_sys_symlink fs/namei.c:4297 [inline]
 __x64_sys_symlink+0x52/0x60 fs/namei.c:4297
 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: 0x0000000000000000 -> 0x0000000000000060

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

Crashes (3):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/12/20 08:26 upstream a7904a538933 021b36cb .config log report info KCSAN: data-race in __ext4_update_other_inode_time / clear_inode
ci2-upstream-kcsan-gce 2021/12/16 19:24 upstream fa36bbe6d43f 8dd6a5e3 .config log report info KCSAN: data-race in __ext4_update_other_inode_time / clear_inode
ci2-upstream-kcsan-gce 2021/11/27 22:32 upstream 741392771338 63eeac02 .config log report info KCSAN: data-race in __ext4_update_other_inode_time / clear_inode
* Struck through repros no longer work on HEAD.