2026-05-13
00:06r0ni has quit [Ping timeout: 480 seconds]
00:07liangqi has quit [Ping timeout: 480 seconds]
00:08StanfordAppliedCyber[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
00:08StanfordAppliedCyber[m]in hindsight, extremely obvious
00:08StanfordAppliedCyber[m]good news for the port then, anything i ctrl c from the xnu kernel is specifically allowed by RE policy :)
00:11nnym_ has joined #asahi-re
00:11nnym has quit [Ping timeout: 480 seconds]
00:14StanfordAppliedCyber[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
00:14StanfordAppliedCyber[m]which may not even be copyrightable and trivial to clean room if it is
00:16liangqi has joined #asahi-re
00:24liangqi has quit [Ping timeout: 480 seconds]
00:26StanfordAppliedCyber[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
00:41pb17 has quit [Ping timeout: 480 seconds]
00:45JamesCalligeros[m]no, that is never okay
00:45JamesCalligeros[m]apple's code is not permissively licenced. you need to reimplement the logic or document the logic and let someone else do it.
00:46nicolas17"In particular, be careful of open source dumps from Apple, as they are often licensed under the APSL, which is not GPL compatible. Asahi Linux does not allow any APSL code to be used directly"
00:46ddxtanx has joined #asahi-re
00:47StanfordAppliedCyber[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
00:47StanfordAppliedCyber[m]actual release of the project.
00:48JamesCalligeros[m]"but they cannot become an actual release of the project."
00:48StanfordAppliedCyber[m]i'm aware apsl is copyleft
00:48StanfordAppliedCyber[m]that's also why i'm asking
00:48liangqi has joined #asahi-re
00:48StanfordAppliedCyber[m]yeah, this isn't an official release, it's not going to end users, it's exclusively for developers
00:48JamesCalligeros[m]we are happy for you to use Apple's code for experimentation and "tooling" but we cannot just integrate chunks of XNU into m1n1
00:50StanfordAppliedCyber[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"
00:51pb17 has joined #asahi-re
00:51StanfordAppliedCyber[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
00:56JamesCalligeros[m]"tooling" is throwaway/one-shot stuff like the AGX shader disassembler or the scipy thingy i use to trim zeroes out of FIRs. the hypervisor is not "dev tooling" in that sense and is a major component of m1n1, which is software that we release and distribute to users as part of the project
00:56JamesCalligeros[m]that notwithstanding, the APSL is just not compatible with the GPL so we cant just import code licenced under it into m1n1 wholesale
00:57JamesCalligeros[m]either reimplement the functionality or document it and let someone else do it. we arent here to cut corners and attract apple's ire
00:59StanfordAppliedCyber[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
00:59StanfordAppliedCyber[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
01:00liangqi has quit [Ping timeout: 480 seconds]
01:01habiby has quit [Ping timeout: 480 seconds]
01:20ddxtanx_ has joined #asahi-re
01:21ddxtanx has quit [Ping timeout: 480 seconds]
01:25liangqi has joined #asahi-re
01:34liangqi has quit [Ping timeout: 480 seconds]
01:40WindowPain has quit [Ping timeout: 480 seconds]
01:41WindowPain has joined #asahi-re
02:01liangqi has joined #asahi-re
02:07ddxtanx_ has quit [Remote host closed the connection]
02:08ddxtanx has joined #asahi-re
02:09liangqi has quit [Ping timeout: 480 seconds]
02:15habiby has joined #asahi-re
02:34liangqi has joined #asahi-re
02:42liangqi has quit [Ping timeout: 480 seconds]
02:42dataviruset has joined #asahi-re
02:51liangqi has joined #asahi-re
02:59liangqi has quit [Ping timeout: 480 seconds]
03:02tjemke75 has joined #asahi-re
03:07dataviruset has quit [Ping timeout: 480 seconds]
03:08tjemke7 has quit [Ping timeout: 480 seconds]
03:08tjemke75 is now known as tjemke7
03:14liangqi has joined #asahi-re
03:21liangqi has quit [Remote host closed the connection]
03:22liangqi has joined #asahi-re
03:30liangqi has quit [Ping timeout: 480 seconds]
03:32hamr84 has quit [Ping timeout: 480 seconds]
03:38liangqi has joined #asahi-re
03:44Stary has quit [Quit: ZNC - http://znc.in]
03:46liangqi has quit [Ping timeout: 480 seconds]
03:49Stary has joined #asahi-re
03:51r0ni has joined #asahi-re
03:54liangqi has joined #asahi-re
04:03liangqi has quit [Ping timeout: 480 seconds]
04:03ddxtanx has quit [Read error: Connection reset by peer]
04:10ddxtanx has joined #asahi-re
04:12liangqi has joined #asahi-re
04:20liangqi has quit [Ping timeout: 480 seconds]
04:29svenagain, we’re not trying to cut corners here and since none of us are lawyers we’re being extra careful when possible
04:29liangqi has joined #asahi-re
04:37liangqi has quit [Ping timeout: 480 seconds]
04:38ddxtanx_ has joined #asahi-re
04:38ddxtanx has quit [Read error: Connection reset by peer]
04:47liangqi has joined #asahi-re
04:48ddxtanx_ has quit [Read error: Connection reset by peer]
04:48ddxtanx_ has joined #asahi-re
04:51StanfordAppliedCyber[m]understood
04:51StanfordAppliedCyber[m]and...... I honestly didn't know we had pagetable stuff in m1n1
04:51StanfordAppliedCyber[m]brain extra small
04:51StanfordAppliedCyber[m]i'll see how it works
04:56liangqi has quit [Ping timeout: 480 seconds]
05:00habiby has quit [Ping timeout: 480 seconds]
05:00liangqi has joined #asahi-re
05:10liangqi has quit [Ping timeout: 480 seconds]
05:12StanfordAppliedCyber[m]some of it is definitely useful, it'll all need a bit of a refactor to fit, and some things will still need to be cleanroomed, but I'll discuss this further when my code works and i've cleaned it up
05:29ddxtanx has joined #asahi-re
05:30ddxtanx_ has quit [Read error: Connection reset by peer]
05:34liangqi has joined #asahi-re
05:42liangqi has quit [Ping timeout: 480 seconds]
05:46ddxtanx_ has joined #asahi-re
05:46ddxtanx has quit [Read error: Connection reset by peer]
05:56berzrk has joined #asahi-re
06:00berzrk_ has quit [Ping timeout: 480 seconds]
06:05liangqi has joined #asahi-re
06:14liangqi has quit [Ping timeout: 480 seconds]
06:20liangqi has joined #asahi-re
06:45ddxtanx_ has quit [Remote host closed the connection]
06:45ddxtanx has joined #asahi-re
06:47fl0_idtbh, even as legal research, there often isn't a clearly defined line. so it would still be a risk assessment at the end
06:49ddxtanx_ has joined #asahi-re
06:49ddxtanx_ has quit [Remote host closed the connection]
06:49ddxtanx has quit [Read error: Connection reset by peer]
08:12liangqi has quit [Remote host closed the connection]
08:14liangqi has joined #asahi-re
08:22liangqi has quit [Ping timeout: 480 seconds]
08:43StanfordAppliedCyber[m]question, how much are we allowed to disasm the firmware blobs?
08:44StanfordAppliedCyber[m]I haven't touched them at all aside from the sptm firmware, but say the agx firmware could be nice for figuring out what the structs are exactly
08:47liangqi has joined #asahi-re
08:48svenyour approach seems to be „looking for any reason to disassemble something“ while we prefer „looks for any reason NOT to disassemble anything and use that as a last resort“
08:48liangqi has quit [Remote host closed the connection]
08:48liangqi has joined #asahi-re
08:48sventhat’s maybe overly cautious but as it turns out disassembling blobs usually isn’t required because tracing is to much faster
08:49chaos_princessfw blobs also tend to be less useful than you might think
08:49chaos_princesskexts at least have symbols
08:52chaos_princess(this is not an endorsement of the "just feed kexts to ghidra" approach btw)
08:53liangqi_ has joined #asahi-re
08:57StanfordAppliedCyber[m]i'm asking because i'm not experienced with RE and want clear guidance on policy, not because i'm foaming at the mouth to disassemble something
08:57chaos_princessthe policy is that the result should mainly come from tracing, with disasm being used to, like, confirm the last 5%
08:58StanfordAppliedCyber[m]thank you for the clarification there
09:00liangqi has quit [Ping timeout: 480 seconds]
09:19ddxtanx has joined #asahi-re
09:26ddxtanx_ has joined #asahi-re
09:26ddxtanx has quit [Read error: Connection reset by peer]
09:41ddxtanx has joined #asahi-re
09:41ddxtanx_ has quit [Read error: Connection reset by peer]
09:46nnym_ has quit [Ping timeout: 480 seconds]
09:50svenYeah, we’re just being as careful as possible here. You can do disassembly and still write code that’s effectively cleanroom but why take that risk when it’s just not necessary?
09:50svenand understanding what something does from tracing or testing sometimes even results in better drivers in the end
09:52svene.g. for nvme macOS creates two copies of the pages it needs to r/w but in Linux we can just point both hw regs to the same tables
09:52svensimple example, but blindly copying what macOS does which is tempting when disassembling would be weird there
09:55chadmedanother example, macos never ever uses more than two display controller planes because old versions of dcp (m1 and previous) only support two. in linux we can simply detect which dcp{,ext} version we have and expose the real number of surfaces to kms which lets compositors do more cool things that macos cant
09:56chadmedprobably wouldnt have figured that one out by trying to disassemble 9 mib of nonsense obj-c/c++ code with vtables that go nowhere and 3 (?) different abstraction frameworks
09:58chadmedthe only useful thing i got out of putting the dcp fw in ghidra was confirmation on the meaning of some enums, because there are a couple of debug print functions that just switch on the enum value and then print what it means :P
09:59riker77 has quit [Quit: Quitting IRC - gone for good...]
10:05riker77 has joined #asahi-re
10:06rhysmdnz1111 has quit [Ping timeout: 480 seconds]
10:07enick_227111 has quit [Ping timeout: 480 seconds]
10:09ddxtanx has quit [Remote host closed the connection]
10:12ddxtanx has joined #asahi-re
10:22ddxtanx has quit [Ping timeout: 480 seconds]
10:24Guest6724 is now known as svenpeter[m]
11:13amarioguy has joined #asahi-re
12:07truita_ has joined #asahi-re
12:09truita has quit [Ping timeout: 480 seconds]
12:09truita_ is now known as truita
13:09playboicarti[m] has left #asahi-re [User left]
13:21rhysmdnz1111 has joined #asahi-re
13:21enick_227111 has joined #asahi-re
13:42nnym has joined #asahi-re
14:08liangqi_ has quit [Remote host closed the connection]
14:13michaelros44 has quit [Quit: The Lounge - https://thelounge.chat]
14:13michaelros44 has joined #asahi-re
14:17michaelros44 has quit []
14:18michaelros44 has joined #asahi-re
14:22habiby has joined #asahi-re
14:29nickchandisassembling apple bins in ghidra kind of suck though it doesn't even support the call convention properly
14:29xal has quit []
14:30xal has joined #asahi-re
14:31midou_ has joined #asahi-re
14:32rhysmdnz1111 has quit [singleton.oftc.net nucleus.oftc.net]
14:32chadmed has quit [singleton.oftc.net nucleus.oftc.net]
14:32ohtwoone has quit [singleton.oftc.net nucleus.oftc.net]
14:32k70 has quit [singleton.oftc.net nucleus.oftc.net]
14:32midou has quit [singleton.oftc.net nucleus.oftc.net]
14:32dougall has quit [singleton.oftc.net nucleus.oftc.net]
14:33chadmed has joined #asahi-re
14:33ohtwoone has joined #asahi-re
14:34sveni've just switched over to ghidra completely since I couldn't justify the cost of a IDA license with decompilers. it's not unwanted
14:35chaos_princessEdit -> Options for '$whatever' -> Specification Extensions
14:35chadmed has quit [Killed (singleton.oftc.net (Nick collision (new)))]
14:35k70_ has joined #asahi-re
14:35rhysmdnz1111 has joined #asahi-re
14:35chadmed has joined #asahi-re
14:35k70 has joined #asahi-re
14:35dougall has joined #asahi-re
14:36chadmed has quit [Remote host closed the connection]
14:37k70 has quit [Ping timeout: 484 seconds]
14:37k70_ is now known as k70
14:37chadmed has joined #asahi-re
14:38habibybut if i do end up obtaining a licens through work i wanted to know if there was a precident for it
14:57nickchani would rather do shadow paging to trace things in same el then to disassemble xnu and pretend i know iokit
14:58ave286 has quit []
15:04nickchanthere's also the issue that around when xnu is going to enable mmu xnu doesn't have a usable sp but I need to save state
15:04nickchanand my solution is to check a register for a very specific value through 64 tbz/tbnz chain
15:05nickchanto see if it holds a very specific value during bootup if so corrupt that register to a usable sp and restore the specifc value when im done
15:18nickchanhabiby: checkra1n ios15 wasn't coming out but i want to jailbreak iphone x so i download ghidra from github and disassembled xnu and amfi patched some stuff without really knowing what im doing and repeat until it worked
15:21habibythats really cool, when the only lang i knew was python i downloaded ghidra and started throwing random programs at it untill things made sense. i learned both C and basic assembly from ghidra
15:26ave286 has joined #asahi-re
15:34WindowPain6 has joined #asahi-re
15:39WindowPain has quit [Ping timeout: 480 seconds]
15:39WindowPain6 is now known as WindowPain
15:58WindowPain3 has joined #asahi-re
16:04WindowPain has quit [Ping timeout: 480 seconds]
16:04WindowPain3 is now known as WindowPain
16:09amarioguyhabiby: don't worry, i'm the same, i learned how to reverse engineer before i could forward engineer :P
16:10amarioguyi found it strangely quite beneficial actually to learn like that tbh, because it made sure my mental model was closer to how hardware actually operates, rather than having to dig through many abstractions
16:20ave286 has quit [Ping timeout: 480 seconds]
16:30amarioguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
16:30thunfisch has quit [Quit: frrrp!]
16:35amarioguy has joined #asahi-re
16:37lukeleppan9 has quit [Quit: Ping timeout (120 seconds)]
16:37lukeleppan9 has joined #asahi-re
16:40ave286 has joined #asahi-re
17:07ave286 has quit [Ping timeout: 480 seconds]
17:10WindowPain1 has joined #asahi-re
17:15WindowPain has quit [Ping timeout: 480 seconds]
17:15WindowPain1 is now known as WindowPain
17:18ddxtanx has joined #asahi-re
17:27pb17 has quit [Ping timeout: 480 seconds]
17:29amarioguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
17:33WindowPain0 has joined #asahi-re
17:39WindowPain has quit [Ping timeout: 480 seconds]
17:39WindowPain0 is now known as WindowPain
17:50amarioguy has joined #asahi-re
17:51pb17 has joined #asahi-re
18:20amarioguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
18:26amarioguy has joined #asahi-re
18:29ddxtanx_ has joined #asahi-re
18:29ddxtanx has quit [Read error: Connection reset by peer]
18:36amarioguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
19:07gi0 has joined #asahi-re
19:07nnym has quit [Ping timeout: 480 seconds]
19:53ave286 has joined #asahi-re
20:11WindowPain1 has joined #asahi-re
20:15WindowPain has quit [Ping timeout: 480 seconds]
20:15WindowPain1 is now known as WindowPain
20:49pb17 has quit [Ping timeout: 480 seconds]
20:49ddxtanx_ has quit [Read error: Connection reset by peer]
20:49ddxtanx_ has joined #asahi-re
20:59pb17 has joined #asahi-re
21:37gi0 has quit []
21:39WindowPain9 has joined #asahi-re
21:44WindowPain has quit [Ping timeout: 480 seconds]
21:44WindowPain9 is now known as WindowPain
21:45ddxtanx_ has quit [Read error: Connection reset by peer]
21:45ddxtanx_ has joined #asahi-re
22:01nnym has joined #asahi-re
22:04ddxtanx has joined #asahi-re
22:04ddxtanx_ has quit [Remote host closed the connection]
22:12JustinConner[m] has joined #asahi-re
22:40ddxtanx_ has joined #asahi-re
22:40ddxtanx has quit [Read error: Connection reset by peer]
23:00nnym_ has joined #asahi-re
23:00nnym has quit [Read error: Connection reset by peer]
23:02ddxtanx has joined #asahi-re
23:02ddxtanx_ has quit [Read error: Connection reset by peer]
23:07nnym_ has quit [Read error: Connection reset by peer]
23:07nnym has joined #asahi-re
23:15liangqi has joined #asahi-re
23:20nnym has quit [Remote host closed the connection]
23:20nnym has joined #asahi-re
23:25nnym has quit [Read error: Connection reset by peer]
23:25nnym has joined #asahi-re
23:33ddxtanx has quit [Ping timeout: 480 seconds]
23:51tg479 has joined #asahi-re
23:51lynndotpy72 has joined #asahi-re
23:51kubed has joined #asahi-re
23:51b074- has joined #asahi-re
23:51cyrozap_ has joined #asahi-re
23:53lynndotpy7 has quit [Quit: Ping timeout (120 seconds)]
23:53codingkoopa3218 has quit []
23:53tg47 has quit [Read error: Connection reset by peer]
23:53codingkoopa3218 has joined #asahi-re
23:53lynndotpy72 is now known as lynndotpy7
23:53madmatt06 has joined #asahi-re
23:53madmatt06 has quit [Read error: Connection reset by peer]
23:53b074_ has quit [Quit: ZNC 1.9.0+deb2build3 - https://znc.in]
23:53cyrozap has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
23:53jtingiris has quit [Read error: Connection reset by peer]
23:53michaelros44 has joined #asahi-re
23:53michaelros44 has quit [Read error: Network is unreachable]
23:53tg479 is now known as tg47
23:53kubed is now known as jtingiris
23:56nukelet132 has joined #asahi-re
23:57nukelet13 has quit [Ping timeout: 480 seconds]
23:59pb17 has quit [Ping timeout: 480 seconds]