All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Martin K. Petersen" <martin.petersen@oracle.com>
To: linux-scsi@vger.kernel.org, James Smart <jsmart2021@gmail.com>
Cc: "Martin K . Petersen" <martin.petersen@oracle.com>,
	Justin Tee <justin.tee@broadcom.com>
Subject: Re: [PATCH][REPOST] lpfc: Fix bad memory access during VPD DUMP mailbox command
Date: Wed, 28 Apr 2021 23:18:48 -0400	[thread overview]
Message-ID: <161966630051.16262.11900505953215510836.b4-ty@oracle.com> (raw)
In-Reply-To: <20210421234511.102206-1-jsmart2021@gmail.com>

On Wed, 21 Apr 2021 16:45:11 -0700, James Smart wrote:

> The dump command for reading a region passes a requested read length
> specified in words (4byte units). The response overwrites the same
> field with the actual number of bytes read.
> 
> The mailbox handler for DUMP which reads VPD data (region 23) is
> treating the response field as if it were still a word_cnt, thus
> multiplying it by 4 to set the read's "length". Given the read value
> was calculated based on the size of the read buffer, the longer
> response length runs off the end of the buffer.
> 
> [...]

Applied to 5.13/scsi-fixes, thanks!

[1/1] lpfc: Fix bad memory access during VPD DUMP mailbox command
      https://git.kernel.org/mkp/scsi/c/e4ec10228fdf

-- 
Martin K. Petersen	Oracle Linux Engineering

      parent reply	other threads:[~2021-04-29  3:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-21 23:45 [PATCH][REPOST] lpfc: Fix bad memory access during VPD DUMP mailbox command James Smart
2021-04-27  3:07 ` Martin K. Petersen
2021-04-29  3:18 ` 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=161966630051.16262.11900505953215510836.b4-ty@oracle.com \
    --to=martin.petersen@oracle.com \
    --cc=jsmart2021@gmail.com \
    --cc=justin.tee@broadcom.com \
    --cc=linux-scsi@vger.kernel.org \
    /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.