Skip to contentSkip to conversation

KEYS: changes for v7.4-rc5

GIT PULL Merged Jarkko Sakkinen 2 participants 2 messages Nov 26 – Nov 27

Subsystems (3)
lore
Share & tools
lore

Jarkko Sakkinen

author maintainer
#0 lore raw

The following changes since commit 666539eecdf4db623f5e3c3e55cf9f2dfad24aa4:

Merge tag 'assoc-array-fixes-v2' (2026-11-16 09:35:38 -0800)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd.git tags/keys-v7.4-rc5

for you to fetch changes up to 1bcff832c48d83c5132662bec83bda37f566d8a2:

KEYS: Fix crash on big_key read (2026-11-24 19:48:15 +0200)

----------------------------------------------------------------
[GIT PULL] KEYS: changes for v7.4-rc5

The summary of bug fixes in this PR:

1. Trusted keys: initialize backend static calls before ->init(), synchronize TEE session lifetime against device removal (and disable sysfs bind/unbind), and propagate CAAM option parsing errors.
2. keyctl_pkey: fix user buffer bounds in keyctl_pkey_e_d_s() and keyctl_pkey_verify(), and zero temporary buffers with kfree_sensitive().
3. Key instantiation: take key->sem during instantiation and rejection to serialize key->user access against keyctl_chown_key().
4. big_key: instantiate the new payload before destroying the old one in big_key_update() so -EDQUOT cannot leave a positive key with a cleared payload.

As per SRCU fix that I forwarded, I'll put that to linux-next after this PR has been accepted to see how it flys at first.

----------------------------------------------------------------
Guicai Ma (2):
KEYS: Fix userspace buffer overflow in keyctl_pkey_e_d_s()
KEYS: Use kfree_sensitive() in keyctl_pkey_e_d_s()

Henry Martin (1):
KEYS: Fix crash on big_key read

Jarkko Sakkinen (4):
KEYS: trusted: Update static calls before init
KEYS: trusted: TEE: Synchronize session lifetime
KEYS: trusted: TEE: Disable sysfs bind attributes
KEYS: Fix asym key overflow in keyctl_pkey_verify()

Keisuke Tsukuda (1):
KEYS: trusted: caam: propagate protected key option parsing errors

Sinan Turunc (1):
KEYS: serialise key instantiation against keyctl_chown_key()

 security/keys/big_key.c                   | 16 ++++--
 security/keys/key.c                       |  4 ++
 security/keys/keyctl_pkey.c               | 21 +++++---
 security/keys/trusted-keys/trusted_caam.c |  4 +-
 security/keys/trusted-keys/trusted_core.c | 15 ++++--
 security/keys/trusted-keys/trusted_tee.c  | 89 +++++++++++++++++++++++--------
 6 files changed, 110 insertions(+), 39 deletions(-)
merge bot Merged
#1 lore raw
The pull request you sent on Thu, 26 Nov 2026 21:30:30 +0200:

The pull request you sent on Thu, 26 Nov 2026 21:30:30 +0200:

Quoted 1 line

git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd.git tags/keys-v7.4-rc5

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/5888d706750d0e5dce374c01d2c656bbfe2045be

Thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html