syzbot


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

Status: auto-closed as invalid on 2021/09/02 19:43
Subsystems: ext4
[Documentation on labels]
First crash: 1016d, last: 1016d
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 ext4 4 1564d 1636d 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 (3) ext4 1 1065d 1065d 0/26 auto-closed as invalid on 2021/07/15 18:08
upstream KCSAN: data-race in ext4_itable_unused_count / ext4_itable_unused_set (2) ext4 1 1201d 1201d 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 0xffff888102dcd05c of 2 bytes by task 7707 on cpu 0:
 ext4_itable_unused_set+0x1b/0x80 fs/ext4/super.c:403
 __ext4_new_inode+0x1b2c/0x2f70 fs/ext4/ialloc.c:1202
 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

read to 0xffff888102dcd05c of 2 bytes by task 7710 on cpu 1:
 ext4_itable_unused_count+0x18/0x80 fs/ext4/super.c:347
 __ext4_get_inode_loc+0x67a/0x8f0 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:2312
 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:1320
 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: 0x073e -> 0x073d

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 7710 Comm: syz-executor.4 Not tainted 5.14.0-rc3-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/07/29 19:37 upstream 7e96bf476270 8a799410 .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.