From: Eric Biggers <ebiggers@kernel.org>
To: Gaurav Kashyap <quic_gaurkash@quicinc.com>
Cc: linux-scsi@vger.kernel.org, linux-arm-msm@vger.kernel.org,
linux-mmc@vger.kernel.org, linux-block@vger.kernel.org,
linux-fscrypt@vger.kernel.org, thara.gopinath@linaro.org,
asutoshd@codeaurora.org
Subject: Re: [PATCH 0/4] Adds wrapped key support for inline storage encryption
Date: Thu, 4 Nov 2021 15:49:16 -0700 [thread overview]
Message-ID: <YYRjbCDhEt8Vh1xv@gmail.com> (raw)
In-Reply-To: <20211103231840.115521-1-quic_gaurkash@quicinc.com>
Hi Gaurav,
On Wed, Nov 03, 2021 at 04:18:36PM -0700, Gaurav Kashyap wrote:
> This currently has 4 patches with another coming in shortly for MMC.
>
> 1. Moves ICE functionality to a common library, so that different storage controllers can use it.
> 2. Adds a SCM call for derive raw secret needed for wrapped keys.
> 3. Adds a hardware key manager library needed for wrapped keys.
> 4. Adds wrapped key support in ufs for storage encryption
>
> Gaurav Kashyap (4):
> ufs: move ICE functionality to a common library
> qcom_scm: scm call for deriving a software secret
> soc: qcom: add HWKM library for storage encryption
> soc: qcom: add wrapped key support for ICE
>
> drivers/firmware/qcom_scm.c | 61 +++++++
> drivers/firmware/qcom_scm.h | 1 +
> drivers/scsi/ufs/ufs-qcom-ice.c | 200 ++++++-----------------
> drivers/scsi/ufs/ufs-qcom.c | 1 +
> drivers/scsi/ufs/ufs-qcom.h | 5 +
> drivers/scsi/ufs/ufshcd-crypto.c | 47 ++++--
> drivers/scsi/ufs/ufshcd.h | 5 +
> drivers/soc/qcom/Kconfig | 14 ++
> drivers/soc/qcom/Makefile | 2 +
> drivers/soc/qcom/qti-ice-common.c | 215 +++++++++++++++++++++++++
> drivers/soc/qcom/qti-ice-hwkm.c | 77 +++++++++
> drivers/soc/qcom/qti-ice-regs.h | 257 ++++++++++++++++++++++++++++++
> include/linux/qcom_scm.h | 5 +
> include/linux/qti-ice-common.h | 37 +++++
> 14 files changed, 766 insertions(+), 161 deletions(-)
> create mode 100644 drivers/soc/qcom/qti-ice-common.c
> create mode 100644 drivers/soc/qcom/qti-ice-hwkm.c
> create mode 100644 drivers/soc/qcom/qti-ice-regs.h
> create mode 100644 include/linux/qti-ice-common.h
Thanks for the patches! These are on top of my patchset
"[RFC PATCH v2 0/5] Support for hardware-wrapped inline encryption keys"
(https://lore.kernel.org/linux-block/20210916174928.65529-1-ebiggers@kernel.org),
right? You should mention that in your cover letter, so that it's possible for
people to apply your patches for reviewing or testing, and also to provide
context about what this feature is and why it is important.
As part of that, it would be helpful to specifically mention the documentation
for hardware-wrapped keys in Documentation/block/inline-encryption.rst that I
included in my patchset. It provides a lot of background information that your
patches are hard to understand without (at least your patches 2-4; your first
patch isn't dependent on the hardware-wrapped keys feature).
Can you include information about how your patches were tested? That's really
important to include.
Please run './scripts/checkpatch.pl' on your patches, as recommended in
Documentation/process/submitting-patches.rst. It can catch a lot of issues.
Please use the imperative tense, like "add wrapped key support" rather than
"adds wrapped key support".
I'll leave some more comments on the individual patches.
- Eric
next prev parent reply other threads:[~2021-11-04 22:49 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-03 23:18 [PATCH 0/4] Adds wrapped key support for inline storage encryption Gaurav Kashyap
2021-11-03 23:18 ` [PATCH 1/4] ufs: move ICE functionality to a common library Gaurav Kashyap
2021-11-04 23:05 ` Eric Biggers
2021-11-03 23:18 ` [PATCH 2/4] qcom_scm: scm call for deriving a software secret Gaurav Kashyap
2021-11-04 23:31 ` Eric Biggers
2021-11-03 23:18 ` [PATCH 3/4] soc: qcom: add HWKM library for storage encryption Gaurav Kashyap
2021-11-04 23:46 ` Eric Biggers
2021-11-03 23:18 ` [PATCH 4/4] soc: qcom: add wrapped key support for ICE Gaurav Kashyap
2021-11-05 0:08 ` Eric Biggers
2021-11-04 22:49 ` Eric Biggers [this message]
2021-12-08 0:09 ` [PATCH 0/4] Adds wrapped key support for inline storage encryption Gaurav Kashyap
2021-12-08 0:23 ` Eric Biggers
2021-12-08 18:13 ` Gaurav Kashyap
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=YYRjbCDhEt8Vh1xv@gmail.com \
--to=ebiggers@kernel.org \
--cc=asutoshd@codeaurora.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-block@vger.kernel.org \
--cc=linux-fscrypt@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=quic_gaurkash@quicinc.com \
--cc=thara.gopinath@linaro.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;
as well as URLs for NNTP newsgroup(s).