All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Martin K. Petersen" <martin.petersen@oracle.com>
To: lyl2019@mail.ustc.edu.cn, linux-scsi@vger.kernel.org,
	ketan.mukadam@broadcom.com,
	Mike Christie <michael.christie@oracle.com>,
	james.bottomley@hansenpartnership.com,
	subbu.seetharaman@broadcom.com, jitendra.bhivare@broadcom.com
Cc: "Martin K . Petersen" <martin.petersen@oracle.com>
Subject: Re: [PATCH 1/1] scsi: be2iscsi: fix use after free during IP updates
Date: Fri, 23 Jul 2021 22:13:55 -0400	[thread overview]
Message-ID: <162692235522.25137.11080430478077124658.b4-ty@oracle.com> (raw)
In-Reply-To: <20210701190840.175120-1-michael.christie@oracle.com>

On Thu, 1 Jul 2021 14:08:40 -0500, Mike Christie wrote:

> This fixes a bug found by Lv Yunlong where because beiscsi_exec_nemb_cmd
> frees memory for the be_dma_mem cmd, we can access freed memory when
> beiscsi_if_clr_ip/beiscsi_if_set_ip's call to beiscsi_exec_nemb_cmd fails
> and we access the freed req. This fixes the issue by having the caller
> free the cmd's memory.

Applied to 5.15/scsi-queue, thanks!

[1/1] scsi: be2iscsi: fix use after free during IP updates
      https://git.kernel.org/mkp/scsi/c/7b0ddc134608

-- 
Martin K. Petersen	Oracle Linux Engineering

      parent reply	other threads:[~2021-07-24  2:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-01 19:08 [PATCH 1/1] scsi: be2iscsi: fix use after free during IP updates Mike Christie
2021-07-19  1:19 ` Martin K. Petersen
2021-07-24  2:13 ` Martin K. Petersen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=162692235522.25137.11080430478077124658.b4-ty@oracle.com \
    --to=martin.petersen@oracle.com \
    --cc=james.bottomley@hansenpartnership.com \
    --cc=jitendra.bhivare@broadcom.com \
    --cc=ketan.mukadam@broadcom.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=lyl2019@mail.ustc.edu.cn \
    --cc=michael.christie@oracle.com \
    --cc=subbu.seetharaman@broadcom.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.