[PATCH 0/2] target: Fix up residual handling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Nicholas Bellinger <nab@xxxxxxxxxxxxxxx>

Hi folks,

This patch makes overflow residual data handling reject incoming I/O
w/ CHECK_CONDITION status to address an OOPs where using pre-populated
SGLs w/ residual is not allowed to shrink the payload buffer.  It also fixes
a bug in residual count handling of iscsi-target by reassigning the post
residual_count data length after transport_generic_allocate_tasks() has been
invoked and using proper iscsi_cmd->se_cmd.residual_count set by target-core.

Thanks,

--nab

Cc: <lists@xxxxxxxxxxxx>
Cc: Christoph Hellwig <hch@xxxxxx>
Cc: Andy Grover <agrover@xxxxxxxxxx>

Nicholas Bellinger (2):
  target: Reject SCSI data overflow for fabrics using
    transport_generic_map_mem_to_cmd
  iscsi-target: Fix residual count hanlding + remove
    iscsi_cmd->residual_count

 drivers/target/iscsi/iscsi_target.c      |   10 ++++++----
 drivers/target/iscsi/iscsi_target_core.h |    1 -
 drivers/target/target_core_transport.c   |   12 ++++++++++++
 3 files changed, 18 insertions(+), 5 deletions(-)

-- 
1.7.2.5

--
To unsubscribe from this list: send the line "unsubscribe target-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux SCSI]     [Kernel Newbies]     [Linux SCSI Target Infrastructure]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Device Mapper]

  Powered by Linux