[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ZNYbj9nWKbhXwMwj@gondor.apana.org.au>
Date: Fri, 11 Aug 2023 19:29:19 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Frederick Lawler <fred@...udflare.com>
Cc: davem@...emloft.net, linux-crypto@...r.kernel.org,
linux-kernel@...r.kernel.org, kernel-team@...udflare.com,
stable@...r.kernel.org
Subject: Re: [PATCH] crypto: af_alg - Decrement struct key.usage in
alg_set_by_key_serial()
On Tue, Aug 01, 2023 at 08:57:09AM -0500, Frederick Lawler wrote:
> Calls to lookup_user_key() require a corresponding key_put() to
> decrement the usage counter. Once it reaches zero, we schedule key GC.
> Therefore decrement struct key.usage in alg_set_by_key_serial().
>
> Fixes: 7984ceb134bf ("crypto: af_alg - Support symmetric encryption via keyring keys")
> Cc: <stable@...r.kernel.org>
> Signed-off-by: Frederick Lawler <fred@...udflare.com>
> ---
> This is rebased ontop of Linus's 6.5-rc1. Original patch was introduced in 6.2.
> ---
> crypto/af_alg.c | 3 +++
> 1 file changed, 3 insertions(+)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Powered by blists - more mailing lists