On 09/04/2017 05:44 PM, Guilherme G. Piccoli wrote: > [Hopefully this messages gets threaded properly...] And of course, I forgot to CC linux-scsi heheh Sorry! > > Chaitra, the following 4 patches fix this issue (the last one is really > the fix, the others are part of the patchset): > > > https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git/commit/?h=4.14/scsi-queue&id=c1225f01a > ("scsi: bsg-lib: pass the release callback through bsg_setup_queue") > > https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git/commit/?h=4.14/scsi-queue&id=9a664f492 > ("scsi: hpsa: remove the smp_handler stub") > > https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git/commit/?h=4.14/scsi-queue&id=eaa79a6cd > ("scsi: smartpqi: remove the smp_handler stub") > > https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git/commit/?h=4.14/scsi-queue&id=651a01364 > ("scsi: scsi_transport_sas: switch to bsg-lib for SMP passthrough") > > Issue happens because mpt3asas is using a non-allocated sense buffer on > scsi_request; it started after the scsi_req refactoring, that made the > sense buffer a pointer (scsi_transport_sas was an user that didn't > allocate it, neither used - before the patches above - the bsg alloc > API, hence the bug). > > Cheers, > > > Guilherme >