syzbot


KCSAN: data-race in generic_permission / setattr_copy

Status: auto-closed as invalid on 2021/06/11 22:43
Subsystems: fs
[Documentation on labels]
First crash: 1083d, last: 1083d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in generic_permission / setattr_copy (5) fs 1 187d 187d 0/26 auto-obsoleted due to no activity on 2023/11/25 12:17
upstream KCSAN: data-race in generic_permission / setattr_copy (6) ext4 1 89d 89d 0/26 auto-obsoleted due to no activity on 2024/03/02 13:46
upstream KCSAN: data-race in generic_permission / setattr_copy (2) fs 1 983d 983d 0/26 auto-closed as invalid on 2021/09/20 03:05
upstream KCSAN: data-race in generic_permission / setattr_copy (3) fs 1 757d 757d 0/26 auto-closed as invalid on 2022/05/03 21:30
upstream KCSAN: data-race in generic_permission / setattr_copy (4) ext4 1 484d 484d 0/26 auto-obsoleted due to no activity on 2023/02/08 07:52

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

write to 0xffff88812c141070 of 2 bytes by task 19 on cpu 1:
 setattr_copy+0x1af/0x1c0 fs/attr.c:247
 shmem_setattr+0xb0/0x450 mm/shmem.c:1118
 notify_change+0x8a3/0xa80 fs/attr.c:398
 handle_remove drivers/base/devtmpfs.c:333 [inline]
 handle drivers/base/devtmpfs.c:382 [inline]
 devtmpfs_work_loop+0x783/0x8d0 drivers/base/devtmpfs.c:395
 devtmpfsd+0x3f/0x40 drivers/base/devtmpfs.c:437
 kthread+0x1d0/0x1f0 kernel/kthread.c:313
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294

read to 0xffff88812c141070 of 2 bytes by task 5644 on cpu 0:
 acl_permission_check fs/namei.c:326 [inline]
 generic_permission+0x24/0x420 fs/namei.c:392
 do_inode_permission fs/namei.c:453 [inline]
 inode_permission+0x6b/0x290 fs/namei.c:513
 may_open+0x1a7/0x2f0 fs/namei.c:2982
 do_open fs/namei.c:3359 [inline]
 path_openat+0x17b3/0x20b0 fs/namei.c:3494
 do_filp_open+0xd9/0x1f0 fs/namei.c:3521
 do_sys_openat2+0xa3/0x250 fs/open.c:1187
 do_sys_open fs/open.c:1203 [inline]
 __do_sys_open fs/open.c:1211 [inline]
 __se_sys_open fs/open.c:1207 [inline]
 __x64_sys_open+0xe2/0x110 fs/open.c:1207
 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 5644 Comm: systemd-udevd Not tainted 5.12.0-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/05/07 22:40 upstream 1ad77a05cfae bc5434be .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in generic_permission / setattr_copy
* Struck through repros no longer work on HEAD.