Skip to content

gaol crashes when starting a Sandbox #41

Description

@covercash2

i'm trying to use gaol to sandbox a fuzzer for ion.

i'm new to sandboxing and fuzzing, so bear with me.

anyway, here's the full stacktrace: pastebin

the fun parts are:

'main' panicked at 'assertion failed: unshare(CLONE_NEWUSER | CLONE_NEWPID) == 0'

and

'main' panicked at 'assertion failed: libc::read(pipe_fds[0], &mut grandchild_pid as *mut i32 as *mut c_void, mem::size_of::<pid_t>() as size_t) == mem::size_of::<pid_t>() as ssize_t'

i'm a little hazy on what a namespace is supposed to be in this context. i've seen other threads that say that i need a kernel compiled with certain flags. i've seen threads from 2016 that reference this same stacktrace but with no solution.

the crash happens when i call sandbox.start(command). i'm unable to match the result. it just fails the assertions and closes.

my kernel:
Linux dirt 4.9.0-4-amd64 #1 SMP Debian 4.9.51-1 (2017-09-28) x86_64 GNU/Linux

i've also testing this on arch linux with the latest kernel. i can grab that too if it'll help, but i'm away from that machine.

i can't reproduce the error on my macbook however:
Darwin mymacbook 15.6.0 Darwin Kernel Version 15.6.0: Sun Jun 4 21:43:07 PDT 2017; root:xnu-3248.70.3~1/RELEASE_X86_64 x86_64

i would just run it on my macbook, but afl-rs has an issue with mac that hasn't been resolved.

i may be stuck in an x-y problem. any help is appreciated.

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