]> git.baikalelectronics.ru Git - kernel.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)
commit8f973f376ce0c14be9a4ad784a7f60e1fdb44e62
tree1abe20cf6ac343d4b0f92756c19ad1b6b7a70a65
parent2922d9a3fb025db12542f97d6e7d5c7aaaa5da7b
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