Branch: refs/heads/next
  Home:   https://github.com/siemens/jailhouse
  Commit: 95cb81c355584e2a6a81b5d42154f4c7555d7644
      
https://github.com/siemens/jailhouse/commit/95cb81c355584e2a6a81b5d42154f4c7555d7644
  Author: Bram Hooimeijer <[email protected]>
  Date:   2021-04-20 (Tue, 20 Apr 2021)

  Changed paths:
    M inmates/lib/alloc.c
    M inmates/lib/arm-common/mem.c
    M inmates/lib/include/inmate_common.h
    M inmates/lib/x86/mem.c
    M inmates/lib/x86/smp.c

  Log Message:
  -----------
  inmates/lib: Add zeroed alloc, and update usage

Adds zalloc(size, align) which allocates memory and fills it with zeros.
Replaces usage of alloc() in inmates/lib with zalloc().

Motivation is that use of alloc without zeroing mem.c:map_range()
results in illegal page tables if memory contains artefacts.

Signed-off-by: Bram Hooimeijer <[email protected]>
Reviewed-by: Ralf Ramsauer <[email protected]>
Signed-off-by: Jan Kiszka <[email protected]>


-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/siemens/jailhouse/push/refs/heads/next/87aa37-95cb81%40github.com.

Reply via email to