From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796186262; b=miiZO674uEBTmnZ7UGN3FBIBecZ1GgD4XJ8c0YiLOPX0TYwFCDQR/u6CNdRIAwec7EY5 K1n4VUid3fn9AN0nvm/ggpuKlB5SMnpRSc3iNBfWOw+5yIbcNRY+iXseaglHobH7rf9ZL P3AUYYyTDaLduAYvqK491jFMbewAaCC+itaIi4yizVm9eydvwaNbZB+V/YrJEU17eMbfJ DXKEpNGUMCXwWlCE3jPRrd9WpbgHNOSI+TGodVHJLytWFIHhsSg1zdLhKzKJIaiZZjNf/ mHbEjIfvYoZu10FZCT2VsswhB0Gy6nKL3KeXxjzNgX8P1DuJzXhh9q6dVcBjWROjaOQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796186262; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: MIME-Version:Content-Type:Content-Disposition:X-Mailer; bh=PD2DIt6REGpmYQ6HcR1q9ieDW5KWH0qdg7pmV/dDnHc=; b=LNLV89ix77c3N+h/IoPZPEcNcRHb96Ve67c7WO07pi7h3io5bQeWusstsRvTjCzHTOnH bFBWj4Y1MEnXvur1T2JXNAZdRiJgOD6+dz68ovmrTR9HJaQPpO2mgS6+UEOneK5gAXONW 4fGr+Cw9yFpBliPFuDi0QaMHpRfp0CSjaBSsEI5TqiPSc4ZF8nncYx6Vjp5LtYt5FzcMG LRW5HDePCyVZEBvkSgstyFznF1U9tO5TRmj8A+WZRQ6FrMgwV3Q6lYiHQznCOfyi+CC7O aF8uIWDKDKe5AMb0o7wUbPN2Fwnr7zQknW/ZdKNhNDllJiAKs5MEphiYEJ+nem0XxTg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=cU5Pxyeq; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with UTF8SMTPS id DAD6D606A31A; Wed, 2 Dec 2026 04:37:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=cU5Pxyeq Received: by smtp.kernel.org (Postfix) with UTF8SMTPSA id 06F9E1F000C1; Wed, 2 Dec 2026 04:37:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796186262; bh=PD2DIt6REGpmYQ6HcR1q9ieDW5KWH0qdg7pmV/dDnHc=; h=Date:From:To:Cc:Subject; b=cU5PxyeqprnK9x/tFABF6vLy4QPcqk1hwVFleuGX8LFMWHGuaBC/X0zIDNLXsGg9V JIBWBmAy3ESg7cXiDkQTTyYBgsEVUWP8G8dnzJty45QM4H/HB+YaSUgarfNRco9NMa 7KGXpl+YUXfvYYPxoy+mbnHyyswh/53XkqmGavd2X6DW+BD8Ww64pWn9Y2H8y9aCAM +ErYj2PckYnzWRfstvA7QWrcvNTrqmhs2iw5d+2+AmLa5SCHwN3mnoFtUGBBLN/9j+ eJx7ssoNZhFiOzJ6O6fhL3AYdPHF2GRHAXZyMunfPfNzVFxH6tBuxpp0aqQoJQralE G7DReOoqYx5kQ== Date: Wed, 2 Dec 2026 06:37:38 +0200 From: Jarkko Sakkinen To: Linus Torvalds Cc: David Howells , Herbert Xu , "David S. Miller" , James Bottomley , Mimi Zohar , Eric Biggers , keyrings@vger.kernel.org, linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org Subject: [GIT PULL] KEYS: changes for v7.4-rc6 Message-ID: X-Mailing-List: linux-security-module@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Mailer: aerc 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 ---------------------------------------------------------------- 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(-)