Merge tag 'selinux-pr-20260410' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux

Pull selinux update from Paul Moore:

 - Annotate a known race condition to soothe KCSAN

* tag 'selinux-pr-20260410' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux:
  selinux: annotate intentional data race in inode_doinit_with_dentry()
This commit is contained in:
Linus Torvalds
2026-04-13 15:34:52 -07:00

View File

@@ -1436,7 +1436,8 @@ static int inode_doinit_with_dentry(struct inode *inode, struct dentry *opt_dent
struct dentry *dentry;
int rc = 0;
if (isec->initialized == LABEL_INITIALIZED)
/* check below is racy, but we will recheck with lock held */
if (data_race(isec->initialized == LABEL_INITIALIZED))
return 0;
spin_lock(&isec->lock);