KCSAN: data-race in link_path_walk / tracefs_permission

Status: moderation: reported on 2026/11/17 15:26
Subsystems: fs trace
Labels: prio:low
[Documentation on labels]
Reported-by: syzbot+7b3850254a4504f4fef2@syzkaller.appspotmail.com
First crash: 12h17m, last: 12h17m
✨ AI cause bisection: introduced by (AI job) :
commit 8186fff7ab649085e2c60d032d9a20a85af1d87c
Author: Steven Rostedt (Google) <rostedt@goodmis.org>
Date: Thu Jan 4 02:50:16 2024 +0000

  tracefs/eventfs: Use root and instance inodes as default ownership

  
✨ AI-generated root cause summary:

In fs/tracefs/inode.c, tracefs_permission() and tracefs_getattr() invoke set_tracefs_inode_owner() to dynamically apply default ownership from the root or instance inode. However, .permission and .getattr are read-side VFS callbacks invoked concurrently across CPUs without serialization (e.g., during lockless RCU/ref path resolution in link_path_walk()). Because TRACEFS_UID_PERM_SET and TRACEFS_GID_PERM_SET remain unset for any tracefs inode that has not been explicitly modified via setattr, set_tracefs_inode_owner() executes plain, unlocked stores to inode->i_uid and inode->i_gid on every access, racing with concurrent VFS readers and concurrent calls to set_tracefs_inode_owner().

▶ ▼ ✨ Full AI root cause analysis
Based on kernel commit 666539eecdf4:

Root Cause Analysis

1. Components and Files Involved

  • Source File: fs/tracefs/inode.c
  • Functions: tracefs_permission(), tracefs_getattr(), and set_tracefs_inode_owner()
  • Structures and Fields:
    • struct inode (i_uid, i_gid)
    • struct tracefs_inode (flags, private)
    • Flags: TRACEFS_UID_PERM_SET (BIT(3)), TRACEFS_GID_PERM_SET (BIT(2))

2. Mechanism and Lifecycle Violation

In tracefs (fs/tracefs/inode.c), the inode_operations structures for tracefs files and directories define .permission = tracefs_permission and .getattr = tracefs_getattr. Both functions invoke set_tracefs_inode_owner(inode):

static void set_tracefs_inode_owner(struct inode *inode)
{
	struct tracefs_inode *ti = get_tracefs(inode);
	struct inode *root_inode = ti->private;
	kuid_t uid;
	kgid_t gid;

	uid = root_inode->i_uid;
	gid = root_inode->i_gid;
...
	if (!(ti->flags & TRACEFS_UID_PERM_SET))
		inode->i_uid = uid;

	if (!(ti->flags & TRACEFS_GID_PERM_SET))
		inode->i_gid = gid;
}

This design violates fundamental VFS concurrency and lifecycle rules:

  1. Read-Side VFS Operations Lack Inode Serialization: In Linux VFS, .permission and .getattr are read-side operations. They are called concurrently across CPUs without holding inode->i_rwsem. In particular, .permission is invoked during pathname resolution (link_path_walk() -> may_lookup() -> inode_permission()), which can occur in lockless RCU-walk or ref-walk mode, as well as during may_open(). VFS assumes that an inode's ownership identity (i_uid and i_gid) is not dynamically mutated during these callbacks.

  2. Unconditional, Unlocked Stores on Every File Access: ti->flags only sets TRACEFS_UID_PERM_SET and TRACEFS_GID_PERM_SET when userspace explicitly invokes setattr (such as chown). For all standard tracefs files and directories where explicit ownership has never been altered, !(ti->flags & TRACEFS_UID_PERM_SET) and !(ti->flags & TRACEFS_GID_PERM_SET) evaluate to true on every single call. As a result, every path lookup, open, permission check, or stat call repeatedly performs plain, unsynchronized writes to inode->i_uid (line 186) and inode->i_gid (line 189), even though these fields were already initialized when the inode was created (tracefs_create_file() / __create_dir()).


3. How the Reported Data Races Occur

Because set_tracefs_inode_owner() mutates inode->i_uid and inode->i_gid without synchronization:

  • Write-Write Races (tracefs_permission vs. tracefs_permission): Two or more concurrent tasks traversing or opening files in tracefs concurrently execute tracefs_permission() on the same inode, causing simultaneous, unsynchronized stores to inode->i_uid and inode->i_gid.
  • Read-Write Self-Races (tracefs_permission on child vs. parent/root): When one task checks permissions on an inode whose ti->private points to root_inode, it reads root_inode->i_uid and root_inode->i_gid (lines 160–161). Concurrently, another task accessing root_inode executes tracefs_permission(), writing to root_inode->i_uid and root_inode->i_gid (lines 186, 189).
  • Read-Write Races with Core VFS Callers: Core VFS functions (link_path_walk(), generic_permission(), acl_permission_check(), may_delete_dentry(), HAS_UNMAPPED_ID()) read inode->i_uid or inode->i_gid via helpers such as i_uid_into_vfsuid() and i_gid_into_vfsgid() while another task on a different CPU is inside set_tracefs_inode_owner() writing to the same fields.
▶ ▼ ✨ AI Jobs (3)
ID Workflow Result Correct Bug Created Started Finished Revision
c6cbe67b bisect-cause ❓ KCSAN: data-race in link_path_walk / tracefs_permission 2026/11/17 15:10 2026/11/17 15:10 2026/11/17 15:14 ca622473
cd34e88c assessment-kcsan 🏃 KCSAN: data-race in link_path_walk / tracefs_permission 2026/11/17 15:09 2026/11/17 15:09 ca622473
9f97a302 assessment-security DenialOfService: ❌ Exploitable: ❌ FilesystemTrigger: ❌ FuzzingArtifact: ❌ MemoryCorruption: ❌ NetworkNeedsSetup: ❌ NetworkTrigger: ❌ PeripheralTrigger: ❌ RemoteTrigger: ❌ Unprivileged: ❌ UserNamespace: ❌ VMGuestTrigger: ❌ VMHostTrigger: ❌ ❓ KCSAN: data-race in link_path_walk / tracefs_permission 2026/11/17 15:08 2026/11/17 15:08 2026/11/17 15:26 ca622473

