syzbot


KCSAN: data-race in setattr_copy / vfs_getattr_nosec (4)

Status: auto-closed as invalid on 2022/01/18 19:17
Subsystems: fs
[Documentation on labels]
First crash: 863d, last: 863d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in setattr_copy / vfs_getattr_nosec (2) fs 1 1055d 1055d 0/26 auto-closed as invalid on 2021/07/10 19:21
upstream KCSAN: data-race in setattr_copy / vfs_getattr_nosec fs 3 1090d 1095d 0/26 auto-closed as invalid on 2021/06/05 13:09
upstream KCSAN: data-race in setattr_copy / vfs_getattr_nosec (3) fs 1 975d 975d 0/26 auto-closed as invalid on 2021/09/29 03:05

Sample crash report:
loop3: detected capacity change from 0 to 1
 loop3: p2 p4
loop3: p2 size 327680 extends beyond EOD, truncated
loop3: p4 size 2097152 extends beyond EOD, truncated
==================================================================
BUG: KCSAN: data-race in setattr_copy / vfs_getattr_nosec

write to 0xffff888137b4b1f8 of 2 bytes by task 21 on cpu 1:
 setattr_copy+0x1af/0x1c0 fs/attr.c:247
 shmem_setattr+0xb0/0x450 mm/shmem.c:1124
 notify_change+0x8a3/0xac0 fs/attr.c:410
 handle_remove drivers/base/devtmpfs.c:333 [inline]
 handle drivers/base/devtmpfs.c:382 [inline]
 devtmpfs_work_loop+0x845/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 0xffff888137b4b1f8 of 2 bytes by task 4392 on cpu 0:
 generic_fillattr fs/stat.c:48 [inline]
 vfs_getattr_nosec+0x1a6/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: 0x6180 -> 0x6000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 4392 Comm: syz-executor.3 Not tainted 5.16.0-rc5-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/12/14 19:09 upstream 5472f14a3742 d018dd31 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in setattr_copy / vfs_getattr_nosec
* Struck through repros no longer work on HEAD.