Skip to content

meta sgl and userspace protection

Keith Busch linux-nvme 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 9 repliesIn review
  2. v22 patches 10 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3nvme-pci: add support for sgl metadatadrivers/nvme/host/nvme.h drivers/nvme/host/pci.c include/linux/nvme.h+137 -151 reply
2/3nvme: define the remaining used sgls constantsdrivers/nvme/host/nvme.h drivers/nvme/host/rdma.c drivers/nvme/target/admin-cmd.c +1 more+12 -61 reply
3/3nvme-pci: use sgls for all user requests if possibledrivers/nvme/host/ioctl.c drivers/nvme/host/pci.c+13 -47 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchChristoph Hellwig
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCHv3 0/3] meta sgl and userspace protection

From: Keith Busch <[email protected]>

Changes from v2:

Added all the remaining sgl constants that the driver uses

Made the meta sgl checks pci transport specific

Fixed a coding mistake that was taking the sizeof the result of a sizeof

Log a warning if the passthrough interface is used on devices that don't support sgl.

Keith Busch (3):
nvme-pci: add support for sgl metadata
nvme: define the remaining used sgls constants
nvme-pci: use sgls for all user requests if possible

 drivers/nvme/host/ioctl.c       |  12 ++-
 drivers/nvme/host/nvme.h        |  10 ++-
 drivers/nvme/host/pci.c         | 147 ++++++++++++++++++++++++++++----
 drivers/nvme/host/rdma.c        |   4 +-
 drivers/nvme/target/admin-cmd.c |   7 +-
 include/linux/nvme.h            |   5 ++
 6 files changed, 161 insertions(+), 24 deletions(-)
Signature · 1 line
2.43.5