Sample crash report:
==================================================================
BUG: KCSAN: data-race in link_path_walk / tracefs_permission

write to 0xffff888100778720 of 4 bytes by task 3297 on cpu 0:
 set_tracefs_inode_owner fs/tracefs/inode.c:186 [inline]
 tracefs_permission+0x12b/0x190 fs/tracefs/inode.c:195
 do_inode_permission fs/namei.c:583 [inline]
 inode_permission+0x2b4/0x3c0 fs/namei.c:653
 lookup_inode_permission_may_exec fs/namei.c:-1 [inline]
 may_lookup fs/namei.c:1967 [inline]
 link_path_walk+0x881/0xde0 fs/namei.c:2610
 path_openat+0x142/0x11e0 fs/namei.c:5012
 do_file_open+0x16c/0x290 fs/namei.c:5045
 do_sys_openat2+0xa1/0x140 fs/open.c:1443
 do_sys_open fs/open.c:1449 [inline]
 __do_sys_openat fs/open.c:1465 [inline]
 __se_sys_openat fs/open.c:1460 [inline]
 __x64_sys_openat+0xf2/0x120 fs/open.c:1460
 x64_sys_call+0x1f72/0x2550 arch/x86/include/generated/asm/syscalls_64.h:258
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x11e/0x3a0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff888100778720 of 4 bytes by task 4448 on cpu 1:
 i_uid_into_vfsuid include/linux/fs.h:1448 [inline]
 link_path_walk+0xc4a/0xde0 fs/namei.c:2652
 path_lookupat+0x53/0x4c0 fs/namei.c:2818
 filename_lookup+0x18f/0x390 fs/namei.c:2848
 vfs_statx+0x96/0x170 fs/stat.c:357
 vfs_fstatat+0x118/0x170 fs/stat.c:377
 __do_sys_newfstatat fs/stat.c:542 [inline]
 __se_sys_newfstatat+0x55/0x3e0 fs/stat.c:536
 __x64_sys_newfstatat+0x55/0x70 fs/stat.c:536
 x64_sys_call+0xee6/0x2550 arch/x86/include/generated/asm/syscalls_64.h:263
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x11e/0x3a0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 4448 Comm: syz-executor Not tainted syzkaller #0 PREEMPT(lazy) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
==================================================================
==================================================================
BUG: KCSAN: data-race in may_delete_dentry / tracefs_permission

read to 0xffff88811b14e01c of 4 bytes by task 3297 on cpu 0:
 i_gid_into_vfsgid include/linux/fs.h:1500 [inline]
 may_delete_dentry+0x107/0x4b0 fs/namei.c:3698
 vfs_unlink+0x43/0x4c0 fs/namei.c:5645
 filename_unlinkat+0x1db/0x400 fs/namei.c:5737
 __do_sys_unlink fs/namei.c:5772 [inline]
 __se_sys_unlink+0x2b/0xe0 fs/namei.c:5769
 __x64_sys_unlink+0x1f/0x30 fs/namei.c:5769
 x64_sys_call+0x18ee/0x2550 arch/x86/include/generated/asm/syscalls_64.h:88
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x11e/0x3a0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

write to 0xffff88811b14e01c of 4 bytes by task 4448 on cpu 1:
 set_tracefs_inode_owner fs/tracefs/inode.c:189 [inline]
 tracefs_permission+0x158/0x190 fs/tracefs/inode.c:195
 do_inode_permission fs/namei.c:583 [inline]
 inode_permission+0x2b4/0x3c0 fs/namei.c:653
 may_open+0x25b/0x350 fs/namei.c:4275
 do_open fs/namei.c:4849 [inline]
 path_openat+0xb71/0x11e0 fs/namei.c:5016
 do_file_open+0x16c/0x290 fs/namei.c:5045
 do_sys_openat2+0xa1/0x140 fs/open.c:1443
 do_sys_open fs/open.c:1449 [inline]
 __do_sys_openat fs/open.c:1465 [inline]
 __se_sys_openat fs/open.c:1460 [inline]
 __x64_sys_openat+0xf2/0x120 fs/open.c:1460
 x64_sys_call+0x1f72/0x2550 arch/x86/include/generated/asm/syscalls_64.h:258
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x11e/0x3a0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 4448 Comm: syz-executor Not tainted syzkaller #0 PREEMPT(lazy) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
==================================================================
==================================================================
BUG: KCSAN: data-race in generic_permission / tracefs_permission

write to 0xffff88811b14e018 of 4 bytes by task 3297 on cpu 0:
 set_tracefs_inode_owner fs/tracefs/inode.c:186 [inline]
 tracefs_permission+0x12b/0x190 fs/tracefs/inode.c:195
 do_inode_permission fs/namei.c:583 [inline]
 inode_permission+0x2b4/0x3c0 fs/namei.c:653
 may_open+0x25b/0x350 fs/namei.c:4275
 do_open fs/namei.c:4849 [inline]
 path_openat+0xb71/0x11e0 fs/namei.c:5016
 do_file_open+0x16c/0x290 fs/namei.c:5045
 do_sys_openat2+0xa1/0x140 fs/open.c:1443
 do_sys_open fs/open.c:1449 [inline]
 __do_sys_openat fs/open.c:1465 [inline]
 __se_sys_openat fs/open.c:1460 [inline]
 __x64_sys_openat+0xf2/0x120 fs/open.c:1460
 x64_sys_call+0x1f72/0x2550 arch/x86/include/generated/asm/syscalls_64.h:258
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x11e/0x3a0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff88811b14e018 of 4 bytes by task 4448 on cpu 1:
 i_uid_into_vfsuid include/linux/fs.h:1448 [inline]
 acl_permission_check fs/namei.c:467 [inline]
 generic_permission+0x8f/0x470 fs/namei.c:529
 tracefs_permission+0x172/0x190 fs/tracefs/inode.c:196
 do_inode_permission fs/namei.c:583 [inline]
 inode_permission+0x2b4/0x3c0 fs/namei.c:653
 may_open+0x25b/0x350 fs/namei.c:4275
 do_open fs/namei.c:4849 [inline]
 path_openat+0xb71/0x11e0 fs/namei.c:5016
 do_file_open+0x16c/0x290 fs/namei.c:5045
 do_sys_openat2+0xa1/0x140 fs/open.c:1443
 do_sys_open fs/open.c:1449 [inline]
 __do_sys_openat fs/open.c:1465 [inline]
 __se_sys_openat fs/open.c:1460 [inline]
 __x64_sys_openat+0xf2/0x120 fs/open.c:1460
 x64_sys_call+0x1f72/0x2550 arch/x86/include/generated/asm/syscalls_64.h:258
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x11e/0x3a0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 4448 Comm: syz-executor Not tainted syzkaller #0 PREEMPT(lazy) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
==================================================================
==================================================================
BUG: KCSAN: data-race in tracefs_permission / tracefs_permission

