syzbot


KCSAN: data-race in may_open / setattr_copy (2)

Status: auto-closed as invalid on 2022/02/12 13:06
Subsystems: fs
[Documentation on labels]
First crash: 1116d, last: 1116d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in may_open / setattr_copy (4) fs 1 521d 521d 0/28 auto-obsoleted due to no activity on 2023/09/30 13:14
upstream KCSAN: data-race in may_open / setattr_copy (5) fs 2 364d 390d 0/28 auto-obsoleted due to no activity on 2024/03/05 00:01
upstream KCSAN: data-race in may_open / setattr_copy fs 1 1219d 1219d 0/28 auto-closed as invalid on 2021/11/01 17:23
upstream KCSAN: data-race in may_open / setattr_copy (3) fs 1 586d 586d 0/28 auto-obsoleted due to no activity on 2023/07/27 17:10

Sample crash report:
==================================================================
BUG: KCSAN: data-race in may_open / setattr_copy

write to 0xffff88813927b178 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 0xffff88813927b178 of 2 bytes by task 6319 on cpu 0:
 may_open+0x42/0x2f0 fs/namei.c:3025
 do_open fs/namei.c:3424 [inline]
 path_openat+0x1728/0x1eb0 fs/namei.c:3559
 do_filp_open+0x105/0x220 fs/namei.c:3586
 do_sys_openat2+0xb5/0x2b0 fs/open.c:1212
 do_sys_open fs/open.c:1228 [inline]
 __do_sys_openat fs/open.c:1244 [inline]
 __se_sys_openat fs/open.c:1239 [inline]
 __x64_sys_openat+0xef/0x110 fs/open.c:1239
 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: 6319 Comm: udevd Not tainted 5.16.0-rc8-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================
udevd[6319]: inotify_add_watch(7, /dev/loop0, 10) failed: No such file or directory

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/01/08 12:59 upstream d1587f7bfe9a 2ca0d385 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in may_open / setattr_copy
* Struck through repros no longer work on HEAD.