[PATCH v3 1/2] KEYS: Return user session keyring on lookup
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Thu Nov 5 22:10:44 UTC 2026
> A process without a session keyring looking up KEY_SPEC_SESSION_KEYRING
> without KEY_LOOKUP_CREATE mutates the credentials. This causes struct creds
> instances shared with other subsystems to become stale.
>
> Address this by returning the resolved user session keyring directly
> without installing it into credentials.
>
> Cc: keyrings at vger.kernel.org
> Cc: linux-integrity at vger.kernel.org
> Cc: linux-kernel at vger.kernel.org
> Cc: linux-security-module at vger.kernel.org
> Cc: Eric Biggers <ebiggers at kernel.org>
> Cc: James Morris <jmorris at namei.org>
> Cc: "Serge E. Hallyn" <serge at hallyn.com>
> Cc: stable at vger.kernel.org # v5.10+
> Fixes: d84f4f992cbd ("CRED: Inaugurate COW credentials")
> Suggested-by: Jann Horn <jannh at google.com>
> Closes: https://lore.kernel.org/keyrings/CAG48ez0XjVSR=M--UBauTm8sJuc+ZbhKzaPa3a6wrSVHyoKevw@mail.gmail.com/
> Signed-off-by: Jarkko Sakkinen <jarkko at kernel.org>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261105220050.1421842-1-jarkko@kernel.org?part=1
More information about the Linux-security-module-archive
mailing list