syzbot


KCSAN: data-race in shmem_rename2 / vfs_getattr_nosec

Status: auto-closed as invalid on 2021/05/17 11:26
Subsystems: mm
[Documentation on labels]
First crash: 1436d, last: 1436d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in shmem_rename2 / vfs_getattr_nosec (3) mm 1 1112d 1112d 0/28 auto-closed as invalid on 2022/02/15 07:51
upstream KCSAN: data-race in shmem_rename2 / vfs_getattr_nosec (2) mm 1 1212d 1212d 0/28 auto-closed as invalid on 2021/11/07 14:02

Sample crash report:
==================================================================
BUG: KCSAN: data-race in shmem_rename2 / vfs_getattr_nosec

write to 0xffff888106f51970 of 8 bytes by task 29517 on cpu 1:
 shmem_rename2+0x387/0x430 mm/shmem.c:3131
 vfs_rename+0x903/0xe60 fs/namei.c:4312
 do_renameat2+0x5c3/0x900 fs/namei.c:4457
 __do_sys_rename fs/namei.c:4508 [inline]
 __se_sys_rename fs/namei.c:4506 [inline]
 __x64_sys_rename+0x58/0x60 fs/namei.c:4506
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff888106f51970 of 8 bytes by task 29510 on cpu 0:
 i_size_read include/linux/fs.h:848 [inline]
 generic_fillattr fs/stat.c:45 [inline]
 vfs_getattr_nosec+0x263/0x320 fs/stat.c:90
 vfs_getattr fs/stat.c:124 [inline]
 vfs_statx+0x128/0x290 fs/stat.c:189
 vfs_fstatat fs/stat.c:207 [inline]
 vfs_stat include/linux/fs.h:3118 [inline]
 __do_sys_newstat fs/stat.c:349 [inline]
 __se_sys_newstat+0x46/0x250 fs/stat.c:345
 __x64_sys_newstat+0x2d/0x40 fs/stat.c:345
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 29510 Comm: systemd-udevd Not tainted 5.11.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
2021/02/21 15:46 upstream e767b3530acb 3e5ed8b4 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in shmem_rename2 / vfs_getattr_nosec
* Struck through repros no longer work on HEAD.