* [PATCH 0/2] Fix the qla2xxx loopback selftests @ 2012-08-14 15:48 steve 2012-08-14 21:15 ` Chad Dupuis 0 siblings, 1 reply; 4+ messages in thread From: steve @ 2012-08-14 15:48 UTC (permalink / raw) To: linux-scsi, linux-driver, Andrew Vasquez, James E.J. Bottomley Cc: Steve Hodgson From: Steve Hodgson <steve@purestorage.com> A few months ago our 2.6.39 based kernel started crashing almost 100% of the time when running the selftests, after seeminly unrelated kernel changes. In the end it was traced down to this use after free. Whilst here fix an error path memory leak. Thanks, Steve Steve Hodgson (2): qla2xxx: Fix use after free in qla2x000_process_loopback. qla2xxx: Free rsp_data even on error in qla2x00_process_loopback() drivers/scsi/qla2xxx/qla_bsg.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) -- 1.7.9.5 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 0/2] Fix the qla2xxx loopback selftests 2012-08-14 15:48 [PATCH 0/2] Fix the qla2xxx loopback selftests steve @ 2012-08-14 21:15 ` Chad Dupuis 2012-10-22 15:46 ` Roland Dreier 0 siblings, 1 reply; 4+ messages in thread From: Chad Dupuis @ 2012-08-14 21:15 UTC (permalink / raw) To: steve@purestorage.com Cc: linux-scsi@vger.kernel.org, Dept-Eng Linux Driver, Andrew Vasquez, James E.J. Bottomley On Tue, 14 Aug 2012, steve@purestorage.com wrote: > From: Steve Hodgson <steve@purestorage.com> > > A few months ago our 2.6.39 based kernel started crashing almost 100% > of the time when running the selftests, after seeminly unrelated kernel > changes. In the end it was traced down to this use after free. > > Whilst here fix an error path memory leak. > > Thanks, > > Steve > > Steve Hodgson (2): > qla2xxx: Fix use after free in qla2x000_process_loopback. > qla2xxx: Free rsp_data even on error in qla2x00_process_loopback() > > drivers/scsi/qla2xxx/qla_bsg.c | 17 +++++++++-------- > 1 file changed, 9 insertions(+), 8 deletions(-) > > Hi Steve, thanks for the patches. We'll look into them and let you know if there is anything extra needed. This message and any attached documents contain information from QLogic Corporation or its wholly-owned subsidiaries that may be confidential. If you are not the intended recipient, you may not read, copy, distribute, or use this information. If you have received this transmission in error, please notify the sender immediately by reply e-mail and then delete this message. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 0/2] Fix the qla2xxx loopback selftests 2012-08-14 21:15 ` Chad Dupuis @ 2012-10-22 15:46 ` Roland Dreier 2012-10-22 16:06 ` Saurav Kashyap 0 siblings, 1 reply; 4+ messages in thread From: Roland Dreier @ 2012-10-22 15:46 UTC (permalink / raw) To: Chad Dupuis Cc: steve@purestorage.com, linux-scsi@vger.kernel.org, Dept-Eng Linux Driver, Andrew Vasquez, James E.J. Bottomley On Tue, Aug 14, 2012 at 2:15 PM, Chad Dupuis <chad.dupuis@qlogic.com> wrote: > > > On Tue, 14 Aug 2012, steve@purestorage.com wrote: > >> From: Steve Hodgson <steve@purestorage.com> >> >> A few months ago our 2.6.39 based kernel started crashing almost 100% >> of the time when running the selftests, after seeminly unrelated kernel >> changes. In the end it was traced down to this use after free. >> >> Whilst here fix an error path memory leak. >> >> Thanks, >> >> Steve >> >> Steve Hodgson (2): >> qla2xxx: Fix use after free in qla2x000_process_loopback. >> qla2xxx: Free rsp_data even on error in qla2x00_process_loopback() >> >> drivers/scsi/qla2xxx/qla_bsg.c | 17 +++++++++-------- >> 1 file changed, 9 insertions(+), 8 deletions(-) >> >> > > Hi Steve, thanks for the patches. We'll look into them and let you know if > there is anything extra needed. Looking at the 3.7-rc code, it looks like the use-after-free is still there. Any plans on merging these patches? - R. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 0/2] Fix the qla2xxx loopback selftests 2012-10-22 15:46 ` Roland Dreier @ 2012-10-22 16:06 ` Saurav Kashyap 0 siblings, 0 replies; 4+ messages in thread From: Saurav Kashyap @ 2012-10-22 16:06 UTC (permalink / raw) To: Roland Dreier, Chad Dupuis Cc: steve@purestorage.com, linux-scsi@vger.kernel.org, Dept-Eng Linux Driver, Andrew Vasquez, James E.J. Bottomley >On Tue, Aug 14, 2012 at 2:15 PM, Chad Dupuis <chad.dupuis@qlogic.com> >wrote: >> >> >> On Tue, 14 Aug 2012, steve@purestorage.com wrote: >> >>> From: Steve Hodgson <steve@purestorage.com> >>> >>> A few months ago our 2.6.39 based kernel started crashing almost 100% >>> of the time when running the selftests, after seeminly unrelated kernel >>> changes. In the end it was traced down to this use after free. >>> >>> Whilst here fix an error path memory leak. >>> >>> Thanks, >>> >>> Steve >>> >>> Steve Hodgson (2): >>> qla2xxx: Fix use after free in qla2x000_process_loopback. >>> qla2xxx: Free rsp_data even on error in qla2x00_process_loopback() >>> >>> drivers/scsi/qla2xxx/qla_bsg.c | 17 +++++++++-------- >>> 1 file changed, 9 insertions(+), 8 deletions(-) >>> >>> >> >> Hi Steve, thanks for the patches. We'll look into them and let you know >>if >> there is anything extra needed. > >Looking at the 3.7-rc code, it looks like the use-after-free is still >there. >Any plans on merging these patches? Hi Roland, The above changes are applicable to other bsg calls also, the changes are under test and will be submitted in the next submission. Thanks, ~Saurav This message and any attached documents contain information from QLogic Corporation or its wholly-owned subsidiaries that may be confidential. If you are not the intended recipient, you may not read, copy, distribute, or use this information. If you have received this transmission in error, please notify the sender immediately by reply e-mail and then delete this message. ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-10-22 16:07 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-08-14 15:48 [PATCH 0/2] Fix the qla2xxx loopback selftests steve 2012-08-14 21:15 ` Chad Dupuis 2012-10-22 15:46 ` Roland Dreier 2012-10-22 16:06 ` Saurav Kashyap
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).