#asahi-re · 2022-02-08 01:51
marcanthis is *especially* true for big unknown subsystems like graphics#asahi-re · 2022-02-08 01:50
marcansee the policy#asahi-re · 2022-02-08 01:50
marcanalso reminder that looking at kext code disqualifies you from working on the linux driver / etc unless I personally know I can trust your reversing hygiene#asahi-re · 2022-02-08 01:49
marcanchadmed: kexts aren't obfuscated, they're just like that the way iokit works#asahi-re · 2022-02-08 01:03
phireI've seen no reason to suspect that (yet). Other than the fact I can't find out how it's communicating#asahi-re · 2022-02-08 00:59
alyssacan it be worse than the DCP firmware? ;)#asahi-re · 2022-02-08 00:58
alyssamarcan: ^^#asahi-re · 2022-02-08 00:05
phireI think my next step is to list out every IO range that gets mapped into the UAT iommu, and see if the CPU is writing to any of them#asahi-re · 2022-02-08 00:03
phirethat, and I shouldn't need to#asahi-re · 2022-02-08 00:03
phirepart of the reason I'm really not wanting to go down that route#asahi-re · 2022-02-08 00:02
chadmedphire: i had a go at dumping AGXG13X in ghidra a few days ago. its full of hard offsets and random jumps to data and generally quite well obfuscated from what i could tell. youll also need to pull in and poke around in a whole bunch of IOKit kexts that it seems to depend on#asahi-re · 2022-02-07 21:38
saddsaasdhttps://worldhacker.org/index.php/irc-server/ COME TO Us , Let's Learn 0day together ... . everyone welcome , after audit ... . United Nations Candidate open now ...#asahi-re · 2022-02-07 08:13
phireThe handoff region seems to deal exclusively with page tables from PPL#asahi-re · 2022-02-07 08:12
phireWhat I can't find is work submission#asahi-re · 2022-02-07 08:11
phireI think I actually understand enough about the PPL stuff (for now)#asahi-re · 2022-02-07 08:10
sveni haven't looked at those things and i don't know if you want to but they at least contain more strings#asahi-re · 2022-02-07 08:09
svenphire: fwiw, there's an old XNU release where Apple included LLVM bitcode for stuff that's running inside PPL. among other things it contains uat.o and uat_ppl_handoff.o#asahi-re · 2022-02-06 12:46
alyssaoh, nice :)#asahi-re · 2022-02-06 04:51
phire(spotted it looking at kernel strings)#asahi-re · 2022-02-06 04:50
phirethere is a iouat_debug kernel argument#asahi-re · 2022-02-06 04:50
phireah... useful#asahi-re · 2022-02-05 13:22
alyssaWoo!#asahi-re · 2022-02-05 13:11
phireI confirmed that the 0x1500000000 pointers match the range of gpu VAs that I see from userspace#asahi-re · 2022-02-05 13:10
phireYeah, progress. Just got to understand how these page tables work and then I can trace them correctly.#asahi-re · 2022-02-05 13:07
alyssaphire: well it sounds like you're making great progress then =D#asahi-re · 2022-02-05 13:05
alyssaahh#asahi-re · 2022-02-05 13:04
sventhe actual DART, SART and NVMMU code is also in there#asahi-re · 2022-02-05 13:04
sventhe only code allowed to mess with any pagetables#asahi-re · 2022-02-05 13:04
svenpage protection layer, their kernel-inside-their-kernel running in GL2#asahi-re · 2022-02-05 13:03
alyssasven: PPL?#asahi-re · 2022-02-05 07:29
phireyeah, makes sense#asahi-re · 2022-02-05 07:02
svenoh… duh. Ofc the actual pagetable code would be inside PPL in the actual kernel#asahi-re · 2022-02-05 05:02
phireI think this might be a page table: https://gist.github.com/phire/00ddb0d6ffa021d5a1676561928ea8cc#asahi-re · 2022-02-05 02:48
phirelots of mentions about UAT (IOUAT) which seems to be directly related to how these gfx-shared/gpu-shared/gfx-handoff regions get mapped#asahi-re · 2022-02-05 02:38
phireOh, there are more gpu related strings in the actual kernel#asahi-re · 2022-02-05 01:41
phirebut the AGXG13X.kext strings don't support that theory#asahi-re · 2022-02-05 01:35
phireI suspect it's just a smaller DART-like thing that only does simple block translations, and enables the AGX firmware to access those shared regions#asahi-re · 2022-02-05 01:34
phirethe other one belongs to admac-sio, which is audio#asahi-re · 2022-02-05 01:33
phirethree of which are these shared memory regions in sgx#asahi-re · 2022-02-05 01:33
phire I found mention of GUAT in the device tree. It the name for four memory carvouts#asahi-re · 2022-02-05 01:30
alyssaor, backed by GART anyway#asahi-re · 2022-02-05 01:30
alyssaphire: I /think/ that's gart but might be wrong#asahi-re · 2022-02-05 01:02
phireIs this just another name for GART? Or is there more than one address translator that I can't find#asahi-re · 2022-02-05 01:01
phireThe strings also mention AGXUnifiedAddressTranslator#asahi-re · 2022-02-04 16:03
phiremight need to RE the kext#asahi-re · 2022-02-04 16:02
phireso I need to work out where GART is. though I probally should sleep at some point#asahi-re · 2022-02-04 16:00
phireyes, that's the leading theory#asahi-re · 2022-02-04 15:59
alyssaso it's a GART VA maybe#asahi-re · 2022-02-04 15:59
phirereading it actually crashes m1n1#asahi-re · 2022-02-04 15:59
alyssahm