diff options
author | Kuniyuki Iwashima <kuniyu@amazon.com> | 2022-07-07 01:40:01 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-07-08 13:10:33 +0200 |
commit | dd44f04b9214adb68ef5684ae87a81ba03632250 (patch) | |
tree | 851600a7ad0e88be1c4be1a4e6c2baaff72dd84e /Documentation/networking/ip-sysctl.rst | |
parent | net: Fix data-races around sysctl_mem. (diff) | |
download | linux-dd44f04b9214adb68ef5684ae87a81ba03632250.tar.xz linux-dd44f04b9214adb68ef5684ae87a81ba03632250.zip |
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: 446fda4f2682 ("[NetLabel]: CIPSOv4 engine")
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Acked-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/networking/ip-sysctl.rst')
-rw-r--r-- | Documentation/networking/ip-sysctl.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/networking/ip-sysctl.rst b/Documentation/networking/ip-sysctl.rst index 9f41961d11d5..0e58001f8580 100644 --- a/Documentation/networking/ip-sysctl.rst +++ b/Documentation/networking/ip-sysctl.rst @@ -1085,7 +1085,7 @@ cipso_cache_enable - BOOLEAN cipso_cache_bucket_size - INTEGER The CIPSO label cache consists of a fixed size hash table with each hash bucket containing a number of cache entries. This variable limits - the number of entries in each hash bucket; the larger the value the + the number of entries in each hash bucket; the larger the value is, the more CIPSO label mappings that can be cached. When the number of entries in a given hash bucket reaches this limit adding new entries causes the oldest entry in the bucket to be removed to make room. |