Re: [PATCH v2] keys: serialise key instantiation against keyctl_chown_key()

From
Jarkko Sakkinen <jarkko@kernel.org>
Date
2026-11-17 14:54:03
Also in
keyrings, lkml, stable
Reply to
Sinan Turunc, 2026-11-17
On Tue, Nov 17, 2026 at 12:34:12PM +0000, Sinan Turunc wrote:
quoted hunk ↗ jump to hunk
diff --git a/security/keys/key.c b/security/keys/key.c
index 3f1f0fc..df31d10 100644
--- a/security/keys/key.c
+++ b/security/keys/key.c
@@ -441,6 +441,7 @@ static int __key_instantiate_and_link(struct key *key,
 	ret = -EBUSY;
 
Hold on a moment. I have 1/2 for this.

I was going to make it as a review comment but it is separate bug.

I'll response and  attach my fix as soon as I get it done, and after
that you should send a two-patch patch set with my patch as 1/2, and
yours as 2/2.

Br, Jarkko
Thread (7 messages) 7 messages, 3 authors, last reply 7h ago
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help