diff options
author | Vishal Goel <vishal.goel@samsung.com> | 2016-11-23 08:01:08 +0300 |
---|---|---|
committer | Casey Schaufler <casey@schaufler-ca.com> | 2017-01-10 20:47:20 +0300 |
commit | 3c7ce3427106f0fa2d8593f9fd8f82c494215782 (patch) | |
tree | 982ee2c19f059bbd1377d0345006a9f87eb7b9ee /ipc | |
parent | 916cafdc95843fb9af5fd5f83ca499d75473d107 (diff) | |
download | linux-3c7ce3427106f0fa2d8593f9fd8f82c494215782.tar.xz |
SMACK: Add the rcu synchronization mechanism in ipv6 hooks
Add the rcu synchronization mechanism for accessing smk_ipv6_port_list
in smack IPv6 hooks. Access to the port list is vulnerable to a race
condition issue,it does not apply proper synchronization methods while
working on critical section. It is possible that when one thread is
reading the list, at the same time another thread is modifying the
same port list, which can cause the major problems.
To ensure proper synchronization between two threads, rcu mechanism
has been applied while accessing and modifying the port list. RCU will
also not affect the performance, as there are more accesses than
modification where RCU is most effective synchronization mechanism.
Signed-off-by: Vishal Goel <vishal.goel@samsung.com>
Signed-off-by: Himanshu Shukla <himanshu.sh@samsung.com>
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions