All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/4] Descriptor format sense data
@ 2015-07-15  7:55 Sagi Grimberg
  2015-07-15  7:55 ` [PATCH v1 1/4] scsi: Fix wrong additional sense length in descriptor format Sagi Grimberg
                   ` (4 more replies)
  0 siblings, 5 replies; 15+ messages in thread
From: Sagi Grimberg @ 2015-07-15  7:55 UTC (permalink / raw)
  To: linux-scsi, target-devel
  Cc: Christoph Hellwig, Martin K. Petersen, Hannes Reinecke,
	Bart Van Assche, Mike Christie, James Bottomley,
	Nicholas A. Bellinger

This small patchset addresses some issues with descriptor format
sense data.

Patch 1 fixes wrong additional sense length for descriptor format
information field.

Patch 2 protects against buffer overflow in scsi_set_information_sense
(reported by Hannes).

Patch 3 converts the target stack to report descriptor format sense
data to for LUs that spans 64bit sectors in order to avoid info
truncation (reported by hch).

Patch 4 is a nit, it was included in this to avoid dependencies
(patch 2/4)

Changes from v0:
- Added patch 4/4 to avoid dependencies
- Modified patch 3/4 to use descriptor format only for LUs that
  span 64bit sectors.
- Added reviwed-by tags.

Sagi Grimberg (4):
  scsi: Fix wrong additional sense length in descriptor format
  scsi: Protect against buffer possible overflow in
    scsi_set_sense_information
  target: Return descriptor format sense data in case the LU spans 64bit
    sectors
  libiscsi: Use scsi helper to set information descriptor

 drivers/ata/libata-scsi.c              |  4 +++-
 drivers/scsi/libiscsi.c                |  9 +++------
 drivers/scsi/scsi_common.c             | 15 +++++++++++++--
 drivers/target/target_core_hba.c       |  5 +++++
 drivers/target/target_core_spc.c       | 12 +++++++++---
 drivers/target/target_core_transport.c | 17 +++++++++++++----
 include/scsi/scsi_common.h             |  2 +-
 include/target/target_core_backend.h   |  2 ++
 8 files changed, 49 insertions(+), 17 deletions(-)

-- 
1.8.4.3

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

end of thread, other threads:[~2015-07-24  5:59 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-15  7:55 [PATCH v1 0/4] Descriptor format sense data Sagi Grimberg
2015-07-15  7:55 ` [PATCH v1 1/4] scsi: Fix wrong additional sense length in descriptor format Sagi Grimberg
2015-07-15  8:27   ` Christoph Hellwig
2015-07-15  7:55 ` [PATCH v1 2/4] scsi: Protect against buffer possible overflow in scsi_set_sense_information Sagi Grimberg
2015-07-15  8:29   ` Christoph Hellwig
2015-07-15  7:55 ` [PATCH v1 3/4] target: Return descriptor format sense data in case the LU spans 64bit sectors Sagi Grimberg
2015-07-15  8:06   ` Hannes Reinecke
2015-07-15  8:29   ` Christoph Hellwig
2015-07-15 14:07   ` Bart Van Assche
2015-07-16  0:34   ` Martin K. Petersen
2015-07-15  7:55 ` [PATCH v1 4/4] libiscsi: Use scsi helper to set information descriptor Sagi Grimberg
2015-07-15  8:07   ` Hannes Reinecke
2015-07-15  8:30   ` Christoph Hellwig
2015-07-16  0:33   ` Martin K. Petersen
2015-07-24  5:59 ` [PATCH v1 0/4] Descriptor format sense data Nicholas A. Bellinger

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.