syzbot


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

Status: auto-closed as invalid on 2021/09/15 11:45
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 541d, last: 541d
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 (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 25 888d 959d 0/24 auto-closed as invalid on 2020/10/02 18:58
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 0xffff88813bc03848 of 8 bytes by task 1781 on cpu 0:
 clear_inode+0xef/0x130 fs/inode.c:546
 ext4_clear_inode+0x27/0x100 fs/ext4/super.c:1396
 ext4_free_inode+0x18c/0xa30 fs/ext4/ialloc.c:278
 ext4_evict_inode+0xb7e/0xdb0 fs/ext4/inode.c:333
 evict+0x1c8/0x3c0 fs/inode.c:584
 iput_final fs/inode.c:1660 [inline]
 iput+0x430/0x580 fs/inode.c:1686
 do_unlinkat+0x293/0x4f0 fs/namei.c:4109
 __do_sys_unlink fs/namei.c:4149 [inline]
 __se_sys_unlink fs/namei.c:4147 [inline]
 __x64_sys_unlink+0x2c/0x30 fs/namei.c:4147
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0x90 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88813bc03848 of 8 bytes by task 19277 on cpu 1:
 inode_is_dirtytime_only include/linux/fs.h:2422 [inline]
 __ext4_update_other_inode_time+0x48/0x5c0 fs/ext4/inode.c:4963
 ext4_update_other_inodes_time fs/ext4/inode.c:5006 [inline]
 ext4_do_update_inode fs/ext4/inode.c:5135 [inline]
 ext4_mark_iloc_dirty+0x12b6/0x1750 fs/ext4/inode.c:5724
 __ext4_mark_inode_dirty+0x4db/0x5b0 fs/ext4/inode.c:5918
 ext4_ext_tree_init+0x94/0xa0 fs/ext4/extents.c:829
 __ext4_new_inode+0x29e4/0x2f70 fs/ext4/ialloc.c:1329
 ext4_symlink+0x2c3/0x700 fs/ext4/namei.c:3465
 vfs_symlink+0x23a/0x300 fs/namei.c:4182
 do_symlinkat+0xeb/0x280 fs/namei.c:4212
 __do_sys_symlink fs/namei.c:4233 [inline]
 __se_sys_symlink fs/namei.c:4231 [inline]
 __x64_sys_symlink+0x32/0x40 fs/namei.c:4231
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0x90 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x0000000000000000 -> 0x0000000000000060

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

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-upstream-kcsan-gce 2021/08/11 11:37 upstream 9e723c5380c6 6972b106 .config console log report info KCSAN: data-race in __ext4_update_other_inode_time / clear_inode
* Struck through repros no longer work on HEAD.