[PATCH v13 4/7] s390/cert_store: Read-lock keyring semaphore in invalidate_keyring_keys()

sashiko-bot at kernel.org sashiko-bot at kernel.org
Sat Nov 14 19:42:09 UTC 2026


> key_type->read() requires the caller to hold key->sem for reading.
> Acquire keyring->sem across the two key_type_keyring.read() calls in
> invalidate_keyring_keys() so the keyring cannot be modified between the
> size query and the payload read.
> 
> Cc: David Howells <dhowells at redhat.com>
> Cc: stable at vger.kernel.org # v6.6+
> Fixes: 8cf57d7217c3 ("s390: add support for user-defined certificates")
> 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/20261114193631.731615-1-jarkko@kernel.org?part=4




More information about the Linux-security-module-archive mailing list