Re: [PATCH] selinux: drop unnecessary smp_load_acquire() call

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

 



On Wed, Apr 8, 2020 at 5:08 AM Ondrej Mosnacek <omosnace@xxxxxxxxxx> wrote:
>
> In commit 66f8e2f03c02 ("selinux: sidtab reverse lookup hash table") the
> corresponding load is moved under the spin lock, so there is no race
> possible and we can read the count directly. The smp_store_release() is
> still needed to avoid racing with the lock-free readers.
>
> Signed-off-by: Ondrej Mosnacek <omosnace@xxxxxxxxxx>
> ---
>  security/selinux/ss/sidtab.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)

Merged into selinux/next, thanks.

-- 
paul moore
www.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