#asahi-re · 2025-04-24 12:08
nickchanso on boot do not apply tracing patches till xnu rebases its pc when branching into shellcode from a hooked ret#asahi-re · 2025-04-24 12:07
nickchannow xnu uses ttbr1 so restoring m1n1 context is not a big problem in general... just like dealing with yet another userland thread... problem is of course before xnu rebases its pc to high address#asahi-re · 2025-04-24 12:04
nickchanprevious stage is pongoOS and the security and seprom stuff is typical jailbreak patches nothing special there#asahi-re · 2025-04-06 13:14
nickchanback then we bruteforce#asahi-re · 2025-04-06 13:14
nickchanso it's in the adt these days interesting#asahi-re · 2025-04-06 13:13
nickchanmischa85: yeah#asahi-re · 2025-04-06 13:11
nickchanhave you tried every 0x4000 from pmgr base to a max of 0x100000?#asahi-re · 2025-04-06 13:10
nickchanmischa85: maybe start offset is wrong?#asahi-re · 2025-04-06 13:07
nickchanokay so it's iboot that did that#asahi-re · 2025-04-06 13:06
nickchanmischa85: you have not attempted to start secondaries in the same boot right#asahi-re · 2025-04-06 13:03
nickchansven: yep and it is secondary entry point as well#asahi-re · 2025-04-06 13:01
nickchanbut on older socs bit 11 can be configured #asahi-re · 2025-04-06 13:01
nickchanit might be because of alignment requirements on that reg #asahi-re · 2025-04-06 12:59
nickchanah wait#asahi-re · 2025-04-06 12:59
nickchanit's almost as if it's designed for m1n1#asahi-re · 2025-04-06 12:58
nickchanbecause entry point is +0x800#asahi-re · 2025-04-06 12:58
nickchanokay so that's right at m1n1 base and apple goes out of the way to make sure it's not the entry point *either*#asahi-re · 2025-04-06 12:57
nickchanmischa85: hmmm... is that inside m1n1?#asahi-re · 2025-04-06 12:56
nickchanokay so supposed put code at 0x10005d68000 and supposedly all other cores would end up there#asahi-re · 2025-04-06 12:55
nickchansven: it's all locked!#asahi-re · 2025-04-06 12:52
nickchannot sure which core m4 boots on but check that as well#asahi-re · 2025-04-06 12:52
nickchanmischa85: maybe do read64(u.adt["/cpus/cpu1"].cpu_impl_reg[0]) following sven's advice#asahi-re · 2025-04-06 12:35
nickchanthat should be the IORVBAR#asahi-re · 2025-04-06 12:35
nickchansven: /cpus/cpu<n>/cpu-impl-reg#asahi-re · 2025-04-06 12:32
nickchansven: what do you think#asahi-re · 2025-04-06 12:31
nickchanapple used 3 CTRR regions for it but previous chips can only do 2#asahi-re · 2025-04-06 12:31
nickchanso like#asahi-re · 2025-04-06 12:31
nickchananyways#asahi-re · 2025-04-06 12:30
nickchanokay that's _EL1 but since VHE is always active that should just be _EL2#asahi-re · 2025-04-06 12:28
nickchanand B#asahi-re · 2025-04-06 12:26
nickchantry the _EL2 registers#asahi-re · 2025-04-06 12:26
nickchanit's the vhe register aliases#asahi-re · 2025-04-06 12:26
nickchanof course they should be 0#asahi-re · 2025-04-06 12:26
nickchanmischa85: EL12 is EL1#asahi-re · 2025-04-06 12:23
nickchanmischa85: how about A and B?#asahi-re · 2025-04-06 12:17
nickchanyou can also mrs((3,0,11,6,6)) in the shell#asahi-re · 2025-04-06 11:58
nickchanEL1 restriction and EL2 restrictions limit instruction fetches, DRAM restrictions ensure memory ranges cannot be written to#asahi-re · 2025-04-06 11:57
nickchanbut m1n1's apple_regs.json makes absolutely no mention of anything related to DRAM restrictions#asahi-re · 2025-04-06 11:57
nickchanin my understanding CTRR should have multiple parts, EL1 restriction, EL2 restriction and DRAM restriction#asahi-re · 2025-04-06 11:55
nickchanalso#asahi-re · 2025-04-06 11:54
nickchanchadmed: they will not be disabled in that situation but it would be EL2 under sptm#asahi-re · 2025-04-06 11:51
nickchanbut of course if isa extensions are being disable it's also possible that those regs just don' twork#asahi-re · 2025-04-06 11:50
nickchanerm s3_0_c11_c7_1 should be CTRR_D_UPR_EL2#asahi-re · 2025-04-06 11:49
nickchanand s3_0_c11_c7_0 for CTRR_D_LWR_EL2, s3_0_c11_c7_1 for CTRR_D_LWR_EL2#asahi-re · 2025-04-06 11:48
nickchantry s3_0_c11_c6_6 for CTRR_C_LWR_EL2 and s3_0_c11_c6_7 for CTRR_C_UPR_EL2#asahi-re · 2025-04-06 11:47
nickchanokay so#asahi-re · 2025-04-06 11:44
nickchanbut m4 supposedly also have C and D#asahi-re · 2025-04-06 11:44
nickchanso m1n1's apple_regs.json already has CTRR A and B#asahi-re · 2025-04-06 11:44
nickchanhold#asahi-re · 2025-04-06 11:43
nickchanit's cpu registers so it should be possible