2021-08-28
00:02yuyichao has quit [Ping timeout: 480 seconds]
01:20Emantor has quit [Quit: ZNC - http://znc.in]
01:20Emantor has joined #asahi-dev
01:34DarkShadow44 has quit [Quit: ZNC - https://znc.in]
01:46DarkShadow44 has joined #asahi-dev
01:47DarkShadow44 has quit [Quit: ZNC - https://znc.in]
01:51JTL has quit [Quit: WeeChat 2.9]
01:51JTL has joined #asahi-dev
01:54DarkShadow44 has joined #asahi-dev
02:07Chainsaw has quit [Read error: Connection reset by peer]
02:07Chainsaw has joined #asahi-dev
02:38alyssabut, e.g. I think the random kernel VA floating around in the DCP shmem are opaque handles for XNU to use later / as debug / something like that.
02:38alyssaat least on my version of dcp fw, zeroing out the addr field in mgr.swap_start works fine
02:39alyssathe userspace<--->kernelspace ABI for IOGPU does this sort of thing (with opaque userspace VAs flying around), could be similar
02:39alyssaalthough there are of course extant security questions regardless of its use, if we allow the possibility of malicious coprocessor firmware
02:42quarkyalice has quit [Remote host closed the connection]
02:43quarkyalice has joined #asahi-dev
02:50alyssa(I *am* quite curious about Apple's threat model for coprocessors, which necessarily is different from our own.)
03:02PhilippvK has joined #asahi-dev
03:05phiologe has quit [Ping timeout: 480 seconds]
04:47amw has quit [Ping timeout: 480 seconds]
05:28amw has joined #asahi-dev
06:32marcanthe threat model is obviously that copros shouldn't ever see kernel VAs and the kernel shouldn't ever trust copros
06:33marcanif you look at IOSurface - those 64-bit bools are hidden pointers to the previous embedded fields
06:34marcanthe marshaling code turns them into a bool to signify non-nullness and then on the other side puts back the pointer to the preceding structure
06:36marcanleaking kernel VAs breaks kASLR if a copro is compromised, and apple are big on kASLR, so that is definitely not intended
06:48chadmed has quit [Remote host closed the connection]
06:48chadmed has joined #asahi-dev
06:49bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
07:55quarkyalice has quit [Remote host closed the connection]
07:58quarkyalice has joined #asahi-dev
08:15aleasto has joined #asahi-dev
08:38nico_32 has quit [Ping timeout: 480 seconds]
08:41pipcet[m]I assume the crashlog location is locked somehow and you can't change it from its locked iova?
08:43svenespecially (well, on SMC at least) the syslog does it correctly: it gets an address and never replies.
08:46nico_32 has joined #asahi-dev
08:48jbowen has joined #asahi-dev
08:56jbowen has quit [Ping timeout: 483 seconds]
10:36j_eyanyone know where to find the kernelcache on macOS? System/Library/Caches/com.apple.kernelcaches/ is empty
10:45j_eyanyone seen this stream error when trying to chainload macOS? https://paste.gg/p/anonymous/349b8a37b7294de380c9db2c4227ec60
10:55svenhrm, i guess i should finally submit that 4k fixes. i just noticed i've been using them for the past month or so with 4k pages and nothing broke :D
10:57sventhe good news is that nvme works just fine with 4k pages, but that was kinda expected anyway :D
11:46yuyichao has joined #asahi-dev
11:53gladiac has quit [Quit: k thx bye]
13:59svenwill probably send them later today and make sure to cc you. then you can even try yourself ;)
15:55alyssasven: I can't believe I'm suggesting this but it might be worth seeing if you can do a frankenkernel smashing together your IOMMU patches with corellium's repo to see if thunderbolt 4k pages works
15:57alyssa"Pretend that iommu_dma_get_sgtable is not implemented since I can neither test this function right now nor do I fully understand how it is used."
15:59svenand then there's also https://github.com/torvalds/linux/blob/master/kernel/dma/mapping.c#L317
16:02svenhah, and the commit message that introduced (well, move it there) mentions "The comments are spot on and should be near the central API"
16:19svenso i *think* that function actually doesn't need any change, but i'd rather wait until something runs into that and fails in an obvious way than just hoping it's correct
16:20svenalyssa: https://github.com/torvalds/linux/blob/master/drivers/gpu/drm/drm_gem_cma_helper.c#L407 👀
16:30tophevich[m]It's not a good example, but it might help in the future, you can mark line ranges: https://github.com/torvalds/linux/blob/master/drivers/gpu/drm/drm_gem_cma_helper.c#L407-L408
16:40marcanfixed the DCP modesetting issue: https://github.com/AsahiLinux/m1n1/commit/0584200aaf5297e8e417d31ffb4d130669dbec3b
16:50svenhrm, now that i'm reading the swiotlb code again it seems that the untrusted stuff won't work correctly
16:58j_eymarcan: "m1n1.fw.asc: Handle DARTless ASCs" nice! I had started to try hack that to get it working
18:16pipcet[m]and I can switch my framebuffer to 4k@60hz now, with ugly hacks which I hope you guys can avoid :-)
18:24peerp[m] has joined #asahi-dev
18:42pipcet[m]alyssa: (sorry for working in parallel, this was an "if I can't get 4k out of this mini I better return it quick" thing)
18:44pipcet[m]I wasn't expecting a working driver anytime soon, but I'm confident now that we can have one, so time to think of a name for the mini ;)
19:01nesnass has joined #asahi-dev
19:03j_eypipcet[m]: you can look here for the No Warranties branches https://github.com/mu-one/linux/branches
19:16nesnass has quit [Quit: Igloo IRC: https://iglooirc.com]
19:25nesnass has joined #asahi-dev
19:34nesnass has quit [Ping timeout: 480 seconds]
20:16quarkyalice has quit [Remote host closed the connection]
20:17quarkyalice has joined #asahi-dev
21:08quarkyalice has quit [Remote host closed the connection]
21:09quarkyalice has joined #asahi-dev
22:02JTL has quit [Quit: WeeChat 2.9]
22:02JTL has joined #asahi-dev
22:02JTL has quit []
22:02JTL has joined #asahi-dev
22:03JTL has quit []
22:03JTL has joined #asahi-dev
22:24marcanpipcet[m]: the question is whether UPPipe2::map_buf() always is supposed to go to piodma or not
22:42aleasto has quit [Quit: Konversation terminated!]
23:05kendfinger has quit [Read error: Connection reset by peer]
23:06kendfinger has joined #asahi-dev