syzbot


KCSAN: data-race in drop_nlink / vfs_getattr_nosec (6)

Status: auto-closed as invalid on 2022/02/16 06:56
Subsystems: fs
[Documentation on labels]
First crash: 827d, last: 827d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in drop_nlink / vfs_getattr_nosec (3) fs 2 989d 1007d 0/26 auto-closed as invalid on 2021/09/07 16:42
upstream KCSAN: data-race in drop_nlink / vfs_getattr_nosec fs 1 1128d 1128d 0/26 auto-closed as invalid on 2021/04/21 10:41
upstream KCSAN: data-race in drop_nlink / vfs_getattr_nosec (5) fs 1 890d 890d 0/26 auto-closed as invalid on 2021/12/15 06:52
upstream KCSAN: data-race in drop_nlink / vfs_getattr_nosec (2) fs 6 1055d 1088d 0/26 auto-closed as invalid on 2021/07/03 10:04
upstream KCSAN: data-race in drop_nlink / vfs_getattr_nosec (4) fs 1 934d 934d 0/26 auto-closed as invalid on 2021/11/01 05:59

Sample crash report:
truncated
loop3: p4 start 18 is beyond EOD, truncated
==================================================================
BUG: KCSAN: data-race in drop_nlink / vfs_getattr_nosec

write to 0xffff8881032936e0 of 4 bytes by task 21 on cpu 1:
 drop_nlink+0x37/0x90 fs/inode.c:307
 shmem_unlink+0x17b/0x1a0 mm/shmem.c:2934
 vfs_unlink+0x257/0x450 fs/namei.c:4100
 handle_remove drivers/base/devtmpfs.c:335 [inline]
 handle drivers/base/devtmpfs.c:382 [inline]
 devtmpfs_work_loop+0x87c/0x930 drivers/base/devtmpfs.c:395
 devtmpfsd+0x3f/0x40 drivers/base/devtmpfs.c:437
 kthread+0x2c7/0x2e0 kernel/kthread.c:327
 ret_from_fork+0x1f/0x30

read to 0xffff8881032936e0 of 4 bytes by task 31895 on cpu 0:
 generic_fillattr fs/stat.c:49 [inline]
 vfs_getattr_nosec+0x1c1/0x2f0 fs/stat.c:126
 vfs_getattr fs/stat.c:160 [inline]
 vfs_statx+0x138/0x2a0 fs/stat.c:225
 vfs_fstatat fs/stat.c:243 [inline]
 vfs_stat include/linux/fs.h:3353 [inline]
 __do_sys_newstat fs/stat.c:385 [inline]
 __se_sys_newstat+0x5d/0x250 fs/stat.c:381
 __x64_sys_newstat+0x2d/0x40 fs/stat.c:381
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x00000001 -> 0x00000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 31895 Comm: syz-executor.3 Not tainted 5.16.0-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
2022/01/12 06:47 upstream 6f38be8f2ccd 44d1319a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in drop_nlink / vfs_getattr_nosec
* Struck through repros no longer work on HEAD.