[lkml]   [2019]   [May]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject[PATCH v2 0/3] block: sed-opal: add support for shadow MBR done flag and write
This patch series extends SED Opal support: it adds IOCTL for setting the shadow
MBR done flag which can be useful for unlocking an Opal disk on boot and it adds
IOCTL for writing to the shadow MBR.

This applies on current master.

I successfully tested toggling the MBR done flag and writing the shadow MBR
using some tools I hacked together[1] with a Samsung SSD 850 EVO drive.

Changes from v1:
* PATCH 2/3: remove check with access_ok, just rely on copy_from_user as
suggested in [2] (I tested passing data == 0 and I got the expected EFAULT)


Jonas Rabenstein (3):
block: sed-opal: add ioctl for done-mark of shadow mbr
block: sed-opal: ioctl for writing to shadow mbr
block: sed-opal: check size of shadow mbr

block/opal_proto.h | 16 ++++
block/sed-opal.c | 157 +++++++++++++++++++++++++++++++++-
include/linux/sed-opal.h | 2 +
include/uapi/linux/sed-opal.h | 20 +++++
4 files changed, 193 insertions(+), 2 deletions(-)


 \ /
  Last update: 2019-05-21 22:47    [W:0.108 / U:34.496 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site