summaryrefslogtreecommitdiffstats
path: root/security/smack/smack.h
diff options
context:
space:
mode:
authorVishal Goel2016-11-23 06:01:08 +0100
committerCasey Schaufler2017-01-10 18:47:20 +0100
commit3c7ce3427106f0fa2d8593f9fd8f82c494215782 (patch)
tree982ee2c19f059bbd1377d0345006a9f87eb7b9ee /security/smack/smack.h
parentsamples/seccomp: fix 64-bit comparison macros (diff)
downloadkernel-qcow2-linux-3c7ce3427106f0fa2d8593f9fd8f82c494215782.tar.gz
kernel-qcow2-linux-3c7ce3427106f0fa2d8593f9fd8f82c494215782.tar.xz
kernel-qcow2-linux-3c7ce3427106f0fa2d8593f9fd8f82c494215782.zip
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 'security/smack/smack.h')
0 files changed, 0 insertions, 0 deletions