All of lore.kernel.org
 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-rc6
Date: Wed, 2 Dec 2026 06:37:38 +0200	[thread overview]
Message-ID: <aw-gkqV7KjfxbXNx@kernel.org> (raw)

The following changes since commit 822ba3a89c7896b26e4beb70e2ebffb881924dfe:

  Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux (2026-11-27 09:56:00 -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-rc6

for you to fetch changes up to fd7e96c6c90bb18c9b23f2bbfbbde4d89ac6d88a:

  KEYS: Reject keyring creation with overridden credentials (2026-11-29 23:31:38 +0200)

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

The summary of bug fixes in this PR:

1  Synchronize key_instantiate_and_link() and key_reject_and_link() with
   unregister_key_type() using SRCU, so that a concurrent type removal
   does not fail on null deref.
2. Call rcu_barrier() at module exit so that encrypted_rcu_free() and
   trusted_rcu_free() callbacks queued by ->update() cannot run in freed
   module memory.
3. Return user_session directly instead of installing it into the task's
   credentials on a lookup without KEY_LOOKUP_CREATE, as mutating struct
   cred, as client subsystem will then end up having a stale struct
   cred.
4. Reject KEY_LOOKUP_CREATE with -EPERM when the task runs with
   overridden credentials, instead of triggering BUG_ON() in
   commit_creds().

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

----------------------------------------------------------------
Guicai Ma (1):
      KEYS: Protect key instantiation and rejection against type removal

Jarkko Sakkinen (2):
      KEYS: Return user session keyring on lookup
      KEYS: Reject keyring creation with overridden credentials

Zhenwen Liang (2):
      KEYS: encrypted: Wait for RCU callbacks before module unload
      KEYS: trusted: Wait for RCU callbacks before module unload

 Documentation/security/keys/core.rst      |   7 +-
 security/keys/encrypted-keys/encrypted.c  |   1 +
 security/keys/gc.c                        |  13 +++
 security/keys/internal.h                  |   2 +
 security/keys/key.c                       | 160 +++++++++++++++++++++---------
 security/keys/keyctl.c                    |   5 +-
 security/keys/process_keys.c              |  50 +++-------
 security/keys/trusted-keys/trusted_core.c |   1 +
 8 files changed, 153 insertions(+), 86 deletions(-)

                 reply	other threads:[~2026-12-02  4:37 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=aw-gkqV7KjfxbXNx@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.