Skip to content

nvme-core: add user command filter

Keith Busch linux-nvme 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 3 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 3 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] nvme-core: add user command filter
Quoted 8 lines · Chaitanya Kulkarni

This patch-series adds a filter to allow only certain user commands. Right now we use this infrastructure to prevent the user get log page commands where RAE bit is cleared. We only allow get log pages to be read with RAE == 0 where we issue the uevent to the userspace so that user can clear the log pages.

Here we white list the log pages which are only allowed when RAE == 0. We also allow Vendor Specific log pages irrespective of the RAE.

I'm generally against the passthrough interface examining commands. It is not for the driver to decide what an admin can't send to their devices.