Skip to content

fscrypt context consistency check fixes

Eric Biggers linux-fscrypt linux-fsdevel 1 version Applied

Status from this message: Thanks, applied.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 6 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4fscrypt: fix context consistency check when key(s) unavailablefs/crypto/policy.c+68 -193 replies
2/4ext4: remove "nokey" check from ext4_lookup()fs/ext4/namei.c+1 -81 reply
3/4f2fs: sync f2fs_lookup() with ext4_lookup()fs/f2fs/namei.c+4 -31 reply
4/4ubifs: check for consistent encryption contexts in ubifs_lookup()fs/ubifs/dir.c+11 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] fscrypt context consistency check fixes

From: Eric Biggers <[email protected]>

This patchset fixes fscrypt_has_permitted_context() to correctly handle cases where one or both encryption keys are missing, then updates the ->lookup() methods for ext4, f2fs, and ubifs to be consistent in how they handle the encryption context consistency check.

Eric Biggers (4):
fscrypt: fix context consistency check when key(s) unavailable
ext4: remove "nokey" check from ext4_lookup()
f2fs: sync f2fs_lookup() with ext4_lookup()
ubifs: check for consistent encryption contexts in ubifs_lookup()

 fs/crypto/policy.c | 87 ++++++++++++++++++++++++++++++++++++++++++------------
 fs/ext4/namei.c    |  9 +-----
 fs/f2fs/namei.c    |  7 +++--
 fs/ubifs/dir.c     | 11 +++++++
 4 files changed, 84 insertions(+), 30 deletions(-)
Signature · 1 line
2.12.2.715.g7642488e1d-goog