#
…

2022-04-17

00:07millenialhacker has joined #asahi-re
00:15millenialhacker has quit [Ping timeout: 480 seconds]
01:10user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
01:19rqou_ugh, the scalers are such a huge pain to RE
01:19rqou_a bajillion different settings covering basically everything iosurface supports
01:20rqou_and the driver is implemented as a giant chain of classes inheriting from each other, one for each hardware version
01:22rqou_also each tiny group of registers is managed by its own set of classes
01:25chadmedmillennialhacker: you can write a tracer for the hypervisor to snoop memory accesses to the camera's MMIO. see the tracers in proxyclient/hv/ for examples
01:25user982492 has joined #asahi-re
01:26chadmedgenerating those mmio traces will probably be more useful than trying to decipher the censored XNU boot logs and decompiled kext since we know what interfaces it talks over
01:26rqou_anybody happen to know what a "ASE" might be? or what a "DPE" might be?
01:28chadmedin what context? the scalers?
01:28rqou_yeah, scalers
01:29chadmedmy first guess would be apple scaling engine or something to that effect
01:29chadmedas for DPE, no clue
01:31user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
02:46phiologe has joined #asahi-re
02:49PhilippvK has quit [Ping timeout: 480 seconds]
03:04user982492 has joined #asahi-re
03:35ntino^ has joined #asahi-re
04:09millenialhacker has joined #asahi-re
04:17millenialhacker has quit [Ping timeout: 480 seconds]
04:27chadmedhuh so the unmapped iova is apparently at 0x2?
04:27chadmedand the 0x18 endpoint of mesa only ever tries to touch that when you put your finger on it?
04:28chadmedobviously trying to map that fai;s because its not real or properly aligned
04:30chadmedi dont _think_ the offsets im reading out of the iova block are wrong since size always returns 0x7200 when you put your finger down
04:47jakebot has quit [Quit: The Lounge - https://thelounge.chat]
04:47jakebot has joined #asahi-re
04:47jakebot has quit []
04:48chadmedhmm so the sio dart seems to map the memory range with the fingerprint data in it _only_ while youre actively touching the sensor. if i break into the hypervisor while touching, i can add that range to RegMonitor, poll it, and get a huge dump of data
04:49chadmedbut if i try to do that after removing my finger, the pages are unmapped
04:51chadmedi still dont know where this 0x2 is coming from and what that endpoint is trying to do with it, but this is progress i guess
04:53jakebot has joined #asahi-re
05:04user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
05:16robinpmillenialhacker: where did you get those cam debug stings from ?
05:23alexsv has joined #asahi-re
05:27user982492 has joined #asahi-re
05:32millenialhacker has joined #asahi-re
05:37ntino^ has quit [Ping timeout: 480 seconds]
05:40millenialhacker has quit [Ping timeout: 480 seconds]
06:19nicolas17 has quit [Quit: Konversation terminated!]
06:30AdityaJS[m] has joined #asahi-re
06:51millenialhacker has joined #asahi-re
07:00marcanrobinp: that "security switch" is just the thing that turns off the mic/camera when the lid is closed
07:00marcanthere is no control line from the SEP on M1 Pro/Max and a good chance the one GPIO from the SEP on M1 doesn't do anything
07:00marcanabsolutely no reason to believe the SEP has anything to do with the camera on these platforms until proven otherwise
07:01millenialhacker has quit [Ping timeout: 480 seconds]
07:01marcanmillenialhacker: everything should be controlled via ISP over the RTKit interface. RTKit fundamentally uses 64-bit messages and shared memory for everything.
07:01marcanyou don't care about how the camera works, you only care about what interface ISP exposes for it over the mailbox
07:02marcanoh, they're gone...
07:02marcanI never got an ack on
07:02marcan20:41:06 < marcan> millenialhacker: reminder to read https://asahilinux.org/copyright/
07:02marcan20:41:29 < marcan> this falls under the section "Referencing other open source code" and in particular the aution about Apple-specific stuff
07:02marcancan someone tell them to stick around next time they show up? Or otherwise check logs.
07:22millenialhacker has joined #asahi-re
07:54jannaumillenialhacker: marcan> can someone tell them to stick around next time they show up? Or otherwise check logs.
07:55millenialhackerWhat do you mean?
07:56jannaumillenialhacker: marcan was speaking to you after you were disconnected
07:59millenialhackerSorry, I just closed the laptop (it was 2am) and off course it's got disconnected
08:02j`eymillenialhacker: have you read https://asahilinux.org/copyright ?
08:02jannauthis was 1 hour ago (07:00 UTC)
08:02millenialhackerAre logs falling under "Referencing other open source project" ? or marcan was referring to some bits I got from strings dumped?
08:02millenialhackerI have read it a couple of days ago
08:03marcanI meant the facetimehd driver
08:04millenialhackerOh, marcan I only paste the link for sake of research but I haven't dive into it.
08:04millenialhackerBoot-args I found was by RE init process in Apple's Facetime KEXT
08:04millenialhackerApple's Camera KEXT*
08:05marcansame thing; keep in mind that if you're reverse engineering the kext then you can't contribute to the Linux driver a priori
08:05millenialhackerI know, the clean room stuff
08:05marcanthen we're good :)
08:06millenialhacker(but nothings prevents to write my own driver as long as I do not share it, right?)
08:07millenialhackerThat was a rhetorical question :)
08:07marcanI mean you can share it too, that's your own choice; that policy is about the project as a whole
08:07marcanthe point is we're trying to keep everything developed as part of the Asahi Linux project legally in the clear
08:08marcanobviously I can't stop people from going off and doing whatever they want outside the project
08:11MajorBiscuit has joined #asahi-re
08:14millenia_ has joined #asahi-re
08:15millenia_ has quit [Remote host closed the connection]
08:15millenia_ has joined #asahi-re
08:21millenialhacker has quit [Ping timeout: 480 seconds]
08:33user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
08:57millenia_ has quit []
08:57millenialhacker has joined #asahi-re
09:04MajorBiscuit has quit [Ping timeout: 480 seconds]
09:11alexsv has quit [Ping timeout: 480 seconds]
10:03millenialhacker has quit [Remote host closed the connection]
10:04millenialhacker has joined #asahi-re
10:12millenialhacker has quit [Ping timeout: 480 seconds]
10:15millenialhacker has joined #asahi-re
10:17millenia_ has joined #asahi-re
10:17millenialhacker has quit [Read error: Connection reset by peer]
10:39millenia_ has quit [Remote host closed the connection]
10:49MajorBiscuit has joined #asahi-re
10:55millenialhacker has joined #asahi-re
10:59chadmedoh the command buffer for the fingerprint sensor is encrypted in both directions after the power on sequence
11:02svenyeah, that’s what I’d expect
11:04chadmedyeah i was just confused as to why there was no discernible pattern in any of the data at all beyond the addresses it accesses and got gaslit into going on a goose chase
11:04chadmedwell at least i kind of understand the format and the power on sequence but i think decrypting the command buffer and getting any useful data out of it is probably beyond me :(
11:05sventhe command buffer probably directly comes from SEP
11:06svenif I were to design this the xnu driver would just be a dumb shin that forwards messages between SEP and the sensor
11:08chadmedits interesting because theres actually two drivers for xnu, one does in fact just look like a shim for the SEP but the other is quite large and kind of does what ive been trying to do in my crappy little tracer and seems to handle the low level operation of the device
11:08chadmedthe SEP shim seems to do the actual encryption etc and this bigger one actually sends/receives the data i think
11:08chadmedalso handles power gating, command syncrhonisation, etc
11:09chadmedoh well good to know i was (kind of) on the right track but theres probably no point in going any further without the SEP to talk to
11:12svenit's mostly about that sks endpoint but you should at least get the data buffers for sbio as well
11:13chadmedooh yes the fun continues :D
11:13svenlast time i used it was a year ago or so so it might also need some changes
11:14pg12 has quit [Quit: pg12]
11:19millenialhacker has quit [Remote host closed the connection]
11:19millenialhacker has joined #asahi-re
11:31pg12 has joined #asahi-re
12:09MajorBiscuit has quit [Ping timeout: 480 seconds]
12:32MajorBiscuit has joined #asahi-re
12:53MajorBiscuit has quit [Ping timeout: 480 seconds]
12:58akemin_dayo has quit [Ping timeout: 480 seconds]
13:48millenia_ has joined #asahi-re
13:55the_lanetly_052__ has joined #asahi-re
13:55millenialhacker has quit [Ping timeout: 480 seconds]
14:01the_lanetly_052___ has quit [Ping timeout: 480 seconds]
14:02millenia_ has quit [Remote host closed the connection]
14:02millenialhacker has joined #asahi-re
14:03millenia_ has joined #asahi-re
14:10millenialhacker has quit [Ping timeout: 480 seconds]
14:39millenia_ has quit []
14:45AurlienBidon[m] has joined #asahi-re
14:55millenialhacker has joined #asahi-re
14:58millenialhacker has quit []
15:00millenialhacker has joined #asahi-re
15:02millenialhacker has quit []
15:14m42uko has quit [Remote host closed the connection]
15:14m42uko has joined #asahi-re
15:20m42uko has quit [Quit: Leaving.]
15:20m42uko has joined #asahi-re
15:23m42uko has quit []
15:23m42uko has joined #asahi-re
15:25millenialhacker has joined #asahi-re
15:29millenialhacker has quit [Remote host closed the connection]
15:32millenialhacker has joined #asahi-re
15:35m42uko has quit [Quit: Leaving.]
15:35m42uko has joined #asahi-re
15:38m42uko has quit []
15:38m42uko has joined #asahi-re
15:41m42uko has quit []
15:41m42uko has joined #asahi-re
15:44m42uko has quit []
15:44m42uko has joined #asahi-re
15:48m42uko has quit []
15:48m42uko has joined #asahi-re
15:50herbas has joined #asahi-re
15:53herbas has quit []
15:54millenialhacker has quit [Ping timeout: 480 seconds]
16:01millenialhacker has joined #asahi-re
16:04m42uko has quit [Quit: Leaving.]
16:04m42uko has joined #asahi-re
16:24MajorBiscuit has joined #asahi-re
17:18MajorBiscuit has quit [Ping timeout: 480 seconds]
17:53MajorBiscuit has joined #asahi-re
18:10millenialhacker has quit [Remote host closed the connection]
18:10millenialhacker has joined #asahi-re
18:36MajorBiscuit has quit [Ping timeout: 480 seconds]
18:51millenialhacker has quit [Remote host closed the connection]
18:53millenialhacker has joined #asahi-re
18:59millenialhacker has quit [Remote host closed the connection]
19:18alexsv has joined #asahi-re
19:28herbas_ has joined #asahi-re
19:31user982492 has joined #asahi-re
19:48nicolas17 has joined #asahi-re
19:52herbas_ has quit [Quit: herbas_]
20:15user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:25user982492 has joined #asahi-re
20:31user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:33user982492 has joined #asahi-re
20:34user982492 has quit []
20:42bpye has quit [Read error: No route to host]
20:56bpye has joined #asahi-re
21:22MajorBiscuit has joined #asahi-re
21:55MajorBiscuit has quit [Quit: WeeChat 3.4]
22:00yrlf has quit [Quit: The Lounge - https://thelounge.chat]
22:01yrlf has joined #asahi-re
22:10user982492 has joined #asahi-re
22:18kelito has joined #asahi-re
22:19kelito has quit []
22:20millenialhacker has joined #asahi-re
22:22millenialhacker has quit [Remote host closed the connection]
22:26millenialhacker has joined #asahi-re
22:36alexsv has quit [Ping timeout: 480 seconds]
22:37millenialhacker has quit [Ping timeout: 480 seconds]
22:41Retr0id8 has joined #asahi-re
22:44m5zs7k has quit []
22:47Retr0id has quit [Ping timeout: 480 seconds]
22:47Retr0id8 is now known as Retr0id
…