]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selinux: annotate intentional data race in inode_doinit_with_dentry()
authorChristian Göttsche <cgzones@googlemail.com>
Mon, 2 Feb 2026 13:48:03 +0000 (14:48 +0100)
committerPaul Moore <paul@paul-moore.com>
Mon, 23 Feb 2026 16:14:29 +0000 (11:14 -0500)
commit8dc51459ef702bcc0ef5fb26bb4d362b38aa56c2
treee3f6a3afb1bec35fb3145ee0ddc6b680ab354f6a
parent6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
selinux: annotate intentional data race in inode_doinit_with_dentry()

Like other `isec->initialized == LABEL_INITIALIZED` checks annotate the
check in inode_doinit_with_dentry() with data_race to please KCSAN.

The value is rechecked next with lock held.

Reported-by: syzbot+9ab96b38b76bec93939a@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=9ab96b38b76bec93939a
Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/hooks.c