From: Twaik Yont <9674930+twaik@users.noreply.github.com> userfaultfd is present as a syscall on Android and is used by some system components, but it is not available to regular application processes. Since Android 8.0, app processes are restricted by seccomp filters which block userfaultfd, causing a fatal SIGSYS instead of returning an error. Wine runs in the app sandbox on Android, so attempting to use userfaultfd leads to an immediate crash. Disable its use on Android to avoid invoking a forbidden syscall. Signed-off-by: Twaik Yont <9674930+twaik@users.noreply.github.com> --- dlls/ntdll/unix/virtual.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/ntdll/unix/virtual.c b/dlls/ntdll/unix/virtual.c index a3b75ba6f81..9297a5f3798 100644 --- a/dlls/ntdll/unix/virtual.c +++ b/dlls/ntdll/unix/virtual.c @@ -73,7 +73,7 @@ #undef host_page_size #endif -#if defined(HAVE_LINUX_USERFAULTFD_H) && defined(HAVE_LINUX_FS_H) +#if defined(HAVE_LINUX_USERFAULTFD_H) && defined(HAVE_LINUX_FS_H) && !defined(__ANDROID__) # include <linux/userfaultfd.h> # include <linux/fs.h> #if defined(UFFD_FEATURE_WP_ASYNC) && defined(PM_SCAN_WP_MATCHING) -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10516