diff options
| author | Christian Brauner <brauner@kernel.org> | 2026-03-17 15:38:54 +0100 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-03-17 15:38:54 +0100 |
| commit | 2e43ca1a4f949e4beb763f8196695da02b17bd77 (patch) | |
| tree | 37e7c99ed1cf5519ed37b192bd55aaedf2b1f591 /security | |
| parent | 9840bb66e7e5dffd72b03201318f154a10b06b4a (diff) | |
| parent | 81359c146fba8d6a59db7e938c316776f63b9ee5 (diff) | |
Merge patch series "vfs: follow-on fixes for i_ino widening"
Jeff Layton <jlayton@kernel.org> says:
Just some patches to fix follow-on issues reported after the
inode->i_ino widening series.
* patches from https://patch.msgid.link/20260316-iino-u64-v3-0-d1076b8f7a20@kernel.org:
nilfs2: fix 64-bit division operations in nilfs_bmap_find_target_in_group()
EVM: add comment describing why ino field is still unsigned long
Link: https://patch.msgid.link/20260316-iino-u64-v3-0-d1076b8f7a20@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'security')
| -rw-r--r-- | security/integrity/evm/evm_crypto.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/security/integrity/evm/evm_crypto.c b/security/integrity/evm/evm_crypto.c index c0ca4eedb0fe..1c41af2f91a6 100644 --- a/security/integrity/evm/evm_crypto.c +++ b/security/integrity/evm/evm_crypto.c @@ -144,6 +144,12 @@ static void hmac_add_misc(struct shash_desc *desc, struct inode *inode, char type, char *digest) { struct h_misc { + /* + * Although inode->i_ino is now u64, this field remains + * unsigned long to allow existing HMAC and signatures from + * 32-bit hosts to continue working when i_ino hasn't changed + * and fits in a u32. + */ unsigned long ino; __u32 generation; uid_t uid; |
