#asahi-re · 2026-01-26 21:22
amarioguybeing straight up here, my binary RE of iBoot for the register was hitting a dead-end personally so i think that's gonna be a more productive approach than bashing my head for hours trying to figure out what some register maps to#asahi-re · 2026-01-26 21:20
amarioguywe only care about read here, because we can always test such an MSR on an m3 machine or smth#asahi-re · 2026-01-26 21:15
amarioguyif we're pretty sure it's an MSR (which i don't want to rule out) then that might be a way to go about it#asahi-re · 2026-01-26 21:14
amarioguywe can at least infer the state difference if it is MSR bound or not#asahi-re · 2026-01-26 21:13
amarioguymostly bringing this up because even if tracing isn't gonna be possible...we can just dump all MSRs can we?#asahi-re · 2026-01-26 21:13
amarioguymaking m1n1 boot as Mach-O again#asahi-re · 2026-01-26 21:12
amarioguyi think one thing we should try doing#asahi-re · 2026-01-26 21:12
amarioguythinking about it a bit more#asahi-re · 2026-01-26 21:12
amarioguyhmmm#asahi-re · 2026-01-18 01:07
amarioguymakes so many function flows hard to follow...even if ik it's probably better speed wise#asahi-re · 2026-01-18 01:06
amarioguyfunction outlining is the *worst*#asahi-re · 2026-01-15 00:34
amarioguytho that callback soup still worries me a bit...#asahi-re · 2026-01-15 00:31
amarioguychaos_princess: in case you were following along, function that i found this in is 0x10081AF2F64, offset 0x4B4#asahi-re · 2026-01-15 00:30
amarioguy0x2100F8100#asahi-re · 2026-01-15 00:30
amarioguylooks like there's this register that seems to be in the same space as the RVBAR registers#asahi-re · 2026-01-15 00:30
amarioguyok ok, so after doing some more digging the past day or so#asahi-re · 2026-01-15 00:27
amarioguyi'm thinking the presence of some of the segments (that are not present in the raw image case) are what signal a mach-o/sptm compatible boot object vs a raw one#asahi-re · 2026-01-15 00:27
amarioguyat least not immediate#asahi-re · 2026-01-15 00:27
amarioguychaos_princess, nnym: just checked both LPs, yea doesn't seem to be anything differentiating it#asahi-re · 2026-01-14 20:57
amarioguybputil can elide some fields from its output#asahi-re · 2026-01-14 20:57
amarioguyi'd err on dumping the asn.1 of the local policy directly#asahi-re · 2026-01-14 20:56
amarioguyright#asahi-re · 2026-01-14 20:56
amarioguyanyways, thanks for this dump, will help me understand it better#asahi-re · 2026-01-14 20:55
amarioguyhmm#asahi-re · 2026-01-14 20:55
amarioguyso the differentiator here doesn't seem to be a boolean or something (which is bizarre), rather looks like the kext collection has many more things in the payload properties section#asahi-re · 2026-01-14 14:47
amarioguyok nvm i saw the new entry#asahi-re · 2026-01-14 14:45
amarioguy(well just the asn.1 stuff, i obviously don't need the binary contents of the file)#asahi-re · 2026-01-14 14:44
amarioguywith openssl or smth#asahi-re · 2026-01-14 14:44
amarioguynnym: kinda need an ASN.1 dump of the whole file#asahi-re · 2026-01-13 19:30
amarioguymaybe it's something similar?#asahi-re · 2026-01-13 19:30
amarioguychaos_princess: i looked at XNU source, i think on some older platforms (this was define APPLETYPHOON) there was a boot-arg to set something called "defeature" registers#asahi-re · 2026-01-13 19:29
amarioguymachine j616c#asahi-re · 2026-01-13 19:29
amarioguyiBoot-11881.41.5 stage 2 - corresponding to 24B2083#asahi-re · 2026-01-13 19:27
amarioguyit's locked out by iBoot itself i believe, lemme open the db again today, but i searched for byte sequence d5 instructions (the MSR encoding) in iBoot, as well as "MSR" text here, saw no mention of the SPRR or GXF regs#asahi-re · 2026-01-13 19:22
amarioguysven: yea i think SPTM is what sets it up in that case#asahi-re · 2026-01-13 00:51
amarioguydid a search for the msr instruction, doesn't *seem* to hit any of the SPRR or GXF msrs#asahi-re · 2026-01-13 00:45
amarioguyit doesn't look like iboot touches the GXF msrs at least#asahi-re · 2026-01-12 21:33
amarioguyprobably something *in there* is going to spill the difference#asahi-re · 2026-01-12 21:33
amarioguyi'd actually imagine we want the manifest/object properties more than just the tag#asahi-re · 2026-01-12 21:25
amarioguythe function that actually consumes this bit's value is full of function callbacks and other lovely things#asahi-re · 2026-01-12 21:24
amarioguythis bitmask is later then checked in the function that prepares xnu load, disables GID keys, etc#asahi-re · 2026-01-12 21:24
amarioguyi'm seeing some check here where if a kernelcache with tag `fuos` (the tag for kmutil configure-boot objects from looking at the one on my m2 pro mbp) succeeds load, if some bool on the stack is 0 then it sets bit 40 of some bitmask#asahi-re · 2026-01-12 20:27
amarioguysince stage 1 doesn't know whether it's custom xnu or raw boot object and shouldn't care about such#asahi-re · 2026-01-12 20:27
amarioguystage 2 mostly, my thought is that stage 2 would have the actual disablement#asahi-re · 2026-01-12 20:25
amarioguysince if it's undefined altogether, i don't think we're gonna be looking for a lock msr here is my thing#asahi-re · 2026-01-12 20:24
amarioguyknowing that answer is gonna help me know what to be looking for#asahi-re · 2026-01-12 20:20
amarioguyor do they become undefined altogether?#asahi-re · 2026-01-12 20:20
amarioguychaos_princess: btw, quick question, when booting m4 with raw boot object mode, do the GXF registers become read-only#asahi-re · 2026-01-12 20:15
amarioguyah er, this is done *right before* the jump to next stage stuff#asahi-re · 2026-01-12 20:14
amarioguythe other properties checked are sep related idk if they matter too much in our case tbf