[PATCH] security: keys: Fix comment of search_process_keyrings_rcu()

Jarkko Sakkinen jarkko at kernel.org
Tue Sep 29 21:23:13 UTC 2026


On Mon, Sep 28, 2026 at 09:20:23AM +0200, Thomas Huth wrote:
> search_my_process_keyrings() has been renamed to search_cred_keyrings_rcu()
> in commit e59428f721ee ("keys: Move the RCU locks outwards from the keyring
> search functions"), but one spot has been missed in a comment.
> 
> Signed-off-by: Thomas Huth <thuth at redhat.com>
> ---
>  security/keys/process_keys.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/security/keys/process_keys.c b/security/keys/process_keys.c
> index a63c46bb2d148..570c131d90d5c 100644
> --- a/security/keys/process_keys.c
> +++ b/security/keys/process_keys.c
> @@ -528,7 +528,7 @@ key_ref_t search_cred_keyrings_rcu(struct keyring_search_context *ctx)
>  
>  /*
>   * Search the process keyrings attached to the supplied cred for the first
> - * matching key in the manner of search_my_process_keyrings(), but also search
> + * matching key in the manner of search_cred_keyrings_rcu(), but also search
>   * the keys attached to the assumed authorisation key using its credentials if
>   * one is available.
>   *
> -- 
> 2.55.0
> 

Thanks.

Reviewed-by: Jarkko Sakkinen <jarkko at kernel.org>

Br, Jarkko



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