From: Wei Liu <wei.liu@kernel.org>
To: Juan Vazquez <juvazq@linux.microsoft.com>
Cc: kys@microsoft.com, haiyangz@microsoft.com,
sthemmin@microsoft.com, wei.liu@kernel.org, decui@microsoft.com,
mikelley@microsoft.com, linux-hyperv@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Drivers: hv: vmbus: Initialize request offers message for Isolation VM
Date: Wed, 5 Jan 2022 20:39:45 +0000 [thread overview]
Message-ID: <20220105203945.wyh33cws43enviwx@liuwe-devbox-debian-v2> (raw)
In-Reply-To: <20220105192746.23046-1-juvazq@linux.microsoft.com>
On Wed, Jan 05, 2022 at 11:27:46AM -0800, Juan Vazquez wrote:
> Initialize memory of request offers message to be sent to the host so
> padding or uninitialized fields do not leak guest memory contents.
>
> Signed-off-by: Juan Vazquez <juvazq@linux.microsoft.com>
Applied to hyperv-next. Thanks.
> ---
> drivers/hv/channel_mgmt.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/hv/channel_mgmt.c b/drivers/hv/channel_mgmt.c
> index 2829575fd9b7..60375879612f 100644
> --- a/drivers/hv/channel_mgmt.c
> +++ b/drivers/hv/channel_mgmt.c
> @@ -1554,7 +1554,7 @@ int vmbus_request_offers(void)
> struct vmbus_channel_msginfo *msginfo;
> int ret;
>
> - msginfo = kmalloc(sizeof(*msginfo) +
> + msginfo = kzalloc(sizeof(*msginfo) +
> sizeof(struct vmbus_channel_message_header),
> GFP_KERNEL);
> if (!msginfo)
> --
> 2.32.0
>
prev parent reply other threads:[~2022-01-05 20:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-05 19:27 [PATCH] Drivers: hv: vmbus: Initialize request offers message for Isolation VM Juan Vazquez
2022-01-05 20:39 ` 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=20220105203945.wyh33cws43enviwx@liuwe-devbox-debian-v2 \
--to=wei.liu@kernel.org \
--cc=decui@microsoft.com \
--cc=haiyangz@microsoft.com \
--cc=juvazq@linux.microsoft.com \
--cc=kys@microsoft.com \
--cc=linux-hyperv@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mikelley@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