]> asedeno.scripts.mit.edu Git - linux.git/commit
keys: Hoist locking out of __key_link_begin()
authorDavid Howells <dhowells@redhat.com>
Thu, 30 May 2019 10:37:39 +0000 (11:37 +0100)
committerDavid Howells <dhowells@redhat.com>
Thu, 30 May 2019 21:30:55 +0000 (22:30 +0100)
commitdf593ee23e05cdda16c8c995e5818779431bb29f
tree1abe20cf6ac343d4b0f92756c19ad1b6b7a70a65
parenteb0f68cb7042fd5cff0d6b57966a93049fb2495b
keys: Hoist locking out of __key_link_begin()

Hoist the locking of out of __key_link_begin() and into its callers.  This
is necessary to allow the upcoming key_move() operation to correctly order
taking of the source keyring semaphore, the destination keyring semaphore
and the keyring serialisation lock.

Signed-off-by: David Howells <dhowells@redhat.com>
security/keys/internal.h
security/keys/key.c
security/keys/keyring.c
security/keys/request_key.c