From: Sagi Grimberg Date: Wed, 15 Jul 2015 07:55:37 +0000 (+0300) Subject: scsi: Protect against buffer possible overflow in scsi_set_sense_information X-Git-Tag: omap-for-v4.3/fixes-rc1~24^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5a8b3a796db01b639435515b3adc003b9f27387;p=pandora-kernel.git scsi: Protect against buffer possible overflow in scsi_set_sense_information Make sure that the input sense buffer has sufficient length to fit the information descriptor (12 additional bytes). Modify scsi_set_sense_information to receive the sense buffer length and adjust its callers scsi target and libata. (Fix patch fuzz in scsi_set_sense_information - nab) Reported-by: Hannes Reinecke Signed-off-by: Sagi Grimberg Reviewed-by: Martin K. Petersen Cc: Tejun Heo Reviewed-by: Christoph Hellwig Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed