Commit Graph
2960 Commits
Author SHA1 Message Date
maxjivi05 46e36d95a3 Add an end-to-end probe for guest memory above the host address limit 2026-12-03 21:28:02 -05:00
maxjivi05 15b5d46f70 Reject wrapping lengths and drop stale code on discarded high memory
A nonzero length that wraps when page-aligned now fails madvise with
EINVAL and mprotect with ENOMEM, as on Linux. Discarding advice on
high memory invalidates translated code for the range whenever advice
reached any region.
2026-12-03 21:04:10 -05:00
maxjivi05 7ce0b702bb Claim high guest memory only with LSE atomics and invalidate every code alias
High guest mappings are claimed only when the JIT emits LSE atomics, and
exclusive load/store instructions are never single-stepped, so an atomic
on high memory cannot spin. A store into high code invalidates every
mirror of the written page through the tracked mapping. madvise and
mprotect on high memory apply to each region at its own host address.
2026-12-03 20:46:45 -05:00
maxjivi05 078bd56dd0 Translate only pointer syscall arguments into high guest memory
Pointer arguments are now picked from a per-syscall layout table, so
scalar values such as a truncate length are never rewritten. Sized
buffers must map to one contiguous host range or the call fails with
EFAULT, and new host backings are placed next to their guest
neighbours so adjacent mappings stay contiguous. readv, writev and the
preadv/pwritev family, sendmsg and recvmsg get a host-side copy of
their iovec and msghdr with translated bases, leaving the guest copies
untouched. Code invalidation for kernel writes maps the host buffer
back to its guest address, and an unmap checks the table before it
changes any host mapping.
2026-12-03 20:27:36 -05:00
maxjivi05 1ff0ce1421 Leave MAP_FIXED_NOREPLACE above the host limit to the host
Wine finds the top of the address space with MAP_FIXED_NOREPLACE probes.
Claiming those probes above a 39-bit host limit made Wine place its stacks
in relocated memory, and every wineserver request then failed with EFAULT
because the iovec buffers it passes to writev are nested pointers that are
not translated. Only MAP_FIXED requests are relocated again, so the probes
see the real host limit while fixed mappings above it keep working.
2026-12-03 19:55:32 -05:00
maxjivi05 25ac3830f2 Update FEX before deciding anti-cheat routing
A device on an older FEX build never went through droiddeck-fex on the
ARM64 path, so the catalog FEX was never installed and the gate kept
anti-cheat games on ARM64 forever. dd_anticheat now runs the new
droiddeck-fex update action first, which installs the catalog build
under the same lock and retry window as other FEX launches.
2026-12-03 18:00:49 -05:00
maxjivi05 d3349f848f Route anti-cheat games to x86-64 Proton only on a capable FEX
The FEX build now lists its patches in share/fex-emu/.droiddeck-patches.
Anti-cheat routing needs the fixed guest memory patch in that list and
otherwise keeps the launch on ARM64, as an older FEX cannot map the
anti-cheat helper buffer above the host address limit. Installing a FEX
build without the list removes a list left by an earlier build.
2026-12-03 17:10:14 -05:00
maxjivi05 274a9c0d2d Keep a requested x86-64 default and accept linked anti-cheat runtimes
A request for the current automatic x86-64 default now marks it as the
app's choice, so the next settle no longer moves it back to ARM64.
Anti-cheat runtime discovery follows a symlinked runtime directory.
2026-12-03 17:08:21 -05:00
maxjivi05 f1641f2ffe Keep high guest mappings intact when a fixed map or unmap fails
Check room in the region table, splits included, before a fixed map or
unmap removes anything, return the host munmap error without touching
the table entry, and keep write-protecting low shared aliases of
executable ranges that sit above the host address limit.
2026-12-03 17:07:16 -05:00
maxjivi05 cc8bb7b0a8 Keep x86-64 Proton builds out of the automatic default tool 2026-12-03 16:17:30 -05:00
maxjivi05 17c0af445e Check the driver query is answered before each wrapper's call sites 2026-12-03 15:29:10 -05:00
maxjivi05 19b4844998 Check anti-cheat runtime bridges, apply component choices under FEX and honour MAP_FIXED_NOREPLACE above the host limit 2026-12-03 14:22:49 -05:00
maxjivi05 b1fe206215 test(game-env): build the adopted-tool wrapper through extra_wrapper_sh 2026-12-03 14:02:14 -05:00
maxjivi05 19613e6842 Keep anti-cheat games on a tool the user chose instead of moving them to x86-64 2026-12-03 13:01:38 -05:00
maxjivi05 0756e93b8e README: match the StonkGuy credit to the renumbered FEX patches 2026-12-03 13:01:38 -05:00
maxjivi05 98df621d9c Docs: describe the anti-cheat signal mask fix and the container procfs view 2026-12-03 13:01:38 -05:00
maxjivi05 ee432f444d Test the container procfs view of FEX's emulated mount tables 2026-12-03 13:01:38 -05:00
maxjivi05 58fe8bb197 FEX: order the anti-cheat series after the guest stack patch from main 2026-12-03 13:01:38 -05:00
maxjivi05 20e3e9a802 FEX: describe the container's procfs in emulated mount tables 2026-12-03 13:01:38 -05:00
maxjivi05 7648b9ae8f FEX: show the guest command line when the argument area cannot be remapped 2026-12-03 13:01:38 -05:00
maxjivi05 e16a77facb droiddeck-fex: take the runtime from an adopted tool's original manifest 2026-12-03 13:01:38 -05:00
maxjivi05 f802206917 Keep x86-64 DroidDeck-Proton builds out of the ARM64 tool list 2026-12-03 13:01:38 -05:00
maxjivi05 b11bac2539 Run games with anti-cheat files on an x86-64 DroidDeck-Proton under FEX
The Proton launchers look for Easy Anti-Cheat or BattlEye bridge files in
the game folder and, when an x86-64 DroidDeck-Proton and the matching Proton
runtime are installed, hand the launch to that Proton under FEX with the
game's own prefix. Picking the x86-64 tool directly also runs it under FEX.
DROIDDECK_ANTICHEAT=off keeps a game on ARM64.
2026-12-03 13:01:38 -05:00
maxjivi05 6a3cee3ee0 FEX: serve decoder reads from fixed guest memory above the host limit 2026-12-03 13:01:38 -05:00
maxjivi05andStonkGuy c113948dd3 FEX: map fixed guest memory above a small host address space
Co-authored-by: StonkGuy <StonkGuy@users.noreply.github.com>
2026-12-03 13:01:38 -05:00
maxjivi05 a7f3c69987 FEX: serve emulated proc files by the requested path when the host returns a memfd 2026-12-03 13:01:38 -05:00
maxjivi05 b399683502 FEX: open guest paths with the raw openat system call so host preloads cannot replace the file 2026-12-03 13:01:38 -05:00
maxjivi05andStonkGuy 57a6224fcf Credit StonkGuy in the FEX anti-cheat patches and README
Co-authored-by: StonkGuy <68372320+StonkGuy@users.noreply.github.com>
2026-12-03 13:01:38 -05:00
maxjivi05 8bdc6485c8 FEX: hand a traced program's ptrace state across exec 2026-12-03 13:01:38 -05:00
maxjivi05 faf7c7b003 FEX: open the host status file with a direct system call so preloads cannot rewrite it 2026-12-03 13:01:38 -05:00
maxjivi05 7f561f6f92 README: credit StonkGuy's FEX anti-cheat emulation 2026-12-03 13:01:38 -05:00
maxjivi05 06140b0ac4 FEX: read the host status file through the raw openat syscall 2026-12-03 13:01:38 -05:00
maxjivi05 fe95624af6 Emulate only host-architecture seccomp traps in the guest hook; report the calling thread's seccomp mode in FEX's /proc/self/status
A SIGSYS carrying another architecture's seccomp siginfo now takes its default action when the program has no handler, so a process whose emulated filter traps a syscall while SIGSYS is blocked or ignored dies as on Linux.
2026-12-03 13:01:38 -05:00
maxjivi05 3bce42724c Preloads: leave poll, ppoll and select buffers untouched when no emulated device is open
A bad user pointer now reaches the kernel and returns EFAULT instead of crashing the caller inside the wrapper.
2026-12-03 13:01:38 -05:00
maxjivi05 c36804466d FEX: list only guest mappings in /proc/<pid>/maps on hosts below 47 address bits
Credit the anti-cheat emulation source in the patch header.
2026-12-03 13:01:38 -05:00
maxjivi05 6ac2deb1d3 Guest hook: route raw execve/execveat through the exec wrapper and pass self-sent SIGSYS to the program
A program that execs with syscall(SYS_execveat, ...) bypassed the environment the
guest needs, so re-executing /proc/self/exe died in the loader. /proc/self/exe now
maps to the real program on exec as it already does on open.

