acrn-hypervisor/devicemodel/core
Li Fei1 8ef2eedba4 dm: mitigate reset attack
When a platform reboots or shuts down, the contents of RAM are not immediately
lost but begins to decay. During this period, there is a short timeframe during
which an attacker can turn the platform back on to boot into a program that
dumps the contents of memory (e.g., cold boot attacks). Encryption keys and
other secrets can be easily compromised through this method.

We already erasing the guest memory data when the guest is shut down normally.
However, if the guest is shut down abnormally, the contents of RAM may still
there. This patch mitigate this kind reset attack for a DM launched VM by
erasing the guest memory data by the guest has been created.

Tracked-On: #6061
Signed-off-by: Li Fei1 <fei1.li@intel.com>
2021-08-10 15:36:49 +08:00
..
console.c DM: remove unused function console_ptr_event 2019-05-24 11:51:00 +08:00
gc.c dm: gc: clean up assert 2019-07-03 09:40:15 +08:00
hugetlb.c dm: Fix wrong hugetlb_lv_max 2020-07-08 15:32:15 +08:00
inout.c hv: dm: Use new I/O request data structures 2021-07-15 11:53:54 +08:00
main.c hv: dm: Use new I/O request data structures 2021-07-15 11:53:54 +08:00
mem.c hv: dm: Use new I/O request data structures 2021-07-15 11:53:54 +08:00
mevent.c build: fix dm and acrn_crashlog build error with gcc-11 2021-05-19 11:38:18 +08:00
monitor.c dm: core: Convert print output to acrn-dm logger 2020-09-10 09:33:25 +08:00
mptbl.c dm:use acrn-dm logger function instread of fprintf 2019-11-14 15:34:04 +08:00
pm.c acrn-dm: add some logs for vm state transition 2020-05-15 10:06:23 +08:00
pm_vuart.c dm: add allow_trigger_s5 mode to pm_notify_channel uart 2021-05-21 10:16:30 +08:00
post.c dm: refine 'assert' in inout.c and post.c 2019-06-20 08:55:44 +08:00
sw_load_bzimage.c hv: dm: Use new ioctl ACRN_IOCTL_SET_VCPU_REGS 2021-07-15 11:53:54 +08:00
sw_load_common.c dm: fix minor comment in acrn_create_e820_table 2021-05-17 15:34:57 +08:00
sw_load_elf.c hv: dm: Use new ioctl ACRN_IOCTL_SET_VCPU_REGS 2021-07-15 11:53:54 +08:00
sw_load_ovmf.c hv: dm: Use new ioctl ACRN_IOCTL_SET_VCPU_REGS 2021-07-15 11:53:54 +08:00
sw_load_vsbl.c hv: dm: Use new ioctl ACRN_IOCTL_SET_VCPU_REGS 2021-07-15 11:53:54 +08:00
timer.c dm:replace perror with pr_err 2020-01-08 13:37:57 +08:00
vmmapi.c dm: mitigate reset attack 2021-08-10 15:36:49 +08:00
vrpmb.c dm:use acrn-dm logger function instread of fprintf 2019-11-14 15:34:04 +08:00