Branch: refs/heads/coverity_scan
Commit: 268ed90e79b1c336f27e5e483ab2f6440385dd93
https://github.com/siemens/jailhouse/commit/268ed90e79b1c336f27e5e483ab2f6440385dd93
Author: Jim Huang <
jser...@gmail.com>
Date: 2016-04-27 (Wed, 27 Apr 2016)
Changed paths:
M Documentation/articles/LJ-article-04-2015.txt
Log Message:
-----------
Documentation: articles: LJ-article-04-2015.txt
Fix indentation of the commands
Signed-off-by: Jim Huang <
jser...@gmail.com>
Signed-off-by: Jan Kiszka <
jan.k...@siemens.com>
Commit: 4a3317bb021881a1f8e96f4b7e3ba5c0be3ea70c
https://github.com/siemens/jailhouse/commit/4a3317bb021881a1f8e96f4b7e3ba5c0be3ea70c
Author: Antonios Motakis <
antonios...@huawei.com>
Date: 2016-04-28 (Thu, 28 Apr 2016)
Changed paths:
M hypervisor/setup.c
Log Message:
-----------
core: map the zero page to the full hypervisor memory region
During initialization, in init_early, the hypervisor maps the
memory used by the hypervisor with empty pages for the root cell.
However, if the root cell tries to access the region used by the
hypervisor, this is only safe if both sides agree on PAGE_SIZE.
It is a long shot to try to guess the granularity used by the
root cell; the safest bet is to map the full range that has been
allocated for the hypervisor to use.
Signed-off-by: Antonios Motakis <
antonios...@huawei.com>
Signed-off-by: Jan Kiszka <
jan.k...@siemens.com>
Commit: d2219890eabe7e9132912e45b2c3f3bbea9512fa
https://github.com/siemens/jailhouse/commit/d2219890eabe7e9132912e45b2c3f3bbea9512fa
Author: Antonios Motakis <
antonios...@huawei.com>
Date: 2016-04-28 (Thu, 28 Apr 2016)
Changed paths:
M driver/main.c
Log Message:
-----------
driver: fix unsigned long overflow in leave_hypervisor
When shutting down the hypervisor, in the leave_hypervisor
function, the Linux driver touches every hypervisor page, to
ensure all pages are mapped. However, the current implementation
assumes hv_core_and_percpu_size is aligned to PAGE_SIZE. This may
not be the case, if PAGE_SIZE is different on the hypervisor side.
This can cause an unsigned long overflow, leading to an infinite
loop of touching successive pages starting from hypervisor_mem.
The loop will be broken as soon as Linux tries to touch an invalid
page, leading to a kernel crash.
Signed-off-by: Antonios Motakis <
antonios...@huawei.com>
Signed-off-by: Jan Kiszka <
jan.k...@siemens.com>
Compare:
https://github.com/siemens/jailhouse/compare/33fbbbd83e31...d2219890eabe