syzbot


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

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

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

write to 0xffff88811f49b378 of 2 bytes by task 22 on cpu 1:
 setattr_copy+0x22e/0x240 fs/attr.c:321
 shmem_setattr+0x161/0x4e0 mm/shmem.c:1143
 notify_change+0x8c3/0x930 fs/attr.c:483
 handle_remove drivers/base/devtmpfs.c:337 [inline]
 handle drivers/base/devtmpfs.c:386 [inline]
 devtmpfs_work_loop+0x828/0x8e0 drivers/base/devtmpfs.c:399
 devtmpfsd+0x43/0x50 drivers/base/devtmpfs.c:441
 kthread+0x1d7/0x210 kernel/kthread.c:379
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308

read to 0xffff88811f49b378 of 2 bytes by task 3049 on cpu 0:
 may_open+0x42/0x340 fs/namei.c:3238
 do_open fs/namei.c:3634 [inline]
 path_openat+0x1757/0x1d00 fs/namei.c:3791
 do_filp_open+0xf6/0x200 fs/namei.c:3818
 do_sys_openat2+0xb5/0x2a0 fs/open.c:1356
 do_sys_open fs/open.c:1372 [inline]
 __do_sys_openat fs/open.c:1388 [inline]
 __se_sys_openat fs/open.c:1383 [inline]
 __x64_sys_openat+0xf3/0x120 fs/open.c:1383
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x6180 -> 0x6000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 3049 Comm: udevd Not tainted 6.4.0-rc7-syzkaller-00072-gdad9774deaf1 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/06/22 17:04 upstream dad9774deaf1 79782afc .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.