android_kernel_xiaomi_sm8350/security/keys
David Howells 1a26feb962 [PATCH] Keys: Improve usage of memory barriers and remove IRQ disablement
Remove an unnecessary memory barrier (implicit in rcu_dereference()) from
install_session_keyring().

install_session_keyring() is also rearranged a little to make it slightly
more efficient.

As install_*_keyring() may schedule (in synchronize_rcu() or
keyring_alloc()), they may not be entered with interrupts disabled - and so
there's no point saving the interrupt disablement state over the critical
section.

exec_keys() will also be invoked with interrupts enabled, and so that doesn't
need to save the interrupt state either.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-04-11 06:18:45 -07:00
..
compat.c
internal.h
key.c [Security] Keys: Fix oops when adding key to non-keyring 2006-04-10 09:33:46 -07:00
keyctl.c
keyring.c [Security] Keys: Fix oops when adding key to non-keyring 2006-04-10 09:33:46 -07:00
Makefile
permission.c
proc.c
process_keys.c [PATCH] Keys: Improve usage of memory barriers and remove IRQ disablement 2006-04-11 06:18:45 -07:00
request_key_auth.c
request_key.c
user_defined.c