]> git.baikalelectronics.ru Git - kernel.git/commit
Merge tag 'keys-fixes-20200329' of git://git.kernel.org/pub/scm/linux/kernel/git...
authorLinus Torvalds <torvalds@linux-foundation.org>
Sat, 4 Apr 2020 19:24:47 +0000 (12:24 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 4 Apr 2020 19:24:47 +0000 (12:24 -0700)
commit0b998e8990d3f010e20c15ca8a7555ada3909edf
tree211606956d526d055ccce3f7f5cdc514d3be05fb
parent9baf90307beb261344370d8d91ecf95dae40d37f
parentfe1709ef694196e8e2f212f4ab922a1a5cbb29f1
Merge tag 'keys-fixes-20200329' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs

Pull keyrings fixes from David Howells:
 "Here's a couple of patches that fix a circular dependency between
  holding key->sem and mm->mmap_sem when reading data from a key.

  One potential issue is that a filesystem looking to use a key inside,
  say, ->readpages() could deadlock if the key being read is the key
  that's required and the buffer the key is being read into is on a page
  that needs to be fetched.

  The case actually detected is a bit more involved - with a filesystem
  calling request_key() and locking the target keyring for write - which
  could be being read"

* tag 'keys-fixes-20200329' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs:
  KEYS: Avoid false positive ENOMEM error on key read
  KEYS: Don't write out to userspace while holding key semaphore
security/keys/keyctl.c