zalexdev/linux-um-arm64 ? reverse-engineered prompt
Reverse engineered prompt
Build me a Linux userspace kernel runner for arm64 that can launch a real kernel as a normal aarch64 process on Android or Linux, without needing root, KVM, or a hypervisor.
I want it to boot into userspace reliably, support loadable modules, basic networking, USB passthrough, and container workloads like docker run hello world. It should work with both glibc and Android bionic, and there should be a simple way to build it with clang and run it from one command with the guest console on my terminal.
Please include the syscall interception mode with a fast seccomp path plus a ptrace fallback, and add the useful boot options for turning those modes on and off, forcing cancellation, and changing the stub behavior. Make sure it works on both 4 KB and 16 KB guest pages, and keep the build and test flow easy to follow with a few reproducible gate scripts or checks. If you need to look up current docs online while wiring up any tricky kernel or Android bits, do that.
Are you gonna build this?
make sure you review the code using coderabbit