syzbot


KCSAN: data-race in security_inode_getattr / vfs_rmdir

Status: auto-closed as invalid on 2021/05/30 10:52
Subsystems: fs
[Documentation on labels]
First crash: 1125d, last: 1097d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in security_inode_getattr / vfs_rmdir

write to 0xffff888132b8d324 of 4 bytes by task 27621 on cpu 0:
 vfs_rmdir+0x183/0x2c0 fs/namei.c:3906
 do_rmdir+0x14a/0x2e0 fs/namei.c:3964
 __do_sys_rmdir fs/namei.c:3982 [inline]
 __se_sys_rmdir fs/namei.c:3980 [inline]
 __x64_sys_rmdir+0x2c/0x30 fs/namei.c:3980
 do_syscall_64+0x34/0x50 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888132b8d324 of 4 bytes by task 27622 on cpu 1:
 security_inode_getattr+0x31/0xd0 security/security.c:1286
 vfs_getattr fs/stat.c:131 [inline]
 vfs_statx+0xf8/0x290 fs/stat.c:199
 vfs_fstatat fs/stat.c:217 [inline]
 vfs_stat include/linux/fs.h:3236 [inline]
 __do_sys_newstat fs/stat.c:359 [inline]
 __se_sys_newstat+0x46/0x250 fs/stat.c:355
 __x64_sys_newstat+0x2d/0x40 fs/stat.c:355
 do_syscall_64+0x34/0x50 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 27622 Comm: systemd-udevd Not tainted 5.12.0-rc8-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/04/25 10:44 upstream 2a1d7946fa53 36c88236 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in security_inode_getattr / vfs_rmdir
2021/03/28 18:26 upstream 0f4498cef9f5 a8529b82 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in security_inode_getattr / vfs_rmdir
* Struck through repros no longer work on HEAD.