read to 0xffff888100778720 of 4 bytes by task 3297 on cpu 1:
 set_tracefs_inode_owner fs/tracefs/inode.c:160 [inline]
 tracefs_permission+0x3a/0x190 fs/tracefs/inode.c:195
 do_inode_permission fs/namei.c:583 [inline]
 inode_permission+0x2b4/0x3c0 fs/namei.c:653
 lookup_inode_permission_may_exec fs/namei.c:-1 [inline]
 may_lookup fs/namei.c:1967 [inline]
 link_path_walk+0x881/0xde0 fs/namei.c:2610
 path_openat+0x142/0x11e0 fs/namei.c:5012
 do_file_open+0x16c/0x290 fs/namei.c:5045
 do_sys_openat2+0xa1/0x140 fs/open.c:1443
 do_sys_open fs/open.c:1449 [inline]
 __do_sys_openat fs/open.c:1465 [inline]
 __se_sys_openat fs/open.c:1460 [inline]
 __x64_sys_openat+0xf2/0x120 fs/open.c:1460
 x64_sys_call+0x1f72/0x2550 arch/x86/include/generated/asm/syscalls_64.h:258
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x11e/0x3a0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

write to 0xffff888100778720 of 4 bytes by task 4448 on cpu 0:
 set_tracefs_inode_owner fs/tracefs/inode.c:186 [inline]
 tracefs_permission+0x12b/0x190 fs/tracefs/inode.c:195
 do_inode_permission fs/namei.c:583 [inline]
 inode_permission+0x2b4/0x3c0 fs/namei.c:653
 lookup_inode_permission_may_exec fs/namei.c:-1 [inline]
 may_lookup fs/namei.c:1967 [inline]
 link_path_walk+0x881/0xde0 fs/namei.c:2610
 path_parentat fs/namei.c:2866 [inline]
 __filename_parentat+0x1ad/0x460 fs/namei.c:2890
 filename_parentat fs/namei.c:2908 [inline]
 filename_unlinkat+0x91/0x400 fs/namei.c:5706
 __do_sys_unlink fs/namei.c:5772 [inline]
 __se_sys_unlink+0x2b/0xe0 fs/namei.c:5769
 __x64_sys_unlink+0x1f/0x30 fs/namei.c:5769
 x64_sys_call+0x18ee/0x2550 arch/x86/include/generated/asm/syscalls_64.h:88
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x11e/0x3a0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 4448 Comm: syz-executor Not tainted syzkaller #0 PREEMPT(lazy) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
==================================================================
==================================================================
BUG: KCSAN: data-race in tracefs_permission / tracefs_permission

write to 0xffff88811b146978 of 4 bytes by task 3297 on cpu 1:
 set_tracefs_inode_owner fs/tracefs/inode.c:186 [inline]
 tracefs_permission+0x12b/0x190 fs/tracefs/inode.c:195
 do_inode_permission fs/namei.c:583 [inline]
 inode_permission+0x2b4/0x3c0 fs/namei.c:653
 lookup_inode_permission_may_exec fs/namei.c:-1 [inline]
 may_lookup fs/namei.c:1967 [inline]
 link_path_walk+0x881/0xde0 fs/namei.c:2610
 path_openat+0x142/0x11e0 fs/namei.c:5012
 do_file_open+0x16c/0x290 fs/namei.c:5045
 do_sys_openat2+0xa1/0x140 fs/open.c:1443
 do_sys_open fs/open.c:1449 [inline]
 __do_sys_openat fs/open.c:1465 [inline]
 __se_sys_openat fs/open.c:1460 [inline]
 __x64_sys_openat+0xf2/0x120 fs/open.c:1460
 x64_sys_call+0x1f72/0x2550 arch/x86/include/generated/asm/syscalls_64.h:258
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x11e/0x3a0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

write to 0xffff88811b146978 of 4 bytes by task 4448 on cpu 0:
 set_tracefs_inode_owner fs/tracefs/inode.c:186 [inline]
 tracefs_permission+0x12b/0x190 fs/tracefs/inode.c:195
 do_inode_permission fs/namei.c:583 [inline]
 inode_permission+0x2b4/0x3c0 fs/namei.c:653
 lookup_inode_permission_may_exec fs/namei.c:-1 [inline]
 may_lookup fs/namei.c:1967 [inline]
 link_path_walk+0x881/0xde0 fs/namei.c:2610
 path_parentat fs/namei.c:2866 [inline]
 __filename_parentat+0x1ad/0x460 fs/namei.c:2890
 filename_parentat fs/namei.c:2908 [inline]
 filename_unlinkat+0x91/0x400 fs/namei.c:5706
 __do_sys_unlink fs/namei.c:5772 [inline]
 __se_sys_unlink+0x2b/0xe0 fs/namei.c:5769
 __x64_sys_unlink+0x1f/0x30 fs/namei.c:5769
 x64_sys_call+0x18ee/0x2550 arch/x86/include/generated/asm/syscalls_64.h:88
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x11e/0x3a0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 4448 Comm: syz-executor Not tainted syzkaller #0 PREEMPT(lazy) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
==================================================================
==================================================================
BUG: KCSAN: data-race in tracefs_permission / tracefs_permission

