Skip to content

sed-opal: keyrings, discovery, revert, key store

[email protected] keyrings linux-block linuxppc-dev 7 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest posting 2/23 patches 5 repliesApplied
  2. v5 posting 1/23 patches 0 repliesSuperseded
  3. v4 posting 2/23 patches 2 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v4 posting 1/23 patches0 repliesSuperseded
v33 patches12 repliesSuperseded
v23 patches3 repliesSuperseded
v13 patches3 repliesSuperseded

Changes in v5 from the cover letter

- rebase to for-6.5/block

Patches in v5 posting 2/2 Applied

#Subject and filesSizeRepliesApplied
1/3block: sed-opal: Implement IOC_OPAL_DISCOVERYblock/sed-opal.c include/linux/sed-opal.h include/uapi/linux/sed-opal.h+42 -30 replies
2/3block: sed-opal: Implement IOC_OPAL_REVERT_LSPblock/opal_proto.h block/sed-opal.c include/linux/sed-opal.h +1 more+56 -00 replies
3/3block: sed-opal: keyring support for SED keysblock/Kconfig block/sed-opal.c include/linux/sed-opal.h +1 more+184 -30 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchChristoph HellwigJonathan DerrickJarkko Sakkinen
SeriesA-b
1/3R-b R-b
2/3R-b R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v5 thread

Cover letter [PATCH v5 0/3 RESEND] sed-opal: keyrings, discovery, revert, key store

From: Greg Joyce <[email protected]>

This patchset has gone through numerous rounds of review and all comments/suggetions have been addressed. The reviews have covered all relevant areas including reviews by block and keyring developers as well as the SED Opal maintainer. The last patchset submission has not solicited any responses in the six weeks since it was last distributed. The changes are generally useful and ready for inclusion.

TCG SED Opal is a specification from The Trusted Computing Group that allows self encrypting storage devices (SED) to be locked at power on and require an authentication key to unlock the drive.

The current SED Opal implementation in the block driver requires that authentication keys be provided in an ioctl so that they can be presented to the underlying SED capable drive. Currently, the key is typically entered by a user with an application like sedutil or sedcli. While this process works, it does not lend itself to automation like unlock by a udev rule.

The SED block driver has been extended so it can alternatively obtain a key from a sed-opal kernel keyring. The SED ioctls will indicate the source of the key, either directly in the ioctl data or from the keyring.

Two new SED ioctls have also been added. These are:
1) IOC_OPAL_REVERT_LSP to revert LSP state
2) IOC_OPAL_DISCOVERY to discover drive capabilities/state

change log v5:
- rebase to for-6.5/block

change log v4:
- rebase to 6.3-rc7
- replaced "255" magic number with U8_MAX

change log:
- rebase to 6.x
- added latest reviews
- removed platform functions for persistent key storage
- replaced key update logic with key_create_or_update()
- minor bracing and padding changes
- add error returns
- opal_key structure is application provided but kernel verified
- added brief description of TCG SED Opal

Greg Joyce (3):
block: sed-opal: Implement IOC_OPAL_DISCOVERY
block: sed-opal: Implement IOC_OPAL_REVERT_LSP
block: sed-opal: keyring support for SED keys

 block/Kconfig                 |   2 +
 block/opal_proto.h            |   4 +
 block/sed-opal.c              | 252 +++++++++++++++++++++++++++++++++-
 include/linux/sed-opal.h      |   5 +
 include/uapi/linux/sed-opal.h |  25 +++-
 5 files changed, 282 insertions(+), 6 deletions(-)

base-commit: 1341c7d2ccf42ed91aea80b8579d35bc1ea381e2

Signature · 1 line
[email protected]