Re: [PATCH] selinux: annotate false positive data race to avoid KCSAN warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Aug 26, 2024 Stephen Smalley <stephen.smalley.work@xxxxxxxxx> wrote:
> 
> KCSAN flags the check of isec->initialized by
> __inode_security_revalidate() as a data race. This is indeed a racy
> check, but inode_doinit_with_dentry() will recheck with isec->lock held.
> Annotate the check with the data_race() macro to silence the KCSAN false
> positive.
> 
> Reported-by: syzbot+319ed1769c0078257262@xxxxxxxxxxxxxxxxxxxxxxxxx
> Signed-off-by: Stephen Smalley <stephen.smalley.work@xxxxxxxxx>
> ---
>  security/selinux/hooks.c | 7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)

Merged into selinux/dev, thanks Stephen.

--
paul-moore.com




[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux