#
#asahi-re · 2026-07-23 19:39
djIs there part of atcphy I could contribute to with RE work and documentation? dont wanna overlap if someone else is already on it
#asahi-re · 2026-07-23 08:13
NickChan[m]<NickChan[m]> "could technically have another..." <- Actually, I don't think that would work at all because EL1 xnu's calls would end up affect m1n1's pagetables as well as TGE=1 EL0 but xnu in this state is in EL1 and its EL0 is TGE=0
#asahi-re · 2026-07-23 08:13
svennow that could be extended to m4 where it’ll get horribly cursed because that require shadow pagetable to emulate SPRR then
#asahi-re · 2026-07-23 08:13
sventhey are in academia so they have to hand in their thesis before the code etc will be public though :(
#asahi-re · 2026-07-23 08:12
svensomeone has managed to virtualize SPTM and XNU using nested virt and some slightly cursed hacks on M2
#asahi-re · 2026-07-23 08:07
NickChan[m]could technically have another stub in GL1 that forward calls to the actual sptm which would make that another approach
#asahi-re · 2026-07-23 08:06
NickChan[m]Erm, linux virtual machine on macos
#asahi-re · 2026-07-23 08:06
NickChan[m]dj: under sptm mmio trace should be possible for EL1/GL1 guest the same way any mmio peripheral is emulated for macOS virtual machines on linux
#asahi-re · 2026-07-23 08:02
NickChan[m]no one has ever done that i think
#asahi-re · 2026-07-23 08:02
snooze6214[m]Has anyone attempted to load the sptm blob alongside xnu from m1n1?
#asahi-re · 2026-07-23 07:58
JamesCalligeros[m]Both approaches are horribly cursed, however the latter is, as we found out the hard way, slightly less so
#asahi-re · 2026-07-23 07:57
JamesCalligeros[m]There are two approaches: high-level emulation of sptm/txm inside m1n1 itself, or hypervising apple’s sptm blob alongside xnu and trapping and forwarding calls between them
#asahi-re · 2026-07-23 07:57
djah ok
#asahi-re · 2026-07-23 07:57
JamesCalligeros[m]sptm needs to run under m1n1
#asahi-re · 2026-07-23 07:56
JamesCalligeros[m]Running m1n1 under sptm is not useful
#asahi-re · 2026-07-23 07:56
JamesCalligeros[m]Youve got it backwards i think maybe i was unclear
#asahi-re · 2026-07-23 07:55
djI’m not familiar with how the hv works either so could be totally off, I just remember someone else saying it’s useful for hv so I wanted to follow up on that
#asahi-re · 2026-07-23 07:23
snooze6214[m]Even if we run m1n1 with SPTM running beside it, if we don't control the page tables, how would we capture memory reads/writes from the hypervisor? I thought the hypervisor did this by causing a pagefault and walking the pagetable manually. Did I misunderstand how the hv works?
#asahi-re · 2026-07-23 01:52
djlet’s hope Apple fixes this soon :(
#asahi-re · 2026-07-23 01:50
djI guess we could run hypervisor properly under sptm boot path m1n1 at least for reverse engineering macOS as a guest right?
#asahi-re · 2026-07-23 01:49
djit’s definitely an Apple bug in iBoot. They handle fuos path differently quite a lot I noticed in the binary
#asahi-re · 2026-07-23 01:48
djalright, so under sptm, starting secondaries confirmed to work
#asahi-re · 2026-07-22 08:40
chaos_princessand they actually use it as i found out when i tried to solve sptm using the frankenxnu route
#asahi-re · 2026-07-22 08:40
chaos_princessj`ey: kexts have access to tightbeam
#asahi-re · 2026-07-22 08:39
djkc I booted earlier seems to have started secondaries but not fully sure yet. need to add debugusb support
#asahi-re · 2026-07-22 08:39
j`eychaos_princess: do you think that header is accidental? or can kexts use it
#asahi-re · 2026-07-22 08:38
sven:D
#asahi-re · 2026-07-22 08:38
djI see I see, well at least this would be helpful for debugging some specific stuff
#asahi-re · 2026-07-22 08:38
chaos_princess"What you're refering to as Arm64, is in fact, Apple/Arm64, or as I've recently taken to calling it, Apple plus Arm64."
#asahi-re · 2026-07-22 08:37
svenif you wanted Linux under SPTM we’d probably need to introduce a new architecture since it really wouldn’t be arm64 anymore
#asahi-re · 2026-07-22 08:37
chaos_princesstheoretically less than completely useless if you shove linux into el1
#asahi-re · 2026-07-22 08:37
svenyes, Linux wants to manage its own pagetables
#asahi-re · 2026-07-22 08:37
chaos_princessbasically useless for linux in el2, you will need to rewrite the entire linux mm
#asahi-re · 2026-07-22 08:36
chadmedyes extremely, it is only useful for hypervising xnu
#asahi-re · 2026-07-22 08:36
djis m1n1 running under sptm basically useless for Linux btw? are there hard limitations?
#asahi-re · 2026-07-22 08:36
chaos_princess./Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/platform/sptm/
#asahi-re · 2026-07-22 08:36
djsptm.h sounds useful I’ll look for that
#asahi-re · 2026-07-22 08:35
djyeah been looking at xnu entry
#asahi-re · 2026-07-22 08:35
chaos_princesswhich is the actual sptm api
#asahi-re · 2026-07-22 08:34
chaos_princessalso, there is sptm.h (may have a different name) somewhere in xcode.app
#asahi-re · 2026-07-22 08:34
svenhttps://arxiv.org/abs/2510.09272 Is probably useful as well
#asahi-re · 2026-07-22 08:34
svenalso make sure to take a look at open source XNU’s entry point. there’s some comments about how you need to talk to SPTM initially
#asahi-re · 2026-07-22 08:33
svenmight make sense to start “from scratch”, i.e. only take basic proxyclient features and take it from there
#asahi-re · 2026-07-22 08:24
djfirst success: custom kc is now staying stable in boot stage after sptm handoff, now I need to adapt m1n1 to work there
#asahi-re · 2026-07-22 07:16
NickChan[m]there's a sk_bootstrapped variable in open source xnu that controls whether exclaves are used
#asahi-re · 2026-07-22 06:41
chaos_princessnicolas17: hey siri first stage is aop
#asahi-re · 2026-07-22 06:28
svenyou may be able to convince XNU to just not use exclaves by messing with the device tree
#asahi-re · 2026-07-22 06:27
svenkinda like TXM is SPTM’s user space
#asahi-re · 2026-07-22 06:26
svenand the applets/exclaves are running in user space (GL0) then
#asahi-re · 2026-07-22 06:26
svenyeah, the exclave kernel is essentially a VM running in GL1 (and maybe EL1) under SPTM as its hv

plus ›