Re: [PATCH v2] keys: serialise key instantiation against keyctl_chown_key()
From: Jarkko Sakkinen
Date: Tue Nov 17 2026 - 09:54:42 EST
On Tue, Nov 17, 2026 at 12:34:12PM +0000, Sinan Turunc wrote:
> 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