Skip to contentSkip to conversation

fscrypt fixes for v7.4-rc1

GIT PULL Merged Eric Biggers 2 participants 2 messages Oct 29 – Oct 30

Subsystems (2)
lore
Share & tools
lore

Eric Biggers

author maintainer
#0 lore raw

The following changes since commit 5b0764a53235d3c77e1ed674e836e1b3fe1a4b1f:

Merge tag 'drm-next-2026-10-21' of https://gitlab.freedesktop.org/drm/kernel (2026-10-23 18:29:02 -1000)

are available in the Git repository at:

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

for you to fetch changes up to a5e894bc87b76fd980075892ba77e6bdeeb5e4d0:

ext4: reject encrypted inodes when block size > page size (2026-10-24 12:58:37 -0700)

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

- Add more checks to prevent encryption on "large block size" ext4 filesystems (s_blocksize > PAGE_SIZE), which isn't supported yet. There was already a mount-time check, but it wasn't enough.

- Add missing memory barrier to fscrypt_find_mode_key()

- Add missing zeroization in an error path

----------------------------------------------------------------
Alberto Garcia (2):
ext4: refuse encryption when block size > page size
ext4: reject encrypted inodes when block size > page size

Baokun Li (1):
fscrypt: Fix missing barrier in fscrypt_find_mode_key()

Eric Biggers (1):
fscrypt: Explicitly zeroize sw_secret in error path

 fs/crypto/keyring.c  | 4 +++-
 fs/crypto/keysetup.c | 8 +++++++-
 fs/ext4/crypto.c     | 9 +++++++++
 fs/ext4/inode.c      | 6 ++++++
 4 files changed, 25 insertions(+), 2 deletions(-)