From: Herbert Xu <herbert@gondor.apana.org.au>
To: Guangshuo Li <liguangshuo@mail.sdu.edu.cn>
Cc: ayush.sawal@chelsio.com, davem@davemloft.net,
linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] crypto: chelsio - Fix potential NULL dereference after detach
Date: Fri, 27 Nov 2026 13:11:19 +0800 [thread overview]
Message-ID: <awkQ9-PZryz8Ss5s@gondor.apana.org.au> (raw)
In-Reply-To: <20261116-c29ba55625-crypto-chelsio@mail.sdu.edu.cn>
Guangshuo Li <liguangshuo@mail.sdu.edu.cn> wrote:
> Detached contexts remain on the inactive list until module exit, but
> their PCI driver data has already been cleared. Looking up the adapter
> to reset its counters then dereferences NULL.
>
> Skip the adapter lookup for detached contexts and free the contexts
> without accessing the removed adapter.
>
> This issue was found by our static analysis tool under development.
>
> Fixes: c0271a053612 ("crypto: chelsio - Resetting crypto counters during the driver unregister")
> Signed-off-by: Guangshuo Li <liguangshuo@mail.sdu.edu.cn>
> ---
> drivers/crypto/chelsio/chcr_core.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
prev parent reply other threads:[~2026-11-27 5:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-16 14:17 Guangshuo Li
2026-11-27 5:11 ` Herbert Xu [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=awkQ9-PZryz8Ss5s@gondor.apana.org.au \
--to=herbert@gondor.apana.org.au \
--cc=ayush.sawal@chelsio.com \
--cc=davem@davemloft.net \
--cc=liguangshuo@mail.sdu.edu.cn \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®