[PATCH] scsi: ses: Guard against page 10 descriptors changes while processing them

2018-07-05 Thread Stefano Brivio
SAS page 10 descriptors might change once we re-read them in ses_enclosure_data_process(), causing out-of-bound reads such as this one found by KASAN: [ 321.349000] sd 1:2:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK [ 321.357723] sd 1:2:0:0: [sdb] tag#0 CDB: Rea

[PATCH] qedf: Send the driver state to MFW.

2018-07-05 Thread Chad Dupuis
From: Saurav Kashyap Need to notify firmware when driver is loaded and unloaded. Signed-off-by: Saurav Kashyap Signed-off-by: Chad Dupuis --- drivers/scsi/qedf/qedf_main.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/scsi/qedf/qedf_main.c b/drivers/scsi/qedf/qedf_

Re: [PATCH] scsi: sd_zbc: Fix variable type and bogus comment

2018-07-05 Thread Bart Van Assche
On 07/02/18 23:23, Damien Le Moal wrote: Fix the description of sd_zbc_check_zone_size() to correctly explain that the returned value is a number of device blocks, not bytes. Additionally, the 32 bits "ret" variable used in this function may truncate the 64 bits zone_blocks variable value upon re

Re: [PATCH] scsi: cxlflash: fix assignment of the backend operations

2018-07-05 Thread Matthew R. Ochs
On Thu, Jul 05, 2018 at 07:26:23AM +0200, Cédric Le Goater wrote: > commit cd43c221bb5e ("scsi: cxlflash: Isolate external module > dependencies") introduced the use of ifdefs to avoid compilation > errors when one of the possible backend driver, CXL or OCXL, is not > compiled. > > Unfortunately,

[PATCH V5 0/2] Add ufs provisioning support in driver

2018-07-05 Thread Sayali Lokhande
This patch adds Configfs support to provision ufs device at runtime. This feature can be primarily useful in factory or assembly line as some devices may be required to be configured multiple times during initial system development phase. Configuration Descriptors can be written multiple times unti