From a3ef731d07e0fe35dbebd29ccf2fcf9e2998b020 Mon Sep 17 00:00:00 2001 From: maxjivi05 Date: Wed, 2 Dec 2026 18:50:05 -0500 Subject: [PATCH] Credit StonkGuy in the FEX anti-cheat patches and README Co-authored-by: StonkGuy <68372320+StonkGuy@users.noreply.github.com> --- README.md | 2 +- .../0020-anticheat-ptrace-seccomp-and-proc-emulation.patch | 4 ++++ ...1-proc-maps-guest-only-on-small-address-space-hosts.patch | 5 +++++ .../patches/0022-proc-status-seccomp-of-calling-thread.patch | 2 ++ tools/fex/patches/0023-read-host-status-directly.patch | 2 ++ tools/fex/patches/0024-ptrace-state-across-exec.patch | 2 ++ 6 files changed, 16 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 28e25471e7..4b85694e3c 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ DroidDeck is [GPL-3.0](LICENSE). Steam and Proton belong to Valve Corporation. V - Runtime, shim, input and controller work build on WinNative and Bannerlator by maxjivi05. - mmap ring buffer controller input by ribbit384 ([WinNative #345](https://github.com/WinNative-Emu/WinNative/pull/345)). - [FEX](https://github.com/FEX-Emu/FEX) (MIT) runs x86 code. DroidDeck's build puts the platform name under `AT_PLATFORM` so [sharun](https://github.com/VHSgunzo/sharun) AppImages by VHSgunzo (MIT) start through its [userland-execve](https://crates.io/crates/userland-execve) loader (MIT), and its GL thunk hands X errors to the program's own error handler. FEX's code disk cache was checked in its source. The fix for host stack left behind when a program leaves a signal handler without returning follows the approach suggested in [FEX-Emu/FEX#2487](https://github.com/FEX-Emu/FEX/issues/2487). The host stack fix for system calls that end a block is a backport of Ryan Houdek's [FEX-Emu/FEX#6122](https://github.com/FEX-Emu/FEX/pull/6122). -- The x86-64 ptrace, seccomp and `/proc` emulation anti-cheat launchers need under FEX comes from StonkGuy's [FEX fork](https://github.com/StonkGuy/FEX) (`eac-2611` branch, MIT), carried as build patches. +- Anti-cheat support under FEX is the work of [StonkGuy](https://github.com/StonkGuy): the x86-64 ptrace, seccomp and `/proc` emulation from his [FEX fork](https://github.com/StonkGuy/FEX) (`eac-2611` branch, MIT) is carried as build patch 0020 with his authorship, patches 0021 to 0024 build on it, and his `eac-tests` regression suite verifies them. - x86-64 programs on Wayland reach the GPU through FEX's Wayland client, wayland-egl and EGL thunks. The guest `wl_list` and `wl_array` helpers follow [libwayland](https://gitlab.freedesktop.org/wayland/wayland)'s `src/wayland-util.c` (MIT). The EGL extension table comes from the [Khronos EGL registry](https://github.com/KhronosGroup/EGL-Registry) (Apache-2.0) and Mesa's `egl_other.xml` (MIT). - x86 AppImages, and arm64 ones whose runtime can't unpack on Android, are unpacked with [uruntime](https://github.com/VHSgunzo/uruntime) by VHSgunzo (MIT), shipped unmodified with its licence. - DwarFS AppImages are unpacked without proot by `dwarfsextract` from [DwarFS](https://github.com/mhx/dwarfs) by Marcus Holland-Moritz (MIT), the release binary uruntime embeds, taken out of its self-extracting wrapper and shipped with its licence. diff --git a/tools/fex/patches/0020-anticheat-ptrace-seccomp-and-proc-emulation.patch b/tools/fex/patches/0020-anticheat-ptrace-seccomp-and-proc-emulation.patch index 801f82b457..f39ddc2790 100644 --- a/tools/fex/patches/0020-anticheat-ptrace-seccomp-and-proc-emulation.patch +++ b/tools/fex/patches/0020-anticheat-ptrace-seccomp-and-proc-emulation.patch @@ -1,3 +1,7 @@ +From: StonkGuy <68372320+StonkGuy@users.noreply.github.com> +Subject: [PATCH] x86-64 ptrace, seccomp and /proc emulation for anti-cheat launchers + +Author: StonkGuy (https://github.com/StonkGuy/FEX) Source: https://github.com/StonkGuy/FEX branch eac-2611 (tag eac-2611.1) Copyright (c) StonkGuy and FEX contributors, MIT licence diff --git a/tools/fex/patches/0021-proc-maps-guest-only-on-small-address-space-hosts.patch b/tools/fex/patches/0021-proc-maps-guest-only-on-small-address-space-hosts.patch index 0fd7689615..c86203eb3f 100644 --- a/tools/fex/patches/0021-proc-maps-guest-only-on-small-address-space-hosts.patch +++ b/tools/fex/patches/0021-proc-maps-guest-only-on-small-address-space-hosts.patch @@ -1,3 +1,8 @@ +From: maxjivi05 +Subject: [PATCH] List only guest mappings in /proc//maps on hosts below 47 address bits + +Builds on StonkGuy's /proc emulation from https://github.com/StonkGuy/FEX (eac-2611, MIT). + diff --git a/Source/Tools/LinuxEmulation/LinuxSyscalls/EmulatedFiles/EmulatedFiles.cpp b/Source/Tools/LinuxEmulation/LinuxSyscalls/EmulatedFiles/EmulatedFiles.cpp index 1b2396b01..156e3964c 100644 --- a/Source/Tools/LinuxEmulation/LinuxSyscalls/EmulatedFiles/EmulatedFiles.cpp diff --git a/tools/fex/patches/0022-proc-status-seccomp-of-calling-thread.patch b/tools/fex/patches/0022-proc-status-seccomp-of-calling-thread.patch index e44dce6f65..5d76391bd5 100644 --- a/tools/fex/patches/0022-proc-status-seccomp-of-calling-thread.patch +++ b/tools/fex/patches/0022-proc-status-seccomp-of-calling-thread.patch @@ -3,6 +3,8 @@ From: maxjivi05 Date: Wed, 2 Dec 2026 18:21:23 -0500 Subject: [PATCH] Report the calling thread's seccomp mode in /proc/self/status +Builds on StonkGuy's anti-cheat emulation from https://github.com/StonkGuy/FEX (eac-2611, MIT). + --- .../LinuxSyscalls/EmulatedFiles/EmulatedFiles.cpp | 6 +++++- .../Tools/LinuxEmulation/LinuxSyscalls/ThreadManager.h | 10 ++++++++++ diff --git a/tools/fex/patches/0023-read-host-status-directly.patch b/tools/fex/patches/0023-read-host-status-directly.patch index 92005d718a..931c6b2e4f 100644 --- a/tools/fex/patches/0023-read-host-status-directly.patch +++ b/tools/fex/patches/0023-read-host-status-directly.patch @@ -4,6 +4,8 @@ Date: Wed, 2 Dec 2026 18:25:20 -0500 Subject: [PATCH] Read FEX's own /proc/self/status with a direct openat system call +Builds on StonkGuy's anti-cheat emulation from https://github.com/StonkGuy/FEX (eac-2611, MIT). + --- FEXHeaderUtils/FEXHeaderUtils/Syscalls.h | 30 +++++++++++++++++++ .../EmulatedFiles/EmulatedFiles.cpp | 3 +- diff --git a/tools/fex/patches/0024-ptrace-state-across-exec.patch b/tools/fex/patches/0024-ptrace-state-across-exec.patch index c2056b8cb6..6c1bcc618f 100644 --- a/tools/fex/patches/0024-ptrace-state-across-exec.patch +++ b/tools/fex/patches/0024-ptrace-state-across-exec.patch @@ -3,6 +3,8 @@ From: maxjivi05 Date: Wed, 2 Dec 2026 18:41:52 -0500 Subject: [PATCH] Hand the tracee's ptrace state across exec +Builds on StonkGuy's anti-cheat emulation from https://github.com/StonkGuy/FEX (eac-2611, MIT). + --- .../LinuxSyscalls/PtraceEmu.cpp | 54 ++++++++++++++++++- 1 file changed, 53 insertions(+), 1 deletion(-)