[PATCH 2/2] NVMe: Fix SG_IO status values
Verma, Vishal L
vishal.l.verma at intel.com
Wed Aug 27 13:52:53 PDT 2014
On Wed, 2014-08-27 at 13:55 -0600, Keith Busch wrote:
> We've only been setting the sg_io_hdr status values on SCSI commands
> that require an nvme command to complete the translation. The fields
> in the struct are output parameters, so we have to set them, otherwise
> user space will see whatever was in memory from before. In the case of
> compat SG_IO, this would reveal kernel memory. This fixes the issue by
> initializing the sg_io_hdr with successful status.
>
> Signed-off-by: Keith Busch <keith.busch at intel.com>
> ---
> drivers/block/nvme-scsi.c | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
Acked-by: Vishal Verma <vishal.l.verma at linux.intel.com>
More information about the Linux-nvme
mailing list