Searched hist:efde8b6e16f11e7d1681c68d86c7fd51053cada7 (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/security/keys/ |
H A D | gc.c | diff efde8b6e16f11e7d1681c68d86c7fd51053cada7 Tue Jan 17 14:39:40 CST 2012 David Howells <dhowells@redhat.com> 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>
|
H A D | keyring.c | diff efde8b6e16f11e7d1681c68d86c7fd51053cada7 Tue Jan 17 14:39:40 CST 2012 David Howells <dhowells@redhat.com> 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>
|