read to 0xffff888100778724 of 4 bytes by task 3297 on cpu 1:
 set_tracefs_inode_owner fs/tracefs/inode.c:161 [inline]
 tracefs_permission+0x47/0x190 fs/tracefs/inode.c:195
 do_inode_permission fs/namei.c:583 [inline]
 inode_permission+0x2b4/0x3c0 fs/namei.c:653
 lookup_inode_permission_may_exec fs/namei.c:-1 [inline]
 may_lookup fs/namei.c:1967 [inline]
 link_path_walk+0x881/0xde0 fs/namei.c:2610
 path_openat+0x142/0x11e0 fs/namei.c:5012
 do_file_open+0x16c/0x290 fs/namei.c:5045
 do_sys_openat2+0xa1/0x140 fs/open.c:1443
 do_sys_open fs/open.c:1449 [inline]
 __do_sys_openat fs/open.c:1465 [inline]
 __se_sys_openat fs/open.c:1460 [inline]
 __x64_sys_openat+0xf2/0x120 fs/open.c:1460
 x64_sys_call+0x1f72/0x2550 arch/x86/include/generated/asm/syscalls_64.h:258
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x11e/0x3a0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

write to 0xffff888100778724 of 4 bytes by task 4448 on cpu 0:
 set_tracefs_inode_owner fs/tracefs/inode.c:189 [inline]
 tracefs_permission+0x158/0x190 fs/tracefs/inode.c:195
 do_inode_permission fs/namei.c:583 [inline]
 inode_permission+0x2b4/0x3c0 fs/namei.c:653
 lookup_inode_permission_may_exec fs/namei.c:-1 [inline]
 may_lookup fs/namei.c:1967 [inline]
 link_path_walk+0x881/0xde0 fs/namei.c:2610
 path_parentat fs/namei.c:2866 [inline]
 __filename_parentat+0x1ad/0x460 fs/namei.c:2890
 filename_parentat fs/namei.c:2908 [inline]
 filename_unlinkat+0x91/0x400 fs/namei.c:5706
 __do_sys_unlink fs/namei.c:5772 [inline]
 __se_sys_unlink+0x2b/0xe0 fs/namei.c:5769
 __x64_sys_unlink+0x1f/0x30 fs/namei.c:5769
 x64_sys_call+0x18ee/0x2550 arch/x86/include/generated/asm/syscalls_64.h:88
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x11e/0x3a0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 4448 Comm: syz-executor Not tainted syzkaller #0 PREEMPT(lazy) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
==================================================================
==================================================================
BUG: KCSAN: data-race in tracefs_permission / tracefs_permission

write to 0xffff88811b14697c of 4 bytes by task 3297 on cpu 0:
 set_tracefs_inode_owner fs/tracefs/inode.c:189 [inline]
 tracefs_permission+0x158/0x190 fs/tracefs/inode.c:195
 do_inode_permission fs/namei.c:583 [inline]
 inode_permission+0x2b4/0x3c0 fs/namei.c:653
 lookup_inode_permission_may_exec fs/namei.c:-1 [inline]
 may_lookup fs/namei.c:1967 [inline]
 link_path_walk+0x881/0xde0 fs/namei.c:2610
 path_openat+0x142/0x11e0 fs/namei.c:5012
 do_file_open+0x16c/0x290 fs/namei.c:5045
 do_sys_openat2+0xa1/0x140 fs/open.c:1443
 do_sys_open fs/open.c:1449 [inline]
 __do_sys_openat fs/open.c:1465 [inline]
 __se_sys_openat fs/open.c:1460 [inline]
 __x64_sys_openat+0xf2/0x120 fs/open.c:1460
 x64_sys_call+0x1f72/0x2550 arch/x86/include/generated/asm/syscalls_64.h:258
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x11e/0x3a0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

write to 0xffff88811b14697c of 4 bytes by task 4448 on cpu 1:
 set_tracefs_inode_owner fs/tracefs/inode.c:189 [inline]
 tracefs_permission+0x158/0x190 fs/tracefs/inode.c:195
 do_inode_permission fs/namei.c:583 [inline]
 inode_permission+0x2b4/0x3c0 fs/namei.c:653
 lookup_inode_permission_may_exec fs/namei.c:-1 [inline]
 may_lookup fs/namei.c:1967 [inline]
 link_path_walk+0x881/0xde0 fs/namei.c:2610
 path_openat+0x142/0x11e0 fs/namei.c:5012
 do_file_open+0x16c/0x290 fs/namei.c:5045
 do_sys_openat2+0xa1/0x140 fs/open.c:1443
 do_sys_open fs/open.c:1449 [inline]
 __do_sys_openat fs/open.c:1465 [inline]
 __se_sys_openat fs/open.c:1460 [inline]
 __x64_sys_openat+0xf2/0x120 fs/open.c:1460
 x64_sys_call+0x1f72/0x2550 arch/x86/include/generated/asm/syscalls_64.h:258
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x11e/0x3a0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 4448 Comm: syz-executor Not tainted syzkaller #0 PREEMPT(lazy) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
==================================================================
==================================================================
BUG: KCSAN: data-race in may_delete_dentry / tracefs_permission

read to 0xffff88811b14e018 of 4 bytes by task 3297 on cpu 1:
 i_uid_into_vfsuid include/linux/fs.h:1448 [inline]
 may_delete_dentry+0xb6/0x4b0 fs/namei.c:3697
 vfs_unlink+0x43/0x4c0 fs/namei.c:5645
 filename_unlinkat+0x1db/0x400 fs/namei.c:5737
 __do_sys_unlink fs/namei.c:5772 [inline]
 __se_sys_unlink+0x2b/0xe0 fs/namei.c:5769
 __x64_sys_unlink+0x1f/0x30 fs/namei.c:5769
 x64_sys_call+0x18ee/0x2550 arch/x86/include/generated/asm/syscalls_64.h:88
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x11e/0x3a0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

write to 0xffff88811b14e018 of 4 bytes by task 4448 on cpu 0:
 set_tracefs_inode_owner fs/tracefs/inode.c:186 [inline]
 tracefs_permission+0x12b/0x190 fs/tracefs/inode.c:195
 do_inode_permission fs/namei.c:583 [inline]
 inode_permission+0x2b4/0x3c0 fs/namei.c:653
 may_open+0x25b/0x350 fs/namei.c:4275
 do_open fs/namei.c:4849 [inline]
 path_openat+0xb71/0x11e0 fs/namei.c:5016
 do_file_open+0x16c/0x290 fs/namei.c:5045
 do_sys_openat2+0xa1/0x140 fs/open.c:1443
 do_sys_open fs/open.c:1449 [inline]
 __do_sys_openat fs/open.c:1465 [inline]
 __se_sys_openat fs/open.c:1460 [inline]
 __x64_sys_openat+0xf2/0x120 fs/open.c:1460
 x64_sys_call+0x1f72/0x2550 arch/x86/include/generated/asm/syscalls_64.h:258
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x11e/0x3a0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 4448 Comm: syz-executor Not tainted syzkaller #0 PREEMPT(lazy) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
==================================================================
==================================================================
BUG: KCSAN: data-race in generic_permission / tracefs_permission

write to 0xffff888100778720 of 4 bytes by task 3297 on cpu 1:
 set_tracefs_inode_owner fs/tracefs/inode.c:186 [inline]
 tracefs_permission+0x12b/0x190 fs/tracefs/inode.c:195
 do_inode_permission fs/namei.c:583 [inline]
 inode_permission+0x2b4/0x3c0 fs/namei.c:653
 lookup_inode_permission_may_exec fs/namei.c:-1 [inline]
 may_lookup fs/namei.c:1967 [inline]
 link_path_walk+0x881/0xde0 fs/namei.c:2610
 path_openat+0x142/0x11e0 fs/namei.c:5012
 do_file_open+0x16c/0x290 fs/namei.c:5045
 do_sys_openat2+0xa1/0x140 fs/open.c:1443
 do_sys_open fs/open.c:1449 [inline]
 __do_sys_openat fs/open.c:1465 [inline]
 __se_sys_openat fs/open.c:1460 [inline]
 __x64_sys_openat+0xf2/0x120 fs/open.c:1460
 x64_sys_call+0x1f72/0x2550 arch/x86/include/generated/asm/syscalls_64.h:258
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x11e/0x3a0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff888100778720 of 4 bytes by task 4448 on cpu 0:
 i_uid_into_vfsuid include/linux/fs.h:1448 [inline]
 acl_permission_check fs/namei.c:467 [inline]
 generic_permission+0x8f/0x470 fs/namei.c:529
 tracefs_permission+0x172/0x190 fs/tracefs/inode.c:196
 do_inode_permission fs/namei.c:583 [inline]
 inode_permission+0x2b4/0x3c0 fs/namei.c:653
 lookup_inode_permission_may_exec fs/namei.c:-1 [inline]
 may_lookup fs/namei.c:1967 [inline]
 link_path_walk+0x881/0xde0 fs/namei.c:2610
 path_openat+0x142/0x11e0 fs/namei.c:5012
 do_file_open+0x16c/0x290 fs/namei.c:5045
 do_sys_openat2+0xa1/0x140 fs/open.c:1443
 do_sys_open fs/open.c:1449 [inline]
 __do_sys_openat fs/open.c:1465 [inline]
 __se_sys_openat fs/open.c:1460 [inline]
 __x64_sys_openat+0xf2/0x120 fs/open.c:1460
 x64_sys_call+0x1f72/0x2550 arch/x86/include/generated/asm/syscalls_64.h:258
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x11e/0x3a0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 4448 Comm: syz-executor Not tainted syzkaller #0 PREEMPT(lazy) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
==================================================================
==================================================================
BUG: KCSAN: data-race in tracefs_permission / tracefs_permission

write to 0xffff888100778724 of 4 bytes by task 3297 on cpu 1:
 set_tracefs_inode_owner fs/tracefs/inode.c:189 [inline]
 tracefs_permission+0x158/0x190 fs/tracefs/inode.c:195
 do_inode_permission fs/namei.c:583 [inline]
 inode_permission+0x2b4/0x3c0 fs/namei.c:653
 lookup_inode_permission_may_exec fs/namei.c:-1 [inline]
 may_lookup fs/namei.c:1967 [inline]
 link_path_walk+0x881/0xde0 fs/namei.c:2610
 path_openat+0x142/0x11e0 fs/namei.c:5012
 do_file_open+0x16c/0x290 fs/namei.c:5045
 do_sys_openat2+0xa1/0x140 fs/open.c:1443
 do_sys_open fs/open.c:1449 [inline]
 __do_sys_openat fs/open.c:1465 [inline]
 __se_sys_openat fs/open.c:1460 [inline]
 __x64_sys_openat+0xf2/0x120 fs/open.c:1460
 x64_sys_call+0x1f72/0x2550 arch/x86/include/generated/asm/syscalls_64.h:258
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x11e/0x3a0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff888100778724 of 4 bytes by task 4448 on cpu 0:
 set_tracefs_inode_owner fs/tracefs/inode.c:161 [inline]
 tracefs_permission+0x47/0x190 fs/tracefs/inode.c:195
 do_inode_permission fs/namei.c:583 [inline]
 inode_permission+0x2b4/0x3c0 fs/namei.c:653
 lookup_inode_permission_may_exec fs/namei.c:-1 [inline]
 may_lookup fs/namei.c:1967 [inline]
 link_path_walk+0x881/0xde0 fs/namei.c:2610
 path_openat+0x142/0x11e0 fs/namei.c:5012
 do_file_open+0x16c/0x290 fs/namei.c:5045
 do_sys_openat2+0xa1/0x140 fs/open.c:1443
 do_sys_open fs/open.c:1449 [inline]
 __do_sys_openat fs/open.c:1465 [inline]
 __se_sys_openat fs/open.c:1460 [inline]
 __x64_sys_openat+0xf2/0x120 fs/open.c:1460
 x64_sys_call+0x1f72/0x2550 arch/x86/include/generated/asm/syscalls_64.h:258
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x11e/0x3a0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 4448 Comm: syz-executor Not tainted syzkaller #0 PREEMPT(lazy) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
==================================================================
==================================================================
BUG: KCSAN: data-race in HAS_UNMAPPED_ID / tracefs_permission

read to 0xffff88811b14e018 of 4 bytes by task 3297 on cpu 0:
 i_uid_into_vfsuid include/linux/fs.h:1448 [inline]
 HAS_UNMAPPED_ID+0x41/0xd0 include/linux/fs.h:2188
 may_delete_dentry+0x389/0x4b0 fs/namei.c:3711
 vfs_unlink+0x43/0x4c0 fs/namei.c:5645
 filename_unlinkat+0x1db/0x400 fs/namei.c:5737
 __do_sys_unlink fs/namei.c:5772 [inline]
 __se_sys_unlink+0x2b/0xe0 fs/namei.c:5769
 __x64_sys_unlink+0x1f/0x30 fs/namei.c:5769
 x64_sys_call+0x18ee/0x2550 arch/x86/include/generated/asm/syscalls_64.h:88
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x11e/0x3a0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

write to 0xffff88811b14e018 of 4 bytes by task 4448 on cpu 1:
 set_tracefs_inode_owner fs/tracefs/inode.c:186 [inline]
 tracefs_permission+0x12b/0x190 fs/tracefs/inode.c:195
 do_inode_permission fs/namei.c:583 [inline]
 inode_permission+0x2b4/0x3c0 fs/namei.c:653
 may_open+0x25b/0x350 fs/namei.c:4275
 do_open fs/namei.c:4849 [inline]
 path_openat+0xb71/0x11e0 fs/namei.c:5016
 do_file_open+0x16c/0x290 fs/namei.c:5045
 do_sys_openat2+0xa1/0x140 fs/open.c:1443
 do_sys_open fs/open.c:1449 [inline]
 __do_sys_openat fs/open.c:1465 [inline]
 __se_sys_openat fs/open.c:1460 [inline]
 __x64_sys_openat+0xf2/0x120 fs/open.c:1460
 x64_sys_call+0x1f72/0x2550 arch/x86/include/generated/asm/syscalls_64.h:258
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x11e/0x3a0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 4448 Comm: syz-executor Not tainted syzkaller #0 PREEMPT(lazy) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
==================================================================
==================================================================
BUG: KCSAN: data-race in may_delete_dentry / tracefs_permission

read to 0xffff88811b14e01c of 4 bytes by task 3297 on cpu 1:
 i_gid_into_vfsgid include/linux/fs.h:1500 [inline]
 may_delete_dentry+0x107/0x4b0 fs/namei.c:3698
 vfs_unlink+0x43/0x4c0 fs/namei.c:5645
 filename_unlinkat+0x1db/0x400 fs/namei.c:5737
 __do_sys_unlink fs/namei.c:5772 [inline]
 __se_sys_unlink+0x2b/0xe0 fs/namei.c:5769
 __x64_sys_unlink+0x1f/0x30 fs/namei.c:5769
 x64_sys_call+0x18ee/0x2550 arch/x86/include/generated/asm/syscalls_64.h:88
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x11e/0x3a0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

write to 0xffff88811b14e01c of 4 bytes by task 4448 on cpu 0:
 set_tracefs_inode_owner fs/tracefs/inode.c:189 [inline]
 tracefs_permission+0x158/0x190 fs/tracefs/inode.c:195
 do_inode_permission fs/namei.c:583 [inline]
 inode_permission+0x2b4/0x3c0 fs/namei.c:653
 may_open+0x25b/0x350 fs/namei.c:4275
 do_open fs/namei.c:4849 [inline]
 path_openat+0xb71/0x11e0 fs/namei.c:5016
 do_file_open+0x16c/0x290 fs/namei.c:5045
 do_sys_openat2+0xa1/0x140 fs/open.c:1443
 do_sys_open fs/open.c:1449 [inline]
 __do_sys_openat fs/open.c:1465 [inline]
 __se_sys_openat fs/open.c:1460 [inline]
 __x64_sys_openat+0xf2/0x120 fs/open.c:1460
 x64_sys_call+0x1f72/0x2550 arch/x86/include/generated/asm/syscalls_64.h:258
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x11e/0x3a0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 4448 Comm: syz-executor Not tainted syzkaller #0 PREEMPT(lazy) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
==================================================================
==================================================================
BUG: KCSAN: data-race in HAS_UNMAPPED_ID / tracefs_permission

read to 0xffff88811b14e01c of 4 bytes by task 3297 on cpu 1:
 i_gid_into_vfsgid include/linux/fs.h:1500 [inline]
 HAS_UNMAPPED_ID+0x90/0xd0 include/linux/fs.h:2189
 may_delete_dentry+0x389/0x4b0 fs/namei.c:3711
 vfs_unlink+0x43/0x4c0 fs/namei.c:5645
 filename_unlinkat+0x1db/0x400 fs/namei.c:5737
 __do_sys_unlink fs/namei.c:5772 [inline]
 __se_sys_unlink+0x2b/0xe0 fs/namei.c:5769
 __x64_sys_unlink+0x1f/0x30 fs/namei.c:5769
 x64_sys_call+0x18ee/0x2550 arch/x86/include/generated/asm/syscalls_64.h:88
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x11e/0x3a0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

write to 0xffff88811b14e01c of 4 bytes by task 4448 on cpu 0:
 set_tracefs_inode_owner fs/tracefs/inode.c:189 [inline]
 tracefs_permission+0x158/0x190 fs/tracefs/inode.c:195
 do_inode_permission fs/namei.c:583 [inline]
 inode_permission+0x2b4/0x3c0 fs/namei.c:653
 may_open+0x25b/0x350 fs/namei.c:4275
 do_open fs/namei.c:4849 [inline]
 path_openat+0xb71/0x11e0 fs/namei.c:5016
 do_file_open+0x16c/0x290 fs/namei.c:5045
 do_sys_openat2+0xa1/0x140 fs/open.c:1443
 do_sys_open fs/open.c:1449 [inline]
 __do_sys_openat fs/open.c:1465 [inline]
 __se_sys_openat fs/open.c:1460 [inline]
 __x64_sys_openat+0xf2/0x120 fs/open.c:1460
 x64_sys_call+0x1f72/0x2550 arch/x86/include/generated/asm/syscalls_64.h:258
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x11e/0x3a0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 4448 Comm: syz-executor Not tainted syzkaller #0 PREEMPT(lazy) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
==================================================================
==================================================================
BUG: KCSAN: data-race in tracefs_permission / tracefs_permission

write to 0xffff88811b14697c of 4 bytes by task 3297 on cpu 0:
 set_tracefs_inode_owner fs/tracefs/inode.c:189 [inline]
 tracefs_permission+0x158/0x190 fs/tracefs/inode.c:195
 do_inode_permission fs/namei.c:583 [inline]
 inode_permission+0x2b4/0x3c0 fs/namei.c:653
 lookup_inode_permission_may_exec fs/namei.c:-1 [inline]
 may_lookup fs/namei.c:1967 [inline]
 link_path_walk+0x881/0xde0 fs/namei.c:2610
 path_openat+0x142/0x11e0 fs/namei.c:5012
 do_file_open+0x16c/0x290 fs/namei.c:5045
 do_sys_openat2+0xa1/0x140 fs/open.c:1443
 do_sys_open fs/open.c:1449 [inline]
 __do_sys_openat fs/open.c:1465 [inline]
 __se_sys_openat fs/open.c:1460 [inline]
 __x64_sys_openat+0xf2/0x120 fs/open.c:1460
 x64_sys_call+0x1f72/0x2550 arch/x86/include/generated/asm/syscalls_64.h:258
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x11e/0x3a0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

write to 0xffff88811b14697c of 4 bytes by task 4448 on cpu 1:
 set_tracefs_inode_owner fs/tracefs/inode.c:189 [inline]
 tracefs_permission+0x158/0x190 fs/tracefs/inode.c:195
 do_inode_permission fs/namei.c:583 [inline]
 inode_permission+0x2b4/0x3c0 fs/namei.c:653
 lookup_inode_permission_may_exec fs/namei.c:-1 [inline]
 may_lookup fs/namei.c:1967 [inline]
 link_path_walk+0x881/0xde0 fs/namei.c:2610
 path_parentat fs/namei.c:2866 [inline]
 __filename_parentat+0x1ad/0x460 fs/namei.c:2890
 filename_parentat fs/namei.c:2908 [inline]
 filename_unlinkat+0x91/0x400 fs/namei.c:5706
 __do_sys_unlink fs/namei.c:5772 [inline]
 __se_sys_unlink+0x2b/0xe0 fs/namei.c:5769
 __x64_sys_unlink+0x1f/0x30 fs/namei.c:5769
 x64_sys_call+0x18ee/0x2550 arch/x86/include/generated/asm/syscalls_64.h:88
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x11e/0x3a0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 4448 Comm: syz-executor Not tainted syzkaller #0 PREEMPT(lazy) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
==================================================================
==================================================================
BUG: KCSAN: data-race in link_path_walk / tracefs_permission

write to 0xffff88811b146978 of 4 bytes by task 3297 on cpu 1:
 set_tracefs_inode_owner fs/tracefs/inode.c:186 [inline]
 tracefs_permission+0x12b/0x190 fs/tracefs/inode.c:195
 do_inode_permission fs/namei.c:583 [inline]
 inode_permission+0x2b4/0x3c0 fs/namei.c:653
 lookup_inode_permission_may_exec fs/namei.c:-1 [inline]
 may_lookup fs/namei.c:1967 [inline]
 link_path_walk+0x881/0xde0 fs/namei.c:2610
 path_parentat fs/namei.c:2866 [inline]
 __filename_parentat+0x1ad/0x460 fs/namei.c:2890
 filename_parentat fs/namei.c:2908 [inline]
 filename_unlinkat+0x91/0x400 fs/namei.c:5706
 __do_sys_unlink fs/namei.c:5772 [inline]
 __se_sys_unlink+0x2b/0xe0 fs/namei.c:5769
 __x64_sys_unlink+0x1f/0x30 fs/namei.c:5769
 x64_sys_call+0x18ee/0x2550 arch/x86/include/generated/asm/syscalls_64.h:88
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x11e/0x3a0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff88811b146978 of 4 bytes by task 4448 on cpu 0:
 i_uid_into_vfsuid include/linux/fs.h:1448 [inline]
 link_path_walk+0xc4a/0xde0 fs/namei.c:2652
 path_openat+0x142/0x11e0 fs/namei.c:5012
 do_file_open+0x16c/0x290 fs/namei.c:5045
 do_sys_openat2+0xa1/0x140 fs/open.c:1443
 do_sys_open fs/open.c:1449 [inline]
 __do_sys_openat fs/open.c:1465 [inline]
 __se_sys_openat fs/open.c:1460 [inline]
 __x64_sys_openat+0xf2/0x120 fs/open.c:1460
 x64_sys_call+0x1f72/0x2550 arch/x86/include/generated/asm/syscalls_64.h:258
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x11e/0x3a0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 4448 Comm: syz-executor Not tainted syzkaller #0 PREEMPT(lazy) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
==================================================================
==================================================================
BUG: KCSAN: data-race in tracefs_permission / tracefs_permission

