#
✕ nick:StanfordAppliedCyber[m]
#asahi-re · 2026-05-13 04:51
StanfordAppliedCyber[m]and...... I honestly didn't know we had pagetable stuff in m1n1
#asahi-re · 2026-05-13 04:51
StanfordAppliedCyber[m]understood
#asahi-re · 2026-05-13 00:59
StanfordAppliedCyber[m]that said yes, this could be done by someone else, as i said, boring page table walking, i'll document the endpoints if that's what we come to
#asahi-re · 2026-05-13 00:59
StanfordAppliedCyber[m]even the proxyclient which doesn't even have to be linked to main m1n1 if we don't want it to be? i understand things end users need, like pmgr, smp bringabsolutely should not be using this, but what i don't get is this is absolutely a development tool, no regular asahi user is going to be running macos under a hypervisor, not to mention m1n1 is entirely MIT licensed so it actually is apsl compatible
#asahi-re · 2026-05-13 00:51
StanfordAppliedCyber[m]that said even if this isn't allowed most of it is boring page table walking stuff, truly nothing interesting aside from the 20 lines of stuff i mentioned earlier
#asahi-re · 2026-05-13 00:50
StanfordAppliedCyber[m]can we more rigorously define "actual release of the project" then? because this is an "Internal tools intended only for exploration and not to be released to end-users" with the explicit allow for "we can host such changes as an Asahi Linux repo"
#asahi-re · 2026-05-13 00:48
StanfordAppliedCyber[m]yeah, this isn't an official release, it's not going to end users, it's exclusively for developers
#asahi-re · 2026-05-13 00:48
StanfordAppliedCyber[m]that's also why i'm asking
#asahi-re · 2026-05-13 00:48
StanfordAppliedCyber[m]i'm aware apsl is copyleft
#asahi-re · 2026-05-13 00:47
StanfordAppliedCyber[m]actual release of the project.
#asahi-re · 2026-05-13 00:47
StanfordAppliedCyber[m]> Internal tools intended only for exploration and not to be released to end-users are allowed to use APSL code, including taking APSL releases directly and modifying them, as long as all licensing requirements are met. For example, taking an APSL release, modifying it to aid in reverse engineering, and using the result back in macOS is fine, and we can host such changes as an Asahi Linux repo, but they cannot become an
#asahi-re · 2026-05-13 00:26
StanfordAppliedCyber[m]@ someone who actually knows what they're talking about when it comes to copyright, i'm tainted as to SPTM, i've extensively disasm'd it, but am I allowed to push code strictly copy pasted from old xnu versions that implement the exact logic? like verbatim ctrl + c ctrl + v from apsl licensed source
#asahi-re · 2026-05-13 00:14
StanfordAppliedCyber[m]which may not even be copyrightable and trivial to clean room if it is
#asahi-re · 2026-05-13 00:14
StanfordAppliedCyber[m]I think the amount of code that doesn't involve stuff that you can take verbatim from xnu is incredibly small, like literally under 20 lines small
#asahi-re · 2026-05-13 00:08
StanfordAppliedCyber[m]good news for the port then, anything i ctrl c from the xnu kernel is specifically allowed by RE policy :)
#asahi-re · 2026-05-13 00:08
StanfordAppliedCyber[m]in hindsight, extremely obvious
#asahi-re · 2026-05-13 00:08
StanfordAppliedCyber[m]....i should have RTFM'd before brute forcing so much of the sptm code, looks like half of this was just xnu code previously
#asahi-re · 2026-05-11 06:13
StanfordAppliedCyber[m]i checked for undocumented instructions in the kcache (via really stupid script) and couldn't find any
#asahi-re · 2026-05-10 07:59
StanfordAppliedCyber[m]if/when the kernel mode custom instructions become a problem i'll likely need some help there-- like the answer is obviously emulate them via hypercall but figuring out what they do exactly would be difficult for me
#asahi-re · 2026-05-10 07:57
StanfordAppliedCyber[m]oh, right, forgot about the userspace being the same
#asahi-re · 2026-05-10 07:00
StanfordAppliedCyber[m]maybe this will be a problem, maybe it won't
#asahi-re · 2026-05-10 07:00
StanfordAppliedCyber[m]re: txm, right now basically everything there is stubbed to return txm_success
#asahi-re · 2026-05-10 06:50
StanfordAppliedCyber[m]ah just read about it, extra instructions yeah
#asahi-re · 2026-05-10 06:49
StanfordAppliedCyber[m]apologies, i'm not super familiar with apple platforms
#asahi-re · 2026-05-10 06:49
StanfordAppliedCyber[m]like is it just extra instructions?
#asahi-re · 2026-05-10 06:48
StanfordAppliedCyber[m]how does amx work
#asahi-re · 2026-05-10 06:48
StanfordAppliedCyber[m]interesting, I'll look into that
#asahi-re · 2026-05-10 06:48
StanfordAppliedCyber[m]the annoying part will be is if they have arguments-- ie genter is trivial search code for exact hex, replace with other exact hex for hvc
#asahi-re · 2026-05-10 06:47
StanfordAppliedCyber[m]and triggers some macos exception handler, which obviously won't work, but cross that bridge when we get there
#asahi-re · 2026-05-10 06:47
StanfordAppliedCyber[m]the odds are those instructions will have to be mechanically pached out also because otherwise the illegal instruction traps to el1
#asahi-re · 2026-05-10 06:46
StanfordAppliedCyber[m]bunch of 0xaaaaaaa pac keys and ignore all the registers
#asahi-re · 2026-05-10 06:46
StanfordAppliedCyber[m]that's what we're already doing
#asahi-re · 2026-05-10 06:46
StanfordAppliedCyber[m]ack, yeah i remember reading about those from one of marcan's old blog posts
#asahi-re · 2026-05-10 06:46
StanfordAppliedCyber[m]catching the first genter took forever
#asahi-re · 2026-05-10 06:45
StanfordAppliedCyber[m]my progress was actually really slow to start, because this whole thing is very sensitive, to put it mildly
#asahi-re · 2026-05-10 06:44
StanfordAppliedCyber[m]like you don't mean registers, you mean arm instructions
#asahi-re · 2026-05-10 06:44
StanfordAppliedCyber[m]what are some of the instructions that you know of?
#asahi-re · 2026-05-10 06:44
StanfordAppliedCyber[m]i'm surprised any of this shit works at all
#asahi-re · 2026-05-10 06:43
StanfordAppliedCyber[m]for context i started working on this 3 days ago
#asahi-re · 2026-05-10 06:43
StanfordAppliedCyber[m]yeah i'm expecting problems
#asahi-re · 2026-05-10 06:43
StanfordAppliedCyber[m]only GENTER which was mechanically patched out
#asahi-re · 2026-05-10 06:42
StanfordAppliedCyber[m]no actually, haven't hit that at all
#asahi-re · 2026-05-10 06:42
StanfordAppliedCyber[m]not even in bsd init
#asahi-re · 2026-05-10 06:42
StanfordAppliedCyber[m]that's my first goal
#asahi-re · 2026-05-10 06:42
StanfordAppliedCyber[m]absolutely not in userspace yet
#asahi-re · 2026-05-10 06:41
StanfordAppliedCyber[m]i'm applying brute force to the problem
#asahi-re · 2026-05-10 06:41
StanfordAppliedCyber[m]yes
#asahi-re · 2026-05-10 06:41
StanfordAppliedCyber[m]iirc that was actually pretty simple
#asahi-re · 2026-05-10 06:41
StanfordAppliedCyber[m]yes i am, i have 4 endpoints wired up, i'm also tainted there
#asahi-re · 2026-05-10 06:41
StanfordAppliedCyber[m]yeah i agree

plus ›