[GIT PULL] fscrypt updates for 6.1

From: Eric Biggers
Date: Sun Oct 02 2022 - 23:00:17 EST


The following changes since commit 1c23f9e627a7b412978b4e852793c5e3c3efc555:

Linux 6.0-rc2 (2022-08-21 17:32:54 -0700)

are available in the Git repository at:

https://git.kernel.org/pub/scm/fs/fscrypt/fscrypt.git tags/fscrypt-for-linus

for you to fetch changes up to 0e91fc1e0f5c70ce575451103ec66c2ec21f1a6e:

fscrypt: work on block_devices instead of request_queues (2022-09-21 20:33:06 -0700)

----------------------------------------------------------------

This release contains some implementation changes, but no new features:

- Rework the implementation of the fscrypt filesystem-level keyring to
not be as tightly coupled to the keyrings subsystem. This resolves
several issues.

- Eliminate most direct uses of struct request_queue from fs/crypto/,
since struct request_queue is considered to be a block layer
implementation detail.

- Stop using the PG_error flag to track decryption failures. This is a
prerequisite for freeing up PG_error for other uses.

----------------------------------------------------------------
Christoph Hellwig (1):
fscrypt: work on block_devices instead of request_queues

Eric Biggers (4):
fscrypt: remove fscrypt_set_test_dummy_encryption()
fscrypt: stop using PG_error to track error status
fscrypt: stop using keyrings subsystem for fscrypt_master_key
fscrypt: stop holding extra request_queue references

fs/crypto/bio.c | 16 +-
fs/crypto/fscrypt_private.h | 82 +++++---
fs/crypto/hooks.c | 10 +-
fs/crypto/inline_crypt.c | 147 +++++++------
fs/crypto/keyring.c | 495 ++++++++++++++++++++++++--------------------
fs/crypto/keysetup.c | 89 ++++----
fs/crypto/keysetup_v1.c | 4 +-
fs/crypto/policy.c | 21 +-
fs/ext4/readpage.c | 10 +-
fs/f2fs/data.c | 18 +-
fs/f2fs/super.c | 24 +--
fs/super.c | 2 +-
include/linux/fs.h | 2 +-
include/linux/fscrypt.h | 32 ++-
14 files changed, 495 insertions(+), 457 deletions(-)