Linux Security Modules development
 help / color / mirror / Atom feed
From: Jarkko Sakkinen <jarkko@kernel.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: David Howells <dhowells@redhat.com>,
	Herbert Xu <herbert@gondor.apana.org.au>,
	"David S. Miller" <davem@davemloft.net>,
	James Bottomley <James.Bottomley@hansenpartnership.com>,
	Mimi Zohar <zohar@linux.ibm.com>,
	Eric Biggers <ebiggers@kernel.org>,
	keyrings@vger.kernel.org, linux-integrity@vger.kernel.org,
	linux-security-module@vger.kernel.org
Subject: [GIT PULL] KEYS: changes for v7.4-rc5
Date: Thu, 26 Nov 2026 21:30:30 +0200	[thread overview]
Message-ID: <awiI1qcs1TjtU3Sq@kernel.org> (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.

Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>

----------------------------------------------------------------
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(-)

                 reply	other threads:[~2026-11-26 19:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=awiI1qcs1TjtU3Sq@kernel.org \
    --to=jarkko@kernel.org \
    --cc=James.Bottomley@hansenpartnership.com \
    --cc=davem@davemloft.net \
    --cc=dhowells@redhat.com \
    --cc=ebiggers@kernel.org \
    --cc=herbert@gondor.apana.org.au \
    --cc=keyrings@vger.kernel.org \
    --cc=linux-integrity@vger.kernel.org \
    --cc=linux-security-module@vger.kernel.org \
    --cc=torvalds@linux-foundation.org \
    --cc=zohar@linux.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox