12 Commits
Author SHA1 Message Date
aydencharles 3fedbf4a03 feat(rest-mode): restore resume delay after trophy SPRX 2026-09-11 22:12:41 +08:00
Hexwell 317d5c2f6b docs: describe current behavior and architecture 2026-08-22 21:26:19 +08:00
Hexwell e22013992d fix(rest-mode): recover toolbox from SysCore EXEC not SIGCONT 2026-08-21 22:26:32 +08:00
Hexwell a74f6bb0b4 refactor: unify system tmp namespace 2026-07-19 02:00:22 +08:00
Hexwell a27eb928a1 fix: isolate private stack for remote ptrace calls
Use a red-zone-safe, ABI-aligned stack window for pt_call, pt_call2, and
pt_syscall so elfldr_load cannot clobber SceShellUIMain mid-SwapBuffers.
Fix single-step return detection to compare against entry_rsp, and add
inject stage logs for the load/args window.
2026-07-16 23:23:50 +08:00
Hexwell b2640863a1 fix: harden shellui inject trampolines and ptrace stager
Allocate unique near trampolines without MAP_FIXED, gate hooks until
install completes, and make pt_attach/pt_call wait and stack alignment
fail-closed so controller use during inject cannot corrupt ShellUI.
2026-07-16 23:09:11 +08:00
Hexwell 73ef92d3ce fix: make toolbox injection race-safe 2026-07-16 22:02:03 +08:00
Hexwell aad2cdaabc refactor: rebrand OrionHEN to OnionHEN
Rename product, namespaces, libraries, paths, and assets from Orion/orion
to Onion/onion across the tree. TCP stack-shutdown magic is now ONIO
(0x4F4E494F) to match the corrected branding.
2026-07-15 18:23:16 +08:00
Hexwell 598cc586e9 refactor(inject): rename to set_ucred_to_ptrace; drop attach retries
Root fix stays: elevate with PTRACE_AUTHID only. Rename away from
set_ucred_to_debugger so the API cannot imply DEBUG_AUTHID. Remove
pt_attach ECHILD poll loops and multi-attempt toolbox inject — those
were workarounds, not the cause. Keep a single waitpid(WUNTRACED) after
PT_ATTACH.
2026-07-10 18:36:24 +08:00
Hexwell a6a32a4584 fix(inject): elevate with PTRACE_AUTHID so ShellUI pt_attach works
set_ucred_to_debugger() was using DEBUG_AUTHID (…0006). The kernel only
accepts PTRACE_AUTHID (…00010003 / SceTracer) for PT_*; attach then failed
with waitpid errno=10 (ECHILD) and toolbox inject aborted after liborion_elfldr
stopped per-syscall authid flips.

Also harden pt_attach wait (WUNTRACED + ECHILD retry) and retry toolbox
inject a few times after kstuff settle.
2026-07-10 18:33:40 +08:00
Hexwell 5092072de6 docs: update branding references for OrionHEN paths and targets
Align docs and README with OrionHEN runtime paths, config keys, and
payload naming while keeping upstream etaHEN heritage credits.
2026-07-10 13:07:01 +08:00
Hexwell 4909966533 docs: document OrionHEN launch model and cleanup notes
Update root/source docs for external 9021 launch, removed deps, and
shellui injection notes.
2026-07-10 01:04:16 +08:00