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: clamp on e->dataLen in pvscsi_complete_request
Date: Tue, 03 Nov 2026 22:33:47 -0500 [thread overview]
Message-ID: <yq1qzh11d9m.fsf@mail.kernel.org> (raw)
In-Reply-To: <20260929231539.630963-1-matt.wang@broadcom.com>
Matt,
> When calculating the residual bytes, clamp dataLen to the buffer length
> before the subtraction. This prevents an overflow if the device sends a
> larger value than expected.
Applied to 7.5/scsi-staging, thanks!
--
Martin K. Petersen
prev parent 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:15 scsi: vmw_pvscsi: clamp on e->dataLen in pvscsi_complete_request 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=yq1qzh11d9m.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 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.