syzbot


KCSAN: data-race in generic_fillattr / shmem_unlink

Status: closed as invalid on 2019/11/19 14:54
Subsystems: fs
[Documentation on labels]
First crash: 1649d, last: 1636d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in generic_fillattr / shmem_unlink (2) mm 51 1419d 1417d 0/26 auto-closed as invalid on 2020/07/21 00:44
upstream KCSAN: data-race in generic_fillattr / shmem_unlink (3) mm 653 11d 376d 0/26 upstream: reported on 2023/04/24 08:10

Sample crash report:
==================================================================
BUG: KCSAN: data-race in generic_fillattr / shmem_unlink

read to 0xffff888126f7e3c8 of 8 bytes by task 12281 on cpu 0:
 generic_fillattr+0xf5/0x1e0 fs/stat.c:42
 vfs_getattr_nosec+0x160/0x170 fs/stat.c:84
 vfs_getattr+0x54/0x70 fs/stat.c:118
 vfs_statx+0x102/0x190 fs/stat.c:191
 vfs_stat include/linux/fs.h:3242 [inline]
 __do_sys_newstat+0x51/0xb0 fs/stat.c:341
 __se_sys_newstat fs/stat.c:337 [inline]
 __x64_sys_newstat+0x3a/0x50 fs/stat.c:337
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

write to 0xffff888126f7e3c8 of 8 bytes by task 12317 on cpu 1:
 shmem_unlink+0xa2/0x150 mm/shmem.c:2980
 shmem_rename2+0x10f/0x4a0 mm/shmem.c:3074
 vfs_rename+0x87d/0x10b0 fs/namei.c:4469
 do_renameat2+0x9e3/0xa50 fs/namei.c:4619
 __do_sys_rename fs/namei.c:4665 [inline]
 __se_sys_rename fs/namei.c:4663 [inline]
 __x64_sys_rename+0x47/0x60 fs/namei.c:4663
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 12317 Comm: udevd Not tainted 5.4.0-rc6+ #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/11/11 16:58 https://github.com/google/ktsan.git kcsan 94c006602e13 377d77fa .config console log report ci2-upstream-kcsan-gce
2019/11/02 22:32 https://github.com/google/ktsan.git kcsan 05f2236801fe d603afc9 .config console log report ci2-upstream-kcsan-gce
2019/10/29 05:01 https://github.com/google/ktsan.git kcsan 05f2236801fe 5ea87a66 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.