Skip to content

Xen Dom0 detected as DomU when running inside LXC #173

@lesinigo

Description

@lesinigo

When running the checker in an LXC container which is itself running inside a Xen Dom0, the script incorrectly thinks it is running inside a DomU.

The operating system is Ubuntu 16.04 LTS, fully updated, with its stock xen-hypervisor-4.6-amd64 and its linux-image-generic-hwe-16.04; current versions of the two are Xen 4.6.5-0ubuntu1.4 and Linux 4.13.0-38.43~16.04.1, checker version is reported as 0.36+ and is actually from commit 0eabd26.

When running the script on this system it correctly reports Running as a Xen PV DomU: NO and by extension NOT VULNERABLE (Xen Dom0s are safe and do not require PTI).

On the same system there are also some Ubuntu 16.04 LXC containers running (using lxc-2.0.8-0ubuntu1~16.04.2 and created with lxc-create -t download -n ${NAME} -- -d ubuntu -r xenial -a amd64), when running the same script inside one of those it reports Running as a Xen PV DomU: YES and then VULNERABLE (Xen PV DomUs are vulnerable and need to be run in HVM, PVHVM, PVH mode, or the Xen hypervisor must have the Xen's own PTI patch), which is wrong because it is still inside the Dom0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions