acrn-hypervisor/devicemodel/core
yuhong.tao@intel.com 9695d3bd15 tools: replace payload[0] of struct mngr_msg with an union
acrn-manager message structure has a flexible member
payload[0], that risks to out-of-boundary memory access,
and usage of uninitialized variable.
And the req/ack message pairs has various types, which
extend mngr_msg. mngr_send_msg() requires programmer cast
the type of input messages to struct mngr_msg, that is
inconvenient.
We replace payload[0] with an union, which contains all
payload data. So that type cast for mngr_send_msg() is no
longer needed. And we can avoid potential out-of-boundary
memory accessing and using of uninitialized variable

Acked-by: Yan Like <like.yan@intel.com>
Signed-off-by: Tao Yuhong <yuhong.tao@intel.com>
2018-07-19 11:08:18 +08:00
..
console.c DM: cleanup for header inclusions 2018-06-07 14:35:30 +08:00
consport.c DM: cleanup for header inclusions 2018-06-07 14:35:30 +08:00
gc.c DM: cleanup for header inclusions 2018-06-07 14:35:30 +08:00
hugetlb.c DM: Fix potential buffer overflow and uninitialized variable 2018-07-12 17:32:20 +08:00
inout.c DM: Remove 'strictio' from UOS bootargs' options 2018-07-02 12:33:52 +08:00
main.c DM: add system reset (with RAM content kept) 2018-07-17 14:11:12 +08:00
mem.c DM: cleanup for header inclusions 2018-06-07 14:35:30 +08:00
mevent.c dm: introduce system/full reset and suspend 2018-07-17 14:11:12 +08:00
monitor.c tools: replace payload[0] of struct mngr_msg with an union 2018-07-19 11:08:18 +08:00
mptbl.c DM: cleanup for header inclusions 2018-06-07 14:35:30 +08:00
post.c DM: cleanup for header inclusions 2018-06-07 14:35:30 +08:00
smbiostbl.c DM: cleanup for header inclusions 2018-06-07 14:35:30 +08:00
sw_load_bzimage.c DM: cleanup for header inclusions 2018-06-07 14:35:30 +08:00
sw_load_common.c loader: Update the memory address of GUEST_CFG_OFFSET 2018-07-17 14:11:12 +08:00
sw_load_vsbl.c DM: extend i6300esb device to support watchdog timeout query 2018-07-10 11:53:42 +08:00
vmmapi.c DM: add vm reset API 2018-07-17 14:11:12 +08:00
vrpmb.c DM: cleanup for header inclusions 2018-06-07 14:35:30 +08:00