diff options
author | 2012-01-17 20:39:40 +0000 | |
---|---|---|
committer | 2012-01-18 10:41:27 +1100 | |
commit | efde8b6e16f11e7d1681c68d86c7fd51053cada7 (patch) | |
tree | 4fb5e80428c4f36c5da35ff3319cd71c1771451c /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | TOMOYO: Accept \000 as a valid character. (diff) | |
download | wireguard-linux-efde8b6e16f11e7d1681c68d86c7fd51053cada7.tar.xz wireguard-linux-efde8b6e16f11e7d1681c68d86c7fd51053cada7.zip |
KEYS: Add missing smp_rmb() primitives to the keyring search code
Add missing smp_rmb() primitives to the keyring search code.
When keyring payloads are appended to without replacement (thus using up spare
slots in the key pointer array), an smp_wmb() is issued between the pointer
assignment and the increment of the key count (nkeys).
There should be corresponding read barriers between the read of nkeys and
dereferences of keys[n] when n is dependent on the value of nkeys.
Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions