Branch: refs/heads/next
  Home:   https://github.com/siemens/jailhouse
  Commit: 6d13b7451e73c272afcc030caf9b18c138ce8dd0
      
https://github.com/siemens/jailhouse/commit/6d13b7451e73c272afcc030caf9b18c138ce8dd0
  Author: Jan Kiszka <[email protected]>
  Date:   2017-03-23 (Thu, 23 Mar 2017)

  Changed paths:
    M driver/main.c

  Log Message:
  -----------
  driver: Add signal header required for >= 4.11

sched.h got refactored.

Signed-off-by: Jan Kiszka <[email protected]>


  Commit: 2221c4bd7738197169a3dc43de5c56ddfa3f948a
      
https://github.com/siemens/jailhouse/commit/2221c4bd7738197169a3dc43de5c56ddfa3f948a
  Author: Jan Kiszka <[email protected]>
  Date:   2017-03-23 (Thu, 23 Mar 2017)

  Changed paths:
    M hypervisor/arch/x86/Makefile
    M inmates/lib/x86/Makefile.lib

  Log Message:
  -----------
  x86, inmates: Fix potential stack corruptions via red zones

By default, compilers for the x86-64 ABI can use a 128-byte zone below
the stack pointer as temporary memory. Anything that interrupts the
current context is supposed to respect that area, i.e. increment rsp
before using the stack.

As we are using no separate stacks for interrupts (including NMIs)
generated in the hypervisor as well as the inmates, we risk infrequent
corruptions like reported in

https://www.mail-archive.com/[email protected]/msg02195.html

And we cannot adjust the stack pointer even right at the beginning of
the interrupt entry point because the processor already saved the basic
context for us. The best fix is to disable the red zone, just like Linux
does as well.

A quick scan of the code generated right now by gcc 4.8.5 for
jailhouse-intel.bin only revealed on usage of the red zone by
vmcs_clear, a function used during cell create and destruction. However,
mileage can vary in other configurations.

Signed-off-by: Jan Kiszka <[email protected]>


  Commit: e02403cf0069709cfd9ceee64c47ab2015458483
      
https://github.com/siemens/jailhouse/commit/e02403cf0069709cfd9ceee64c47ab2015458483
  Author: Ralf Ramsauer <[email protected]>
  Date:   2017-03-25 (Sat, 25 Mar 2017)

  Changed paths:
    M hypervisor/arch/arm/include/asm/processor.h
    M hypervisor/arch/arm/include/asm/sysregs.h
    M hypervisor/arch/arm64/include/asm/processor.h
    M hypervisor/arch/arm64/include/asm/sysregs.h

  Log Message:
  -----------
  arm: move register definition to sysregs.h

Definition of bits of a registers belongs to the definition of the
register itself.  Move those definition over to sysregs.h, which is
also shared with inmates that might want to use it.

No functional change.

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


Compare: 
https://github.com/siemens/jailhouse/compare/57cde48bcf82...e02403cf0069

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to