syzbot


KCSAN: data-race in ext4_itable_unused_count / ext4_itable_unused_set (3)

Status: auto-closed as invalid on 2021/07/15 18:08
Subsystems: ext4
[Documentation on labels]
First crash: 1049d, last: 1049d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in ext4_itable_unused_count / ext4_itable_unused_set (4) ext4 1 1000d 1000d 0/26 auto-closed as invalid on 2021/09/02 19:43
upstream KCSAN: data-race in ext4_itable_unused_count / ext4_itable_unused_set ext4 4 1548d 1621d 0/26 auto-closed as invalid on 2020/04/07 17:45
upstream KCSAN: data-race in ext4_itable_unused_count / ext4_itable_unused_set (2) ext4 1 1185d 1185d 0/26 auto-closed as invalid on 2021/03/01 14:28

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

write to 0xffff8881025e505c of 2 bytes by task 26354 on cpu 0:
 ext4_itable_unused_set+0x1b/0x80 fs/ext4/super.c:403
 __ext4_new_inode+0x1b2c/0x2f70 fs/ext4/ialloc.c:1203
 ext4_symlink+0x2c3/0x700 fs/ext4/namei.c:3465
 vfs_symlink+0x23a/0x300 fs/namei.c:4172
 do_symlinkat+0xeb/0x280 fs/namei.c:4202
 __do_sys_symlink fs/namei.c:4223 [inline]
 __se_sys_symlink fs/namei.c:4221 [inline]
 __x64_sys_symlink+0x32/0x40 fs/namei.c:4221
 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff8881025e505c of 2 bytes by task 26352 on cpu 1:
 ext4_itable_unused_count+0x18/0x80 fs/ext4/super.c:347
 __ext4_get_inode_loc+0x608/0x920 fs/ext4/inode.c:4404
 ext4_get_inode_loc fs/ext4/inode.c:4456 [inline]
 ext4_reserve_inode_write+0xb8/0x1f0 fs/ext4/inode.c:5743
 ext4_xattr_set_handle+0x36f/0x1110 fs/ext4/xattr.c:2336
 ext4_initxattrs+0x66/0xb0 fs/ext4/xattr_security.c:44
 security_inode_init_security+0x1a9/0x260 security/security.c:1098
 ext4_init_security+0x30/0x40 fs/ext4/xattr_security.c:58
 __ext4_new_inode+0x29a1/0x2f70 fs/ext4/ialloc.c:1321
 ext4_symlink+0x2c3/0x700 fs/ext4/namei.c:3465
 vfs_symlink+0x23a/0x300 fs/namei.c:4172
 do_symlinkat+0xeb/0x280 fs/namei.c:4202
 __do_sys_symlink fs/namei.c:4223 [inline]
 __se_sys_symlink fs/namei.c:4221 [inline]
 __x64_sys_symlink+0x32/0x40 fs/namei.c:4221
 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x020e -> 0x020d

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

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/06/10 18:07 upstream cd1245d75ce9 1ba81399 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in ext4_itable_unused_count / ext4_itable_unused_set
* Struck through repros no longer work on HEAD.