Linux-NVME Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] nvme-core: add user command filter
@ 2019-05-08 18:36 Chaitanya Kulkarni
  2019-05-08 18:36 ` [PATCH 1/3] nvme: introduce and use RAE bit macro Chaitanya Kulkarni
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Chaitanya Kulkarni @ 2019-05-08 18:36 UTC (permalink / raw)


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.

Chaitanya Kulkarni (3):
  nvme: introduce and use RAE bit macro
  nvme: add sanitize log identifier
  nvme-core: add filter for user commands

 drivers/nvme/host/core.c    | 64 ++++++++++++++++++++++++++++++++++---
 drivers/nvme/target/nvmet.h |  2 +-
 include/linux/nvme.h        |  3 ++
 3 files changed, 64 insertions(+), 5 deletions(-)

-- 
2.17.0

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2019-05-13 20:52 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-08 18:36 [PATCH 0/3] nvme-core: add user command filter Chaitanya Kulkarni
2019-05-08 18:36 ` [PATCH 1/3] nvme: introduce and use RAE bit macro Chaitanya Kulkarni
2019-05-08 18:36 ` [PATCH 2/3] nvme: add sanitize log identifier Chaitanya Kulkarni
2019-05-08 18:36 ` [PATCH 3/3] nvme-core: add filter for user commands Chaitanya Kulkarni
2019-05-10 18:05 ` [PATCH 0/3] nvme-core: add user command filter Chaitanya Kulkarni
2019-05-10 21:42 ` Keith Busch
2019-05-13 13:25   ` Christoph Hellwig
2019-05-13 16:49     ` Keith Busch
2019-05-13 20:36       ` Chaitanya Kulkarni
2019-05-13 20:52         ` Keith Busch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox