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

Jarkko Sakkinen jarkko at kernel.org
Tue Nov 17 14:53:59 UTC 2026


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



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