-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gaol crashes when starting a Sandbox #41
Comments
I'm seeing this exact same error on my Arch Linux box:
I'm not really sure what's happening here either. EDIT: Seems that Arch Linux is configured without |
Seems like the Arch Linux maintainers recently chose to enable unprivileged namespaces with kernel version +5.1.8, meaning that @covercash2 Now that I've been delving into sandboxing with This isn't a bug with The reason why you couldn't reproduce the issue on macOS is because that platform uses |
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.
The text was updated successfully, but these errors were encountered: