Merge tag 'keys-fixes-20230321' of git://git.kernel.org/pub/scm/linux/kernel/git...
authorLinus Torvalds <torvalds@linux-foundation.org>
Tue, 21 Mar 2023 18:38:58 +0000 (11:38 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 21 Mar 2023 18:38:58 +0000 (11:38 -0700)
commit2faac9a98f010cf5b342fa89ac489c4586364e6e
treef2ac38c22fc07b41d1cdd2e7687d39deeecf40d1
parent17214b70a159c6547df9ae204a6275d983146f6b
parent3584c1dbfffdabf8e3dc1dd25748bb38dd01cd43
Merge tag 'keys-fixes-20230321' of git://git./linux/kernel/git/dhowells/linux-fs

Pull keyrings fixes from David Howells:

 - Fix request_key() so that it doesn't cache a looked up key on the
   current thread if that thread is a kernel thread.

   The cache is cleared during notify_resume - but that doesn't happen
   in kernel threads. This is causing cifs DNS keys to be
   un-invalidateable.

 - Fix a wrapper check in verify_pefile() to not round up the length.

 - Change asymmetric_keys code to log errors to make it easier for users
   to work out why failures occurred.

* tag 'keys-fixes-20230321' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs:
  asymmetric_keys: log on fatal failures in PE/pkcs7
  verify_pefile: relax wrapper length check
  keys: Do not cache key in task struct if key is requested from kernel thread