Repository navigation
Fixed
- An Android app on x86-64 no longer ends at its runtime's first wait. Android's system call
filter for apps allowsepoll_waitonly on its 32-bit ABIs and answers it elsewhere with
SIGSYS, which ends the app (logcat: "seccomp prevented call to disallowed x86_64 system call
232"). The poller madeepoll_waitas a system call of its own on x86-64, past Bionic, whose
epoll_waitis anepoll_pwait. It ended an app on the x86-64 emulator and on an x86-64
device; arm64, which has noepoll_wait, was not affected. On Android the poller now waits with
epoll_pwaiton every architecture. Linux is unchanged. A new workflow runs a runtime under
the filter's refusals on an x86-64 Android emulator, and lints and builds the suite for arm64
Android; the whole suite is not run on Android yet. - A seccomp filter that traps no longer runs the program's
SIGSYShandler in the io_uring
probe's child. With a filter active, the probe makes its oneio_uring_setupin a short-lived
child that shares the program's memory. A filter that answers the call withSIGSYSinstead of
a kill (Android's filter for apps, some sandboxes) ran the program's own handler in that child,
and a handler that returned left the probe with a wrong answer. The child now setsSIGSYSto
its default action for itself before the call, so a trap ends it as a kill does and the runtime
runs on epoll. The program's own handlers are untouched.
Changes
- fix: nuclei 0.5.9, an Android app on x86-64 no longer ends at its runtime's first wait (#61) (33aaec6)
Full diff: v0.5.8...v0.5.9