* [GIT PULL] KEYS: changes for v7.4-rc6
@ 2026-12-02 4:37 Jarkko Sakkinen
0 siblings, 0 replies; only message in thread
From: Jarkko Sakkinen @ 2026-12-02 4:37 UTC (permalink / raw)
To: Linus Torvalds
Cc: David Howells, Herbert Xu, David S. Miller, James Bottomley,
Mimi Zohar, Eric Biggers, keyrings, linux-integrity,
linux-security-module
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(-)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-12-02 4:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-02 4:37 [GIT PULL] KEYS: changes for v7.4-rc6 Jarkko Sakkinen
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.