[GIT PULL] eCryptfs changes for 7.1-rc1

From: Tyler Hicks

Date: Mon Apr 20 2026 - 02:21:17 EST


Hi Linus,

The following changes since commit c369299895a591d96745d6492d4888259b004a9e:

Linux 7.0-rc5 (2026-03-22 14:42:17 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/tyhicks/ecryptfs.git tags/ecryptfs-7.1-rc1

for you to fetch changes up to e836ec1819b0cc50e0b45a53b0bdce6c596f0207:

ecryptfs: keep the lower iattr contained in truncate_upper (2026-04-08 18:54:03 -0500)

----------------------------------------------------------------
eCryptfs changes for 7.1-rc1

The set of eCryptfs changes for the 7.1-rc1 merge window consists of:
- A fix to avoid unnecessary eCryptfs inode timestamp truncation by
re-using the lower filesystem's time granularity
- Various small code cleanups
- Reorganization of the setattr hook's handling of inode resizing to
improve style and readability, remove an unnecessary memory allocation
when shrinking, and to support an upcoming rework of the VFS
interfaces involved in truncation

The patches have all spent time in linux-next and they do not regress
the tests in the ecryptfs-utils tree. The inode timestamp fix returns
the "setattr-flush-dirty" test to passing state.

Signed-off-by: Tyler Hicks <code@xxxxxxxxxxx>

----------------------------------------------------------------
Christoph Hellwig (7):
ecryptfs: cleanup ecryptfs_setattr
ecryptfs: streamline truncate_upper
ecryptfs: use ZERO_PAGE instead of allocating zeroed memory in truncate_upper
ecryptfs: combine the two ATTR_SIZE blocks in ecryptfs_setattr
ecryptfs: merge ecryptfs_inode_newsize_ok into truncate_upper
ecryptfs: factor out a ecryptfs_iattr_to_lower helper
ecryptfs: keep the lower iattr contained in truncate_upper

Frank Hsiao 蕭法宣 (1):
ecryptfs: Set s_time_gran to get correct time granularity

Thorsten Blum (7):
ecryptfs: Replace memcpy + manual NUL termination with strscpy
ecryptfs: Use struct_size to improve process_response + send_miscdev
ecryptfs: Fix tag number in encrypt_filename() error message
ecryptfs: Remove redundant if checks in encrypt_and_encode_filename
ecryptfs: Log function name only once in decode_and_decrypt_filename
ecryptfs: Fix typo in ecryptfs_derive_iv function comment
ecryptfs: Drop TODO comment in ecryptfs_derive_iv

fs/ecryptfs/crypto.c | 36 +++----
fs/ecryptfs/debug.c | 5 +-
fs/ecryptfs/inode.c | 257 ++++++++++++++++++++++--------------------------
fs/ecryptfs/keystore.c | 6 +-
fs/ecryptfs/main.c | 1 +
fs/ecryptfs/messaging.c | 3 +-
fs/ecryptfs/miscdev.c | 7 +-
7 files changed, 142 insertions(+), 173 deletions(-)