Linux SCSI subsystem development
 help / color / mirror / Atom feed
From: "Martin K. Petersen" <mkp@kernel.org>
To: Matt Wang <matt.wang@broadcom.com>
Cc: vishal.bhakta@broadcom.com,
	 bcm-kernel-feedback-list@broadcom.com,
	linux-scsi@vger.kernel.org
Subject: Re: scsi: vmw_pvscsi: add boundary check for cmd_map access.
Date: Tue, 03 Nov 2026 22:33:37 -0500	[thread overview]
Message-ID: <yq1wlqt1d9y.fsf@mail.kernel.org> (raw)
In-Reply-To: <20260929231459.630938-1-matt.wang@broadcom.com>


Matt,

> The context value provided by the device in a completion is used to
> index into cmd_map to find the command that was completed. To prevent
> out of bounds access or completion of an inactive context, check that
> the context value is in-bounds and that it maps to an active context.

Applied to 7.5/scsi-staging, thanks!

-- 
Martin K. Petersen

      reply	other threads:[~2026-11-04  3:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-29 23:14 scsi: vmw_pvscsi: add boundary check for cmd_map access Matt Wang
2026-11-04  3:33 ` 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=yq1wlqt1d9y.fsf@mail.kernel.org \
    --to=mkp@kernel.org \
    --cc=bcm-kernel-feedback-list@broadcom.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=matt.wang@broadcom.com \
    --cc=vishal.bhakta@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox