From: Wei Liu <wei.liu@kernel.org>
To: Michael Kelley <mikelley@microsoft.com>
Cc: "Andrea Parri (Microsoft)" <parri.andrea@gmail.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
KY Srinivasan <kys@microsoft.com>,
Haiyang Zhang <haiyangz@microsoft.com>,
Stephen Hemminger <sthemmin@microsoft.com>,
Wei Liu <wei.liu@kernel.org>,
"linux-hyperv@vger.kernel.org" <linux-hyperv@vger.kernel.org>,
Andres Beltran <lkmlabelt@gmail.com>,
Saruhan Karademir <skarade@microsoft.com>,
Juan Vazquez <juvazq@microsoft.com>
Subject: Re: [PATCH v4] hv_utils: Add validation for untrusted Hyper-V values
Date: Tue, 5 Jan 2021 13:09:13 +0000 [thread overview]
Message-ID: <20210105130912.5o6vtuotf4c6vwcg@liuwe-devbox-debian-v2> (raw)
In-Reply-To: <MW2PR2101MB105203EB0E4889F2C716CE83D7C89@MW2PR2101MB1052.namprd21.prod.outlook.com>
On Sun, Dec 13, 2020 at 10:07:06PM +0000, Michael Kelley wrote:
> From: Andrea Parri (Microsoft) <parri.andrea@gmail.com> Sent: Monday, November 9, 2020 2:07 AM
> >
> > For additional robustness in the face of Hyper-V errors or malicious
> > behavior, validate all values that originate from packets that Hyper-V
> > has sent to the guest in the host-to-guest ring buffer. Ensure that
> > invalid values cannot cause indexing off the end of the icversion_data
> > array in vmbus_prep_negotiate_resp().
> >
> > Signed-off-by: Andres Beltran <lkmlabelt@gmail.com>
> > Co-developed-by: Andrea Parri (Microsoft) <parri.andrea@gmail.com>
> > Signed-off-by: Andrea Parri (Microsoft) <parri.andrea@gmail.com>
> > ---
> > Changes in v3:
> > - Add size check for icframe_vercnt and icmsg_vercnt
> >
> > Changes in v2:
> > - Use ratelimited form of kernel logging to print error messages
> >
> > drivers/hv/channel_mgmt.c | 24 ++++-
> > drivers/hv/hv_fcopy.c | 36 +++++--
> > drivers/hv/hv_kvp.c | 122 ++++++++++++---------
> > drivers/hv/hv_snapshot.c | 89 ++++++++-------
> > drivers/hv/hv_util.c | 222 +++++++++++++++++++++++---------------
> > include/linux/hyperv.h | 9 +-
> > 6 files changed, 314 insertions(+), 188 deletions(-)
> >
>
> Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Applied to hyperv-next.
prev parent reply other threads:[~2021-01-05 13:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-09 10:07 [PATCH v4] hv_utils: Add validation for untrusted Hyper-V values Andrea Parri (Microsoft)
2020-11-18 16:24 ` Andrea Parri
2020-12-13 22:07 ` Michael Kelley
2021-01-05 13:09 ` Wei Liu [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=20210105130912.5o6vtuotf4c6vwcg@liuwe-devbox-debian-v2 \
--to=wei.liu@kernel.org \
--cc=haiyangz@microsoft.com \
--cc=juvazq@microsoft.com \
--cc=kys@microsoft.com \
--cc=linux-hyperv@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lkmlabelt@gmail.com \
--cc=mikelley@microsoft.com \
--cc=parri.andrea@gmail.com \
--cc=skarade@microsoft.com \
--cc=sthemmin@microsoft.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;
as well as URLs for NNTP newsgroup(s).