syzbot


KCSAN: data-race in security_inode_permission / vfs_rmdir

Status: auto-closed as invalid on 2020/09/05 04:48
Subsystems: fs
[Documentation on labels]
First crash: 1363d, last: 1363d

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

write to 0xffff88811fb2448c of 4 bytes by task 19 on cpu 1:
 vfs_rmdir+0x179/0x2b0 fs/namei.c:3709
 dev_rmdir drivers/base/devtmpfs.c:244 [inline]
 delete_path drivers/base/devtmpfs.c:272 [inline]
 handle_remove drivers/base/devtmpfs.c:344 [inline]
 handle drivers/base/devtmpfs.c:378 [inline]
 devtmpfsd+0x72e/0x970 drivers/base/devtmpfs.c:413
 kthread+0x20d/0x230 kernel/kthread.c:291
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:293

read to 0xffff88811fb2448c of 4 bytes by task 10826 on cpu 0:
 security_inode_permission+0x1c/0xc0 security/security.c:1256
 inode_permission+0xb2/0x330 fs/namei.c:471
 may_lookup fs/namei.c:1569 [inline]
 link_path_walk+0x14a/0x730 fs/namei.c:2125
 path_lookupat+0x7b/0x560 fs/namei.c:2332
 filename_lookup+0xf2/0x380 fs/namei.c:2366
 user_path_at_empty+0x3b/0x50 fs/namei.c:2646
 user_path_at include/linux/namei.h:59 [inline]
 do_utimes+0x176/0x290 fs/utimes.c:123
 __do_sys_utimensat fs/utimes.c:155 [inline]
 __se_sys_utimensat fs/utimes.c:139 [inline]
 __x64_sys_utimensat+0xac/0x150 fs/utimes.c:139
 do_syscall_64+0x51/0xb0 arch/x86/entry/common.c:384
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 10826 Comm: systemd-udevd Not tainted 5.8.0-rc7-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
2020/08/01 04:45 upstream 7dc6fd0f3b84 8df85ed9 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.