All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] nvme: compat ioctl fixes
@ 2020-03-28  5:09 ` Nick Bowler
  0 siblings, 0 replies; 14+ messages in thread
From: Nick Bowler @ 2020-03-28  5:09 UTC (permalink / raw)
  To: linux-nvme, linux-kernel; +Cc: Sagi Grimberg, Christoph Hellwig, Keith Busch

On review of my earlier patch to correct how 32-bit addresses in the
NVME_IOCTL_ADMIN_CMD compat ioctl (via nvme_user_cmd function) were
handled, similar problems were noted in the nvme_user_cmd64 function.

Additionally, NVME_IOCTL_SUBMIT_IO is busted in the compat case because
it not only has the same 32-bit address problem, but additionally the
corresponding nvme_user_io structure padding differs between 32-bit and
64-bit x86 (and some other arches presumably have the same problem).

Note that since I do not know of any users of the NVME_IOCTL_IO64_CMD
or NVME_IOCTL_ADMIN64_CMD ioctls, I have not tested the changes to the
nvme_user_cmd64 function (but these changes are virtually identical
to those done in the other functions function).

Nick Bowler (2):
  nvme: Fix compat NVME_IOCTL_SUBMIT_IO numbering
  nvme: Fix compat address handling in several ioctls

 drivers/nvme/host/core.c        | 47 ++++++++++++++++++++++++---------
 include/uapi/linux/nvme_ioctl.h | 25 ++++++++++++++++++
 2 files changed, 59 insertions(+), 13 deletions(-)

-- 
2.24.1


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

end of thread, other threads:[~2020-03-31 15:48 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-28  5:09 [PATCH v2 0/2] nvme: compat ioctl fixes Nick Bowler
2020-03-28  5:09 ` Nick Bowler
2020-03-28  5:09 ` [PATCH v2 1/2] nvme: Fix compat NVME_IOCTL_SUBMIT_IO numbering Nick Bowler
2020-03-28  5:09   ` Nick Bowler
2020-03-28  8:26   ` Christoph Hellwig
2020-03-28  8:26     ` Christoph Hellwig
2020-03-28 13:56     ` Nick Bowler
2020-03-28 13:56       ` Nick Bowler
2020-03-28  5:09 ` [PATCH v2 2/2] nvme: Fix compat address handling in several ioctls Nick Bowler
2020-03-28  5:09   ` Nick Bowler
2020-03-28  8:26   ` Christoph Hellwig
2020-03-28  8:26     ` Christoph Hellwig
2020-03-31 14:17   ` Christoph Hellwig
2020-03-31 14:17     ` Christoph Hellwig

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.