Skip to contentSkip to conversation

security: keys: Fix comment of search_process_keyrings_rcu()

PATCH In review Thomas Huth 4 participants 4 messages Sep 28 – Sep 29

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 security: keys: Fix comment of search_process_keyrings_rcu()

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.

---
 security/keys/process_keys.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
security/keys/process_keys.c +1 -1
index a63c46bb2d148..570c131d90d5c 100644
@@ -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.
  *
Signature · 1 line
2.55.0
#1 lore raw
Sashiko has reviewed this patch and found no issues. It looks great!
Quoted 5 lines

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.

Sashiko has reviewed this patch and found no issues. It looks great!

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
Reviewed-by on v1 1/1
#2 lore raw
In reply to Thomas Huth
Quoted 14 lines · Thomas Huth

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.

---
 security/keys/process_keys.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
security/keys/process_keys.c +0 -0
index a63c46bb2d148..570c131d90d5c 100644

security/keys/process_keys.c key_ref_t search_cred_keyrings_rcu(struct keyring_search_context *ctx) · line 532

Quoted 6 lines
security/keys/process_keys.c +1 -1
@@ -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
Quoted 2 lines
security/keys/process_keys.c +0 -0
  * one is available.
  *
Signature · 2 lines
Best regards,
Jinjie
maintainer Reviewed-by on v1 1/1
#3 lore raw
In reply to Thomas Huth
Quoted 25 lines · Thomas Huth

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.

---
 security/keys/process_keys.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
security/keys/process_keys.c +1 -1
index a63c46bb2d148..570c131d90d5c 100644
@@ -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.
  *
Signature · 1 line
2.55.0

Thanks.

Br, Jarkko