write to 0xffff888100778724 of 4 bytes by task 3297 on cpu 0:
 set_tracefs_inode_owner fs/tracefs/inode.c:189 [inline]
 tracefs_permission+0x158/0x190 fs/tracefs/inode.c:195
 do_inode_permission fs/namei.c:583 [inline]
 inode_permission+0x2b4/0x3c0 fs/namei.c:653
 lookup_inode_permission_may_exec fs/namei.c:-1 [inline]
 may_lookup fs/namei.c:1967 [inline]
 link_path_walk+0x881/0xde0 fs/namei.c:2610
 path_openat+0x142/0x11e0 fs/namei.c:5012
 do_file_open+0x16c/0x290 fs/namei.c:5045
 do_sys_openat2+0xa1/0x140 fs/open.c:1443
 do_sys_open fs/open.c:1449 [inline]
 __do_sys_openat fs/open.c:1465 [inline]
 __se_sys_openat fs/open.c:1460 [inline]
 __x64_sys_openat+0xf2/0x120 fs/open.c:1460
 x64_sys_call+0x1f72/0x2550 arch/x86/include/generated/asm/syscalls_64.h:258
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x11e/0x3a0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff888100778724 of 4 bytes by task 4448 on cpu 1:
 set_tracefs_inode_owner fs/tracefs/inode.c:161 [inline]
 tracefs_permission+0x47/0x190 fs/tracefs/inode.c:195
 do_inode_permission fs/namei.c:583 [inline]
 inode_permission+0x2b4/0x3c0 fs/namei.c:653
 may_open+0x25b/0x350 fs/namei.c:4275
 do_open fs/namei.c:4849 [inline]
 path_openat+0xb71/0x11e0 fs/namei.c:5016
 do_file_open+0x16c/0x290 fs/namei.c:5045
 do_sys_openat2+0xa1/0x140 fs/open.c:1443
 do_sys_open fs/open.c:1449 [inline]
 __do_sys_openat fs/open.c:1465 [inline]
 __se_sys_openat fs/open.c:1460 [inline]
 __x64_sys_openat+0xf2/0x120 fs/open.c:1460
 x64_sys_call+0x1f72/0x2550 arch/x86/include/generated/asm/syscalls_64.h:258
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x11e/0x3a0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 4448 Comm: syz-executor Not tainted syzkaller #0 PREEMPT(lazy) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
==================================================================
==================================================================
BUG: KCSAN: data-race in may_delete_dentry / tracefs_permission

read to 0xffff88811b14e01c of 4 bytes by task 3297 on cpu 1:
 i_gid_into_vfsgid include/linux/fs.h:1500 [inline]
 may_delete_dentry+0x107/0x4b0 fs/namei.c:3698
 vfs_unlink+0x43/0x4c0 fs/namei.c:5645
 filename_unlinkat+0x1db/0x400 fs/namei.c:5737
 __do_sys_unlink fs/namei.c:5772 [inline]
 __se_sys_unlink+0x2b/0xe0 fs/namei.c:5769
 __x64_sys_unlink+0x1f/0x30 fs/namei.c:5769
 x64_sys_call+0x18ee/0x2550 arch/x86/include/generated/asm/syscalls_64.h:88
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x11e/0x3a0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

write to 0xffff88811b14e01c of 4 bytes by task 4448 on cpu 0:
 set_tracefs_inode_owner fs/tracefs/inode.c:189 [inline]
 tracefs_permission+0x158/0x190 fs/tracefs/inode.c:195
 do_inode_permission fs/namei.c:583 [inline]
 inode_permission+0x2b4/0x3c0 fs/namei.c:653
 may_open+0x25b/0x350 fs/namei.c:4275
 do_open fs/namei.c:4849 [inline]
 path_openat+0xb71/0x11e0 fs/namei.c:5016
 do_file_open+0x16c/0x290 fs/namei.c:5045
 do_sys_openat2+0xa1/0x140 fs/open.c:1443
 do_sys_open fs/open.c:1449 [inline]
 __do_sys_openat fs/open.c:1465 [inline]
 __se_sys_openat fs/open.c:1460 [inline]
 __x64_sys_openat+0xf2/0x120 fs/open.c:1460
 x64_sys_call+0x1f72/0x2550 arch/x86/include/generated/asm/syscalls_64.h:258
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x11e/0x3a0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 4448 Comm: syz-executor Not tainted syzkaller #0 PREEMPT(lazy) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
==================================================================
==================================================================
BUG: KCSAN: data-race in tracefs_permission / tracefs_permission

write to 0xffff88811b146978 of 4 bytes by task 3297 on cpu 1:
 set_tracefs_inode_owner fs/tracefs/inode.c:186 [inline]
 tracefs_permission+0x12b/0x190 fs/tracefs/inode.c:195
 do_inode_permission fs/namei.c:583 [inline]
 inode_permission+0x2b4/0x3c0 fs/namei.c:653
 lookup_inode_permission_may_exec fs/namei.c:-1 [inline]
 may_lookup fs/namei.c:1967 [inline]
 link_path_walk+0x881/0xde0 fs/namei.c:2610
 path_openat+0x142/0x11e0 fs/namei.c:5012
 do_file_open+0x16c/0x290 fs/namei.c:5045
 do_sys_openat2+0xa1/0x140 fs/open.c:1443
 do_sys_open fs/open.c:1449 [inline]
 __do_sys_openat fs/open.c:1465 [inline]
 __se_sys_openat fs/open.c:1460 [inline]
 __x64_sys_openat+0xf2/0x120 fs/open.c:1460
 x64_sys_call+0x1f72/0x2550 arch/x86/include/generated/asm/syscalls_64.h:258
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x11e/0x3a0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

write to 0xffff88811b146978 of 4 bytes by task 4448 on cpu 0:
 set_tracefs_inode_owner fs/tracefs/inode.c:186 [inline]
 tracefs_permission+0x12b/0x190 fs/tracefs/inode.c:195
 do_inode_permission fs/namei.c:583 [inline]
 inode_permission+0x2b4/0x3c0 fs/namei.c:653

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/11/17 03:49 upstream 666539eecdf4 a3e64cfc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in link_path_walk / tracefs_permission
* Struck through repros no longer work on HEAD.