Skip to content

dune: exit due to EPT violation #4

@steven-chien

Description

@steven-chien

Hello, I am trying to get ZygOS up and running, using exactly the environment specified in the paper (Ubuntu 16.04.7 Xeniel, Kernel 4.11). We made the following changes:

  • to read the syscall symbole table address from /proc/kallsyms when compiling dune because of Linux address randomization since 4.8.
  • Added PCI device code to the i40e driver DPDK so that our NIC is supported (XXV710)

We are able to set up the dependencies and load the kernel modules, as well as bind the NIC to DPDK. However, when we run the example echoserver like in the IX README, we get

...
CPU 00| 18:14:53 <4>: eth:	link up - speed 100 Mbps, half-duplex

CPU 00| 18:14:53 <4>: init: barrier after al CPU initialization
CPU 00| 18:14:53 <4>: init: module hw         SUCESS
CPU 00| 18:14:53 <4>: load_elf(/lib64/ld-linux-x86-64.so.2)
CPU 00| 18:14:53 <4>: load_elf(): /lib64/ld-linux-x86-64.so.2
CPU 00| 18:14:53 <4>: dune_elf_iter_ph(): /lib64/ld-linux-x86-64.so.2
CPU 00| 18:14:53 <2>: sandbox: loading segment - va 0x000000000, len 253b0
CPU 00| 18:14:53 <2>: sandbox: loading segment - va 0x000225bc0, len 15a8
dune: exit due to EPT violation

It appears the violation/segfault is coming from setup_arguments in the sandbox:

https://github.com/ix-project/zygos/blob/master/dp/sandbox/main.c#L260

Do you have any ideas about this? Also, the AUX_NUM is hardcoded to 14, which is different from the auxvec.h in Xeinal, is that intentional?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions