#
…

2022-06-23

00:55IcaroDextris[m]<probie> "gnome-terminal fails to start..." <- Is a locale issue
00:56IcaroDextris[m]<j`ey> "noone else has mentioned gnome-..." <- Is a locale issue, event if you set it correctly the first time from tty. The fix is to regenerate locale
01:14probieIf I want to run emacs, what do I need to do? Is there a standalone patch I can apply to a stable release, or do I need to pull master?
01:17psykose28 should work
01:18psykoseif you want a single patch onto something before, iirc it's https://lists.gnu.org/archive/html/bug-gnu-emacs/2021-03/msg02131.html
01:26probieNeat. The Asahi Linux website had me worried for no reason
01:32riker77_ has joined #asahi
01:38riker77 has quit [Ping timeout: 480 seconds]
01:38riker77_ is now known as riker77
02:26phiologe has joined #asahi
02:29PhilippvK has quit [Ping timeout: 480 seconds]
03:15marcanopticron: I have no idea where I got the bunny model, assuming you mean https://github.com/marcan/spmp/blob/master/minimp/bunny.h
03:15marcanthat was like 13 years ago
03:16marcanit's lower poly count than the glmark2 one though, no idea if it was like that to begin with or I decimated it in Blender or something
03:23nicolas17I wonder if you can buy such a bunny
03:52AlbertoBasaglia[m]<VinDuv> "I think it was the glmark2 model..." <- ty
04:01marvin24 has joined #asahi
04:05marvin24_ has quit [Ping timeout: 480 seconds]
04:17jcole has joined #asahi
04:27tel is now known as q1182
04:34waltcranston[m] has joined #asahi
04:35waltcranston[m] has left #asahi [#asahi]
04:53confusomu has quit [Remote host closed the connection]
05:09witchbutter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
05:20skoobasteeve has joined #asahi
05:29skoobasteeve_ has joined #asahi
05:31skoobasteeve has quit [Ping timeout: 480 seconds]
05:44ciggi has quit [Read error: Connection reset by peer]
05:48WindowPain_ has quit [Ping timeout: 480 seconds]
05:48ciggi has joined #asahi
05:56skoobasteeve_ has quit [Ping timeout: 480 seconds]
05:56skoobasteeve has joined #asahi
05:57artemist0 has joined #asahi
06:01jluthra has quit [Remote host closed the connection]
06:01jluthra has joined #asahi
06:03nicolas17 has quit [Quit: Konversation terminated!]
06:08skoobasteeve has quit [Ping timeout: 480 seconds]
06:10skoobasteeve has joined #asahi
06:19artemist0 has quit [Ping timeout: 480 seconds]
06:21artemist has joined #asahi
06:27MajorBiscuit has joined #asahi
06:46skoobasteeve has quit [Read error: Connection reset by peer]
06:47skoobasteeve has joined #asahi
06:53guillaume_g has joined #asahi
07:24MajorBiscuit has quit [Quit: WeeChat 3.5]
07:25MajorBiscuit has joined #asahi
07:30mpsktz_[m]: new openzfs is released, maybe you could now try to build it with asahi kernel on alpine
07:40tomc has quit [Ping timeout: 480 seconds]
08:02psykose has quit [Remote host closed the connection]
08:02psykose has joined #asahi
08:18tomc has joined #asahi
08:34artemist has quit [Ping timeout: 480 seconds]
08:34skoobasteeve has quit [Ping timeout: 480 seconds]
08:36tomc_ has joined #asahi
08:43tomc has quit [Ping timeout: 480 seconds]
09:31ChaosPrincess has quit [Quit: WeeChat 3.5]
09:32ChaosPrincess has joined #asahi
09:38Ry_Darcy has quit [Remote host closed the connection]
09:38artemist has joined #asahi
09:41loki_val has joined #asahi
09:48crabbedhaloablut has quit [Ping timeout: 480 seconds]
10:21arnd has joined #asahi
10:51c10l has quit [Quit: Bye o/]
10:54c10l has joined #asahi
11:40minecrell5 has joined #asahi
11:44ciggi has quit [Read error: Connection reset by peer]
11:48ciggi has joined #asahi
12:24MajorBiscuit has quit [Ping timeout: 480 seconds]
12:32frc has joined #asahi
12:33frc has quit []
12:33rustylerp has joined #asahi
12:54redwine_os[m] has joined #asahi
12:57redwine_os[m]Hello! I was looking for a cheap ARM machine for a home server and I have an opportunity to buy a cheap Air M1. I was wondering the viability of it, I'm mainly worried about battery degradation and if there is a way to power the macbook directly through power bypassing the battery. What do you think?
13:14AdryzzOLEDEdition[m]1if you need a headless machine get a mini
13:14the_lanetly_052 has joined #asahi
13:16rowang077[m]It's possible to set a charge limit in OSX. Probably not yet in Asahi. But even then the battery might degrade slowly. I'm not sure if it's known whether the M1 is powered via the battery if it's plugged in.
13:16MajorBiscuit has joined #asahi
13:16j`ey`echo 'inhibit-charge' > /sys/class/power_supply/macsmc-battery/charge_behaviour`
13:19mpsrowang077[m]: I made small hackish daemon to control charging for linux asahi
13:20mpsit looks at capacity level and change charging behaviour
13:28redwine_os[m]> if you need a headless machine get a mini
13:28redwine_os[m]Yes but in this case the Air is severely discounted, quite cheaper than a mini actually. That's why I didn't go for a mini.
13:31redwine_os[m]> it looks at capacity level and change charging behaviour... (full message at https://matrix.org/_matrix/media/r0/download/matrix.org/ZHpHnrCCFzbyOkXZusTgZHpB)
13:31rustylerp has quit []
13:32AdryzzOLEDEdition[m]1> <@redwine_os:matrix.org> > if you need a headless machine get a mini... (full message at https://matrix.org/_matrix/media/r0/download/matrix.org/ouXUvKOSEsLMtUlJReoahkoM)
13:33j`eyredwine_os[m]: I havent tested the inhibit-charge thing, but mps has
13:34redwine_os[m]> <del>where</del>
13:34redwine_os[m]Internal employee sales in my company.
13:35mpsj`ey: not only I, I think Glanzman and m1n1m4[m] also tested it
13:36mpshow can I download tarball of the arch linux pkg
13:37mpsj`ey: aha, thanks
13:44jluthra has quit [Remote host closed the connection]
13:45jluthra has joined #asahi
14:11chadmed has quit [Ping timeout: 480 seconds]
14:12chadmed has joined #asahi
14:24minecrell5 has quit []
14:25minecrell has joined #asahi
15:09Gaspare has joined #asahi
15:16nepeat_ has quit []
15:16nepeat has joined #asahi
15:18dsrt^ has joined #asahi
15:21bisko has joined #asahi
15:29tomc_ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
15:40Gaspare has quit [Quit: Gaspare]
16:22MajorBiscuit has quit [Ping timeout: 480 seconds]
16:37Jamie[m]Project Zero just published a writeup of an iPhone DCP firmware exploit
16:38Jamie[m](contains snippets of decompiled DCP firmware, exercise caution with regards to RE policy I guess)
16:39Jamie[m](oh it contains decompiled DCP kernel driver code as well fyi)
16:42Gaspare has joined #asahi
16:45Jamie[m]"the D45X family of DCP->AP RPC methods appear to expose an interface for requesting arbitrary physical as well as virtual addresses to be mapped into the DCP DART"
16:45Jamie[m]ah there's the bit i was confused about lol
16:48Namidairo has quit [Quit: ZNC - https://znc.in]
16:48ElvishJerricco[m]<sven> "i think that's more or less what..." <- btw, when I was looking at qemu's hvf code, it looks like they just reverse engineered hvf rather than calling the framework itself. Just curious if you know if that's the case or not.
16:49Namidairo has joined #asahi
16:51Gaspare has quit [Read error: Connection reset by peer]
17:06svenno idea, but the framework is very very thin iirc
17:07svenit’s essentially just a wrapper around a few syscalls
17:07svenagraf probably knows more :)
17:07witchbutter has joined #asahi
17:11witchbutter has quit []
17:12Kevy[m] has joined #asahi
17:18witchbutter has joined #asahi
17:31Gaspare has joined #asahi
17:35jannauJamie[m]: that's not how whose callback are used. the map_physical callback requests access to (I assume dcp's) pmgr MMIO space
17:36jannauI don't see how it could request arbitrary virtual memory. It could request buffers from the AP
17:37witchbutter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
17:39tpw_rulesthere is an exploit involved
17:46jannauof course, I just wanted to say that those are not ment to map arbitrary memory
17:48jannaudcp design is absurd
17:48Jamie[m]tpw_rules: ah, you're saying there's an additional vuln that is elided in the sentence i quoted?
17:48Jamie[m]for getting a DART mapping specifically?
17:49tpw_rulesyeah, it doesn't just call into the DCP and ask nicely for memory. there is some (trivial) vulnerability in the DCP code it uses to get a nefarious mapping
17:50Jamie[m]wait sorry I'm confused
17:50Jamie[m]you mean the DCP doesn't just call into the AP and ask nicely, right?
17:51tpw_rulesoh wait i am confused i think, ignore me
17:57jannauit looks like there are no checks on the requested mappings in the ios DCP driver. This strange and would be the real problem.
17:57Jamie[m]yeah that seems to be what they're saying lol
18:00chir4gm has quit [Quit: Ping timeout (120 seconds)]
18:01chir4gm has joined #asahi
18:02svendoesn’t surprise me tbh given that they probably just took the DCP driver and cut it in half
18:02jannauhard to believe that apple splits the driver and then trusts the firmware/IOP completely
18:02sventhat entire codebase used to run on a single CPU and if you had control it was game over anyway
18:02jannauthis is not the trust model Alyssa used for the linux dcp driver
18:02svenyup :-)
18:02svenbut it does not surprise me at all that there are bugs like in the macOS driver given it’s history
18:02sventhe whole threat model changed when suddenly half of your function run in another cpu
18:02jannauthere are probably more given that the macOS driver needlessly shares application processor virtual addresses with dcp
18:05r0ni has quit [Ping timeout: 480 seconds]
18:07j`eysven: "However, splitting up an existing system into separate, intercommunicating parts can end up exposing unexpected code in unexpected ways."
18:09svengetting that right and making it secure is _hard_
18:18Gaspare has quit [Quit: Gaspare]
18:19artemist has quit [Quit: artemist]
18:19artemist has joined #asahi
18:30Catyre has quit [Remote host closed the connection]
18:31Catyre has joined #asahi
18:32the_lanetly_052 has quit [Ping timeout: 480 seconds]
18:35Gaspare has joined #asahi
18:39Catyre has quit [Ping timeout: 480 seconds]
18:50agrafElvishJerricco[m]: Not sure I follow? QEMU uses the official Hvf API the way it's intended :)
18:51ElvishJerricco[m]agraf: Can you link where it does so? I couldn't find it
18:51agrafElvishJerricco[m]: Not sure what you mean. You mean a link to the docs?
18:51ElvishJerricco[m]What code calls out to Apple's framework
18:52agrafElvishJerricco[m]: QEMU code that calls into hvf: https://github.com/qemu/qemu/blob/master/target/arm/hvf/hvf.c
18:52agrafElvishJerricco[m]: All the hv_* functions are provided by Apple
19:07witchbutter has joined #asahi
19:19dsrt^ has quit [Ping timeout: 480 seconds]
19:21dsrt^ has joined #asahi
19:23witchbutter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:24luke has quit [Ping timeout: 480 seconds]
19:24Catyre has joined #asahi
19:25witchbutter has joined #asahi
19:32Catyre has quit [Ping timeout: 480 seconds]
19:37luke has joined #asahi
19:50luke has quit [Ping timeout: 480 seconds]
19:53witchbutter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:00witchbutter has joined #asahi
20:00Catyre has joined #asahi
20:07Techcable has joined #asahi
20:22luke has joined #asahi
20:30luke has quit [Ping timeout: 480 seconds]
20:50luke has joined #asahi
20:58dsrt^ has quit [Ping timeout: 480 seconds]
21:01luke has quit [Ping timeout: 480 seconds]
21:01Catyre has quit [Remote host closed the connection]
21:02Catyre has joined #asahi
21:02Catyre has quit [Read error: Connection reset by peer]
21:02Catyre has joined #asahi
21:03Catyre has quit [Remote host closed the connection]
21:03Catyre has joined #asahi
21:10luke has joined #asahi
21:19luke has quit [Ping timeout: 480 seconds]
21:20luke has joined #asahi
21:24Catyre has quit [Remote host closed the connection]
21:31luke has quit [Remote host closed the connection]
21:31luke has joined #asahi
21:37Gaspare has quit [Ping timeout: 480 seconds]
21:42triscalade[m] has joined #asahi
21:43dsrt^ has joined #asahi
21:57Gaspare has joined #asahi
22:08luke has quit [Remote host closed the connection]
22:15Catyre has joined #asahi
22:18witchbutter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:31Catyre has quit [Ping timeout: 480 seconds]
22:36luke has joined #asahi
22:43Catyre has joined #asahi
22:46luke has quit [Ping timeout: 480 seconds]
22:51Gaspare has quit [Ping timeout: 480 seconds]
22:59luke has joined #asahi
23:12Catyre has quit [Remote host closed the connection]
23:15Catyre has joined #asahi
23:27dsrt^ has quit [Ping timeout: 480 seconds]
23:50nicolas17 has joined #asahi
23:54witchbutter has joined #asahi
23:55marcanjannau: the macOS driver actually tries to censor some of those VAs. forgets about the other half :-)
23:55marcanso yes, none of this surprises me (and none of this applies to our driver)
…