Skip to content
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

Proot static + umeq crashes dies on bash #8

Open
necrose99 opened this issue Feb 2, 2017 · 7 comments
Open

Proot static + umeq crashes dies on bash #8

necrose99 opened this issue Feb 2, 2017 · 7 comments

Comments

@necrose99
Copy link

Gentoo January 2017 arm64 , stage3.

Proot native, also fails.

@mickael-guene
Copy link
Owner

Can you describe how to reproduce.

@necrose99
Copy link
Author

necrose99 commented Feb 8, 2017

http://gentoo.osuosl.org/experimental/arm64/
http://gentoo.osuosl.org/experimental/arm64/stage3-arm64-20161219.tar.bz2
[ ] stage3-arm64-20161219.tar.bz2 2017-01-24 19:56 292M
[ ] stage3-arm64-20161219.tar.bz2.CONTENTS 2017-01-24 19:56 6.9M
[ ] stage3-arm64-20161219.tar.bz2.DIGESTS 2017-01-24 19:56 720

http://i.imgur.com/2ffs83M.png prior. it worked allthough slow as .... but worked in virtualbox. inside proot and umeq...
http://pastebin.com/FAzQAJ5T
was on the road , windows drive was new....
Linux drive @ bought the farm :-(

of late after alien bin-fmt misc , on fresh Sabayon Install (Gentoo Binary Distro) , (Rebuild qemu locally , for arm64 might work better ? ) tried sys-apps/proot , same string as in pastebin , essentially ...
then local , Suck-fest both die..
unfortunately I lost the logs , however I tried both , 9999(git) and stable proot , as well as yours..

both suffer from similar errors , however 4.8 kernel or higher , i'm told from docker may yield better results. i can try to reproduce errors

https://github.com/necrose99/Docker-Gentoo-ARM64/
some are commented out. as bash fails to fire up in the arm64.... ..
so easier to get the rootfs to unpack , be somewhat usable if they have arm64.
however getting both to work could make for far more easier tinkering...

anyhow , i'm just a meddlesome security researcher , , and docker would be quite useful for testing and less poor QA .. on my part , but it can also be a pest.

any tips or fixes would be useful.

@mickael-guene
Copy link
Owner

Can you try with PROOT_NO_SECCOMP environment variable define. On my side I need this so I can use proot.

@necrose99
Copy link
Author

necrose99 commented Feb 9, 2017

https://bugs.gentoo.org/buglist.cgi?quicksearch=PROOT_NO_SECCOMP
https://gitweb.gentoo.org/repo/gentoo.git/tree/sys-apps/proot
emerge proot or on sabayon equo i proot , (sabayon basicly gentoo with polished bin repo and bin-pm ,
gentoo tools still under the hood. )

as for you local version it gives much the same , used binary in the chroot.

may need a local "vanilla-erish" Kernel - grsecurity ... and pax for the moment.

proot (gentoo system dies) as well as yours, with sig 11 , segfault.

qemu also , i'll try for gdb if I can , , and ./proot ./umeq

@necrose99
Copy link
Author

core.zip dumps
./proot -R /opt/gentoo-arm64/ -q ./umeq /bin/bash
proot info: pid 19491: terminated with signal 11

proot -R /opt/gentoo-arm64/ -q ./umeq /bin/bash (try system)
proot info: pid 19482: terminated with signal 11

local system chroot location hmmm.?
proot -R /opt/gentoo-arm64/ -q qemu /bin/bash
proot error: 'qemu' not found (root = (null), cwd = /opt/gentoo-arm64, $PATH=/sbin:/bin:/usr/sbin:/usr/bin)
fatal error: see proot --help.

@mickael-guene
Copy link
Owner

I was unable to use your core files.
Can you run proot with -v 5 option ?

@necrose99
Copy link
Author

/*

  • parazyd - (c) wtfpl 2016
  • pass arguments to qemu binary
    */

#include <string.h>
#include <unistd.h>

int main(int argc, char **argv, char **envp) {
char *newargv[argc + 3];

newargv[0] = argv[0];
newargv[1] = "-cpu";
newargv[2] = "cortex-a8"; /* here you can set the cpu you are building for */

memcpy(&newargv[3], &argv[1], sizeof(*argv) * (argc -1));
newargv[argc + 2] = NULL;
return execve("/emua-arm64", newargv, envp);

}

proot crashes even as system might be easier to do chroot via docker alpine.. ,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants