Skip to content
Snippets Groups Projects
Commit 9013acc3 authored by Guillaume Nault's avatar Guillaume Nault
Browse files

cipso: Fix data-races around sysctl.

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2149949


Upstream Status: linux.git

commit dd44f04b
Author: Kuniyuki Iwashima <kuniyu@amazon.com>
Date:   Wed Jul 6 16:40:01 2022 -0700

    cipso: Fix data-races around sysctl.

    While reading cipso sysctl variables, they can be changed concurrently.
    So, we need to add READ_ONCE() to avoid data-races.

    Fixes: 446fda4f ("[NetLabel]: CIPSOv4 engine")
Signed-off-by: default avatarKuniyuki Iwashima <kuniyu@amazon.com>
Acked-by: default avatarPaul Moore <paul@paul-moore.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>

Signed-off-by: default avatarGuillaume Nault <gnault@redhat.com>
parent 8a86d068
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment