projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0bd2fbe
)
Drivers: hv: vmbus: Initialize request offers message for Isolation VM
author
Juan Vazquez
<juvazq@linux.microsoft.com>
Wed, 5 Jan 2022 19:27:46 +0000
(11:27 -0800)
committer
Wei Liu
<wei.liu@kernel.org>
Wed, 5 Jan 2022 20:39:14 +0000
(20:39 +0000)
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>
Link:
https://lore.kernel.org/r/20220105192746.23046-1-juvazq@linux.microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
drivers/hv/channel_mgmt.c
patch
|
blob
|
history
diff --git
a/drivers/hv/channel_mgmt.c
b/drivers/hv/channel_mgmt.c
index
2829575
..
6037587
100644
(file)
--- 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 = k
m
alloc(sizeof(*msginfo) +
+ msginfo = k
z
alloc(sizeof(*msginfo) +
sizeof(struct vmbus_channel_message_header),
GFP_KERNEL);
if (!msginfo)