syzbot


KCSAN: data-race in shmem_rename2 / vfs_getattr_nosec (2)

Status: auto-closed as invalid on 2021/11/07 14:02
Subsystems: mm
[Documentation on labels]
First crash: 935d, last: 935d
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 836d 836d 0/26 auto-closed as invalid on 2022/02/15 07:51
upstream KCSAN: data-race in shmem_rename2 / vfs_getattr_nosec mm 1 1159d 1159d 0/26 auto-closed as invalid on 2021/05/17 11:26

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

write to 0xffff888104a180c8 of 8 bytes by task 11672 on cpu 0:
 shmem_rename2+0x38f/0x440 mm/shmem.c:3040
 vfs_rename+0x9d9/0xe20 fs/namei.c:4628
 do_renameat2+0x6d7/0xa20 fs/namei.c:4779
 __do_sys_rename fs/namei.c:4825 [inline]
 __se_sys_rename fs/namei.c:4823 [inline]
 __x64_sys_rename+0x58/0x60 fs/namei.c:4823
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888104a180c8 of 8 bytes by task 11659 on cpu 1:
 i_size_read include/linux/fs.h:894 [inline]
 generic_fillattr fs/stat.c:53 [inline]
 vfs_getattr_nosec+0x242/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:3352 [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/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x0000000000002b20 -> 0x0000000000002b34

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 11659 Comm: systemd-udevd Tainted: G        W         5.15.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/10/03 13:53 upstream 7b66f4393ad4 db0f5787 .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.