mbox series

[0/3] Fix crash with fscrypt + Landlock

Message ID 20230313221231.272498-1-ebiggers@kernel.org (mailing list archive)
Headers show
Series Fix crash with fscrypt + Landlock | expand

Message

Eric Biggers March 13, 2023, 10:12 p.m. UTC
This series fixes a bug, found by syzbot, where when a filesystem was
being unmounted, the fscrypt keyring was destroyed before inodes have
been released by the Landlock LSM.

Eric Biggers (3):
  fscrypt: destroy keyring after security_sb_delete()
  fscrypt: improve fscrypt_destroy_keyring() documentation
  fscrypt: check for NULL keyring in fscrypt_put_master_key_activeref()

 fs/crypto/keyring.c | 23 +++++++++++++----------
 fs/super.c          | 15 ++++++++++++---
 2 files changed, 25 insertions(+), 13 deletions(-)


base-commit: fe15c26ee26efa11741a7b632e9f23b01aca4cc6