[siemens/jailhouse] 2389d9: driver: handle a NULL pointer reference on the err...

3 views
Skip to first unread message

GitHub

unread,
Aug 3, 2017, 6:39:14 AM8/3/17
to jailho...@googlegroups.com
Branch: refs/heads/next
Home: https://github.com/siemens/jailhouse
Commit: 2389d9b3392c4adac3c9cb31f8dc2c2e96177292
https://github.com/siemens/jailhouse/commit/2389d9b3392c4adac3c9cb31f8dc2c2e96177292
Author: Göktürk Yüksek <gok...@binghamton.edu>
Date: 2017-08-03 (Thu, 03 Aug 2017)

Changed paths:
M driver/main.c

Log Message:
-----------
driver: handle a NULL pointer reference on the error path

In the function jailhouse_hypervisor_enable(), jumping to the label
error_unmap results in a call to jailhouse_free_firmware() which
releases hypervisor_mem_res and sets it to NULL. However, the
execution proceeds to the label error_release_memreg and tries to
access hypervisor_mem_res->start, which triggers a NULL pointer
reference.

Fix the problem for explicitly checking against the NULL pointer.

Signed-off-by: Göktürk Yüksek <gok...@binghamton.edu>
[Jan: tune wording of comment]
Signed-off-by: Jan Kiszka <jan.k...@siemens.com>


Commit: e2fa9ffd158812aa4c1a267d62f00cf4202e23c1
https://github.com/siemens/jailhouse/commit/e2fa9ffd158812aa4c1a267d62f00cf4202e23c1
Author: Gustavo Lima Chaves <gustavo.l...@intel.com>
Date: 2017-08-03 (Thu, 03 Aug 2017)

Changed paths:
M tools/jailhouse-config-create
M tools/root-cell-config.c.tmpl

Log Message:
-----------
tools: config-create: Use number of int sources for vtd int limit

We were sticking to hardcoded 256 entries there. We now scale better
for systems with more PCI device entries.

Signed-off-by: Gustavo Lima Chaves <gustavo.l...@intel.com>
Signed-off-by: Jan Kiszka <jan.k...@siemens.com>


Compare: https://github.com/siemens/jailhouse/compare/0d6d5c661889...e2fa9ffd1588
Reply all
Reply to author
Forward
0 new messages