From: Bart Van Assche <bvanassche@acm.org>
To: ZhangHui <zhanghui31@xiaomi.com>,
alim.akhtar@samsung.com, avri.altman@wdc.com,
James.Bottomley@HansenPartnership.com,
martin.petersen@oracle.com
Cc: ebiggers@google.co, peter.griffin@linaro.org,
linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ufs: crypto: add host_sem lock in ufshcd_program_key
Date: Mon, 17 Mar 2025 15:32:51 -0700 [thread overview]
Message-ID: <048d2f33-2697-4ede-9814-d8e9f3aeb732@acm.org> (raw)
In-Reply-To: <20250317110101.347636-1-zhanghui31@xiaomi.com>
On 3/17/25 4:01 AM, ZhangHui wrote:
> On Android devices, we found that there is a probability that
> the ufs has been shut down but the thread is still deleting the
> key, which will cause the bus error.
How does this patch guarantee that crypto keys are evicted before the
UFS driver has been shut down? This should be explained in detail in the
patch description.
> Let's fixed this issue by adding a lock in program_key flow.
There are multiple synchronization objects owned by the UFS driver. Why
'host_sem' and not any other synchronization object?
Thanks,
Bart.
next prev parent reply other threads:[~2025-03-17 22:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-17 11:01 ZhangHui
2025-03-17 22:32 ` Bart Van Assche [this message]
2025-03-19 3:17 ` ZhangHui
2025-03-21 4:44 ` Eric Biggers
2025-03-21 7:45 ` ZhangHui
2025-03-21 16:53 ` Bart Van Assche
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=048d2f33-2697-4ede-9814-d8e9f3aeb732@acm.org \
--to=bvanassche@acm.org \
--cc=James.Bottomley@HansenPartnership.com \
--cc=alim.akhtar@samsung.com \
--cc=avri.altman@wdc.com \
--cc=ebiggers@google.co \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=peter.griffin@linaro.org \
--cc=zhanghui31@xiaomi.com \
/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®