public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Descriptor format sense data
@ 2015-07-12 10:37 Sagi Grimberg
  2015-07-12 10:37 ` [PATCH 1/3] scsi: Fix wrong additional sense length in descriptor format Sagi Grimberg
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Sagi Grimberg @ 2015-07-12 10:37 UTC (permalink / raw)
  To: linux-scsi, target-devel
  Cc: Christoph Hellwig, Hannes Reinecke, Martin K. Petersen,
	Bart Van Assche, Nicholas A. Bellinger, James Bottomley

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 avoid 64bit sector info truncation (reported by hch).

Sagi Grimberg (3):
  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

 drivers/ata/libata-scsi.c              |  4 +++-
 drivers/scsi/scsi_common.c             | 15 +++++++++++++--
 drivers/target/target_core_spc.c       | 11 ++++++++---
 drivers/target/target_core_transport.c | 16 ++++++++++++----
 include/scsi/scsi_common.h             |  2 +-
 5 files changed, 37 insertions(+), 11 deletions(-)

-- 
1.8.4.3

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

end of thread, other threads:[~2015-07-14 14:40 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-12 10:37 [PATCH 0/3] Descriptor format sense data Sagi Grimberg
2015-07-12 10:37 ` [PATCH 1/3] scsi: Fix wrong additional sense length in descriptor format Sagi Grimberg
2015-07-13 14:05   ` Hannes Reinecke
2015-07-14  0:52   ` Martin K. Petersen
2015-07-12 10:37 ` [PATCH 2/3] scsi: Protect against buffer possible overflow in scsi_set_sense_information Sagi Grimberg
2015-07-14  0:54   ` Martin K. Petersen
2015-07-12 10:37 ` [PATCH 3/3] target: Return descriptor format sense data Sagi Grimberg
2015-07-14  0:57   ` Martin K. Petersen
2015-07-14  7:17   ` Christoph Hellwig
2015-07-14  8:21     ` Martin K. Petersen
2015-07-14 11:59       ` Sagi Grimberg
2015-07-14 13:34         ` Bart Van Assche
2015-07-14 14:40         ` Christoph Hellwig

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