Code Monkey home page Code Monkey logo

captive's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

captive's Issues

Get stuck when launching captive

Hi,

I've tried to install and run captive following the instructions in README. However, it got stuck when launching it.

Here is some details about how I run it.

  • kernel image: example image in README
  • block device: instructions in #1, and disabled FSGSBASE and NX
  • commands: instructions in README

Captive got stuck at:

warning: ?: Unable to find parent logging context 'AIO' for 'LinuxAIO'
warning: ?: Unable to find parent logging context 'AIO' for 'POSIXAIO'
debug: ?: KVM read-only mem: 1
loading arm64 kernel to 0x80080000
*** guest starting
lapic: base=0xffff8000fee00000, msr=fee00900, ver=50014
cpu features:
apic fxsr sse sse2 sse3 fma pcid xsave osxsave avx fsgsbase mpx
set xcr0=00000000:00000007
lapic: calibrating
lapic: calibration ticks=11931
lapic: ticks-per-period=10013680
lapic: frequency=1001368000
rdtsc: calibrating
rdtsc: calibration ticks=11931
rdtsc: ticks-per-period=30000855
rdtsc: frequency=3000085500
page-allocator: init: va=0xffff800100000000, pa=0x100000000, zone_size=100000000, block_size=10000000
populating gpm mapping...
initialising soft-mmu strategy gs=0xffff80010afa0000
*** HOST STARTUP INFORMATION
cr0=80050003
cr4=000606b0
block-txln-cache: 0xffff80010af40258
core: register file @ 0xffff80010afc6000
env: preparing bootloader
env: preparing boot core entrypoint=80080000
cpu: starting block-jit cpu execution, PC=0000000080080000
--------------------------------------------------------------------

Here is something about my computer:

Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                8
Socket(s):             1
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 158
Model name:            Intel(R) Core(TM) i7-9700 CPU @ 3.00GHz
Virtualization:        VT-x

Thanks for your help!

Usage instructions

Hi,

@tspink I read your recent Usenix paper about Captive. I would like to build and reproduce the setup described in the paper with ARM VM running on a Linux OS running on bare metal using KVM to get a good understanding of your work.

Can you please provide steps to do so using Captive and Gensim?

Thanks!

Captive user space are not starting

I've built captive as presented in Readme, tried to use own kernel, and prebuilt one.
Own aarch64 fails with unknown instruction, so I started with presented in Readme kernel.
There are no rootfs binded to repo, so I used way to build as in first issue:
dd if=/dev/zero of=./archlinux.ext2 bs=4M count=1000

mkfs.ext4 ./archlinux.ext2
sudo mount ./archlinux.ext2 check
wget http://os.archlinuxarm.org/os/ArchLinuxARM-aarch64-latest.tar.gz
bsdtar -xpf ArchLinuxARM-aarch64-latest.tar.gz -C ./check
sudo chmod a+w check

and run as

./bin/captive --block-dev-file ./archlinux.ext2 \
--engine arch/arm64.arch \
--device-tree ./captive-platform.dtb \
--kernel ./arm64-kernel-image \
--platform virt

So the kernel ran well. There is no init file, so I made link to ./sbin/init but I receive next error:

[    2.400000] Run /init as init process
*** unknown instruction: 6e22a446

Looks like, I cant run aarch64 executable. What I am doing wrong?

License

The repo does not have a license it seems. It might be useful to add one.

maybe a bug

hi! Tom,
I have successfully run captive, thank you very much for your previous help.
But I seem to have encountered a bug in the process of running. When I don't operate the system for a while, this bug seems to appear:
SGIR 2000005
Do you know anything about this?
thanks!
alax

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.