#
✕ nick:marcan
#asahi · 2021-07-22 17:08
marcanin proxyutils.py
#asahi · 2021-07-22 17:08
marcanChainsaw: look for self.heap_base += 128 * 1024 * 1024 # We leave 128MB for m1n1 heap
#asahi · 2021-07-22 17:07
marcanunless it's already overflowing and corrupting
#asahi · 2021-07-22 17:07
marcanwell... as I said this is interesting because we don't actually have a heap top
#asahi · 2021-07-22 17:07
marcanwith concatenated compression
#asahi · 2021-07-22 17:07
marcanI seem to recall not having the CPIO trailer in would cause issues
#asahi · 2021-07-22 17:06
marcanhm
#asahi · 2021-07-22 17:06
marcansven: and probably not compressed
#asahi · 2021-07-22 17:05
marcaninteresting
#asahi · 2021-07-22 17:02
marcanI don't think we check for that
#asahi · 2021-07-22 17:02
marcanbut... I actually kind of would expect it to silently overflow
#asahi · 2021-07-22 17:01
marcanthough yeah, m1n1 heap is 128MB and the cpio code started allocating the entire initramfs there again I think
#asahi · 2021-07-22 17:00
marcanhm, what failure?
#asahi · 2021-07-22 16:57
marcanthis is with linux.py?
#asahi · 2021-07-22 16:57
marcanhow big is it?
#asahi · 2021-07-22 16:57
marcanha
#asahi · 2021-07-22 16:55
marcanI remember poring over the linux initrd uncompress code until I made sense of this for ps4-kexec
#asahi · 2021-07-22 16:55
marcanif that works then I'm pretty sure this is it
#asahi · 2021-07-22 16:55
marcancth451_desktop: quick test, load your initrd uncompressed
#asahi · 2021-07-22 16:54
marcanI think we aren't, that might explain why a concatenated initrd wouldn't work
#asahi · 2021-07-22 16:54
marcanare we doing that?
#asahi · 2021-07-22 16:54
marcanI remember some cpio shenanigans from when I did ps4-kexec, related to the trailer
#asahi · 2021-07-22 16:52
marcan(cc sven)
#asahi · 2021-07-22 16:52
marcanI actually haven't tried a linux boot since that patch, I should
#asahi · 2021-07-22 16:52
marcancth451_desktop: define sideloading? there was code recently added to add the SEPFW to the initrd, maybe that is broken or maybe the initrd you used doesn't work and that's all there is :)
#asahi · 2021-07-21 01:31
marcanthere could be a USB protocol issue with your setup somehow, but it's pretty hard to debug without tools (e.g. serial port and/or USB protocol analyzer) :(
#asahi · 2021-07-21 01:30
marcancth451_desktop: that sounds odd. maybe try running usbmon (or wireshark) while you attach the device?
#asahi · 2021-07-20 09:20
marcan\o/
#asahi · 2021-07-19 07:22
marcanand their install/upgrade/etc flows have tons of corner cases
#asahi · 2021-07-19 07:22
marcanbut yeah, Apple docs on this are terrible
#asahi · 2021-07-19 07:22
marcanTheLink: yeah we mostly know about that
#asahi · 2021-07-16 11:22
marcanif I can't then that's a whole *different* IPC/marshaling system they're using there, because of course
#asahi · 2021-07-16 11:21
marcanif I can just ignore them, then I think next week I should have basic init/page flipping working
#asahi · 2021-07-16 11:21
marcanyeah, the big remaining unknown is whether any of the other endpoints (dcpav/etc) matter, or if I can just ignore them
#asahi · 2021-07-16 11:08
marcanhopefully I'll be back on track; I need to get the GFX ASC reversing started soon (which I want to do once a basic DCP PoC works) or bloom might get tired of waiting and start trying to do it herself ;)
#asahi · 2021-07-16 11:07
marcanthanks!
#asahi · 2021-07-16 11:06
marcanif it does then that might cause yet another couple days of delay
#asahi · 2021-07-16 11:05
marcanif it doesn't and I manage to wrap up some deadline stuff this weekend (I need to prepare challenges for a nonprofit CTF I help run remotely in spain...) quickly enough, sunday maybe
#asahi · 2021-07-16 11:05
marcantomorrow I'm getting vaccinated... so part of it depends on whether that KOs me or not
#asahi · 2021-07-16 11:04
marcanFireFox317: not today, busy day, but let's see if next week ends up productive
#asahi · 2021-07-15 05:18
marcanstreaming in a bit: https://youtu.be/xga7i_MR6Nk
#asahi · 2021-07-13 09:12
marcanbecause obviousy iBoot needs to use it
#asahi · 2021-07-13 09:12
marcansven: so when we get it it's in that sleep state?
#asahi · 2021-07-13 02:07
marcanI wonder if there is a "shutdown syslog" command?
#asahi · 2021-07-13 02:07
marcanso I'm going to have to implement live DART takeover for that
#asahi · 2021-07-13 02:07
marcanthat said, I don't want to reboot DCP
#asahi · 2021-07-13 02:06
marcanand yeah, it's probably cleanest to just reboot it
#asahi · 2021-07-13 02:06
marcanso there's no reason not to instantiate it for nvme too
#asahi · 2021-07-13 02:06
marcanfor all the other copros
#asahi · 2021-07-13 02:06
marcansven: we need a mailbox driver anyway

plus ›