A SIGSYS the program queues itself, or one from a filter for another architecture,
went to the Android-filter emulation instead of the program's handler.
2026-12-03 13:01:38 -05:00
maxjivi05 8cdb8255de FEX: emulate x86-64 ptrace, seccomp and /proc for anti-cheat launchers 2026-12-03 13:01:38 -05:00
Kurt Himebauch 7138f95c90 fix(onboarding): no wireless-debugging step on first run when the session runs outside the child-process count (#3639)
Before the runtime is installed, the rootfs has no native hook yet, so the
child-process check assumed the next session would be counted and showed
"Finish setup" for wireless debugging. The session stages the hook from the
APK before it starts, so predict the next session from the setting and the
rootfs loader instead; a runtime still to be installed will have one.
2026-12-03 12:45:41 -05:00
Kurt Himebauch 8b3cc7eb15 Wire XR keyboard text into the session input queue (#3631)
Initialize KeyboardHost with the updated key and text callbacks. Keep XR physical-key routing and use the regular ordered compositor queue for text.
2026-12-03 09:54:26 -05:00
Kurt Himebauch f9eeef44ed Keep the last frame visible on manual pause (#3626)
Use the effective zero-copy profile to capture and restore presentation across manual pause and resume, without overriding a disabled preference.
2026-12-03 07:39:12 -05:00
danyi eeb10e02fd Restore Chinese input for Android and Steam keyboards (#1529)
Commit Android IME text through the focused renderer and submit only after delivery is confirmed. Restore Steam pinyin on Ubuntu rc7 and allow older runtimes to start normally without IBus.
2026-12-03 07:36:55 -05:00
Kurt Himebauch e935263ccb Include IBus in the Ubuntu runtime (#3624)
Ship the IBus daemon, client, and Python bindings required for Steam pinyin. Verify these dependencies during runtime assembly.
2026-12-03 07:36:49 -05:00
FryMcNugget 673675b45e feat(quest): DroidDeck's menu, agent pet and keyboards float in the immersive SteamVR view (#3596) 2026-12-03 07:28:05 -05:00
Tushar Gandhe 153c873898 fix(ui): LB, RB, LT and RT close the keyboard and menus of the page they leave (#3619) 2026-12-03 07:26:39 -05:00
MicroCool cec2e4ed70 Retry rate-limited Robolectric downloads with a Maven Central mirror (#3620) 2026-12-03 07:26:11 -05:00
MaxsTechReview affb0da37f fix(fex): keep the guest stack clear of the host stack's growth reserve (#3623) 2026-12-03 07:13:39 -05:00
FryMcNugget 8cf1e60cc2 fix(runtime): thermal zone binds no longer leak into the stand-in for PCI devices (#3595) 2026-12-02 22:22:52 -05:00
LunaDL e3faee459f Fix frame generation controls in Library and Steam settings (#3597)
Restore the frame generation controls and make the Steam menu focus its first enabled option for controller and keyboard navigation.
2026-12-02 20:54:39 -05:00
Kurt Himebauch 20df8b1858 fix(nativeguest): reap the zombies session processes adopt as subreapers and never wait for (#3610) 2026-12-02 20:31:58 -05:00
Kurt Himebauch 4ab9635ceb fix(desktop): run Plasma, its helpers and the apps it opens outside Android's child-process count (#3599) 2026-12-02 18:45:22 -05:00