diff options
| author | James Smart <jsmart2021@gmail.com> | 2019-05-21 17:48:59 -0700 |
|---|---|---|
| committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-06-18 19:46:21 -0400 |
| commit | 51d23fb28ccb355ee4d26dedacca24c171c2f664 (patch) | |
| tree | 244cede07ab0daea39724fc51adfa1cd3583abdd /tools/perf/scripts/python | |
| parent | scsi: lpfc: Fix PT2PT PLOGI collison stopping discovery (diff) | |
| download | linux-51d23fb28ccb355ee4d26dedacca24c171c2f664.tar.gz linux-51d23fb28ccb355ee4d26dedacca24c171c2f664.zip | |
scsi: lpfc: Prevent 'use after free' memory overwrite in nvmet LS handling
Use-after-free memory overwrite detected. Problem reported
by Ewan Milne at Red Hat after running lpfc target with additional
memory checking enabled.
Race condition when lpfc_nvmet_xmt_ls_rsp_cmp frees the ctxp
memory in interrupt context before lpfc_nvmet_xmt_ls_rsp
clears a field in the ctxp after successfully issuing the wqe.
Remove the unnecessary ctxp write after reposting the rq buffer. The
ctxp->rqb_buffer field is not checked in LS handling after the wqe
is submitted.
Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Reported-by: Ewan Milne <emilne@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
