marcan changed the topic of #asahi to: Asahi Linux: porting Linux to Apple Silicon macs | https://asahilinux.org/2022/03/asahi-linux-alpha-release/ | General project discussion | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Topics: #asahi-dev #asahi-re #asahi-gpu #asahi-alt #asahi-stream #asahi-offtopic | Keep things on topic | Logs: https://alx.sh/l/asahi
<IcaroDextris[m]> <probie> "gnome-terminal fails to start..." <- Is a locale issue
<IcaroDextris[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
<IcaroDextris[m]> s/event/even/
<probie> If 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?
<psykose> 28 should work
<psykose> if you want a single patch onto something before, iirc it's https://lists.gnu.org/archive/html/bug-gnu-emacs/2021-03/msg02131.html
<probie> Neat. The Asahi Linux website had me worried for no reason
riker77_ has joined #asahi
riker77 has quit [Ping timeout: 480 seconds]
riker77_ is now known as riker77
phiologe has joined #asahi
PhilippvK has quit [Ping timeout: 480 seconds]
<marcan> opticron: I have no idea where I got the bunny model, assuming you mean https://github.com/marcan/spmp/blob/master/minimp/bunny.h
<marcan> that was like 13 years ago
<marcan> it'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
<nicolas17> I wonder if you can buy such a bunny
<AlbertoBasaglia[m]> <VinDuv> "I think it was the glmark2 model..." <- ty
<AlbertoBasaglia[m]> <opticron> "https://www.cc.gatech.edu/..."; <- ty
marvin24 has joined #asahi
marvin24_ has quit [Ping timeout: 480 seconds]
jcole has joined #asahi
tel is now known as q1182
waltcranston[m] has joined #asahi
waltcranston[m] has left #asahi [#asahi]
confusomu has quit [Remote host closed the connection]
witchbutter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
skoobasteeve has joined #asahi
skoobasteeve_ has joined #asahi
skoobasteeve has quit [Ping timeout: 480 seconds]
ciggi has quit [Read error: Connection reset by peer]
WindowPain_ has quit [Ping timeout: 480 seconds]
ciggi has joined #asahi
skoobasteeve_ has quit [Ping timeout: 480 seconds]
skoobasteeve has joined #asahi
artemist0 has joined #asahi
jluthra has quit [Remote host closed the connection]
jluthra has joined #asahi
nicolas17 has quit [Quit: Konversation terminated!]
skoobasteeve has quit [Ping timeout: 480 seconds]
skoobasteeve has joined #asahi
artemist0 has quit [Ping timeout: 480 seconds]
artemist has joined #asahi
MajorBiscuit has joined #asahi
skoobasteeve has quit [Read error: Connection reset by peer]
skoobasteeve has joined #asahi
guillaume_g has joined #asahi
MajorBiscuit has quit [Quit: WeeChat 3.5]
MajorBiscuit has joined #asahi
<mps> ktz_[m]: new openzfs is released, maybe you could now try to build it with asahi kernel on alpine
tomc has quit [Ping timeout: 480 seconds]
psykose has quit [Remote host closed the connection]
psykose has joined #asahi
tomc has joined #asahi
artemist has quit [Ping timeout: 480 seconds]
skoobasteeve has quit [Ping timeout: 480 seconds]
tomc_ has joined #asahi
tomc has quit [Ping timeout: 480 seconds]
ChaosPrincess has quit [Quit: WeeChat 3.5]
ChaosPrincess has joined #asahi
Ry_Darcy has quit [Remote host closed the connection]
artemist has joined #asahi
loki_val has joined #asahi
crabbedhaloablut has quit [Ping timeout: 480 seconds]
arnd has joined #asahi
c10l has quit [Quit: Bye o/]
c10l has joined #asahi
minecrell5 has joined #asahi
ciggi has quit [Read error: Connection reset by peer]
ciggi has joined #asahi
MajorBiscuit has quit [Ping timeout: 480 seconds]
frc has joined #asahi
frc has quit []
rustylerp has joined #asahi
redwine_os[m] has joined #asahi
<redwine_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?
<AdryzzOLEDEdition[m]1> if you need a headless machine get a mini
the_lanetly_052 has joined #asahi
<rowang077[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.
MajorBiscuit has joined #asahi
<j`ey> `echo 'inhibit-charge' > /sys/class/power_supply/macsmc-battery/charge_behaviour`
<rowang077[m]> j`ey: epic
<mps> rowang077[m]: I made small hackish daemon to control charging for linux asahi
<mps> it looks at capacity level and change charging behaviour
<redwine_os[m]> > if you need a headless machine get a mini
<redwine_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.
<redwine_os[m]> > it looks at capacity level and change charging behaviour... (full message at https://matrix.org/_matrix/media/r0/download/matrix.org/ZHpHnrCCFzbyOkXZusTgZHpB)
rustylerp has quit []
<AdryzzOLEDEdition[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)
<AdryzzOLEDEdition[m]1> <del>where</del>
<j`ey> redwine_os[m]: I havent tested the inhibit-charge thing, but mps has
<redwine_os[m]> > <del>where</del>
<redwine_os[m]> Internal employee sales in my company.
<AdryzzOLEDEdition[m]1> oh :(
<mps> j`ey: not only I, I think Glanzman and m1n1m4[m] also tested it
<mps> how can I download tarball of the arch linux pkg
<mps> j`ey: aha, thanks
jluthra has quit [Remote host closed the connection]
jluthra has joined #asahi
chadmed has quit [Ping timeout: 480 seconds]
chadmed has joined #asahi
minecrell5 has quit []
minecrell has joined #asahi
Gaspare has joined #asahi
nepeat_ has quit []
nepeat has joined #asahi
dsrt^ has joined #asahi
bisko has joined #asahi
tomc_ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
Gaspare has quit [Quit: Gaspare]
MajorBiscuit has quit [Ping timeout: 480 seconds]
<Jamie[m]> Project Zero just published a writeup of an iPhone DCP firmware exploit
<Jamie[m]> (contains snippets of decompiled DCP firmware, exercise caution with regards to RE policy I guess)
<Jamie[m]> (oh it contains decompiled DCP kernel driver code as well fyi)
Gaspare has joined #asahi
<Jamie[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"
<Jamie[m]> ah there's the bit i was confused about lol
Namidairo has quit [Quit: ZNC - https://znc.in]
<ElvishJerricco[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.
Namidairo has joined #asahi
Gaspare has quit [Read error: Connection reset by peer]
<sven> no idea, but the framework is very very thin iirc
<sven> it’s essentially just a wrapper around a few syscalls
<sven> agraf probably knows more :)
witchbutter has joined #asahi
witchbutter has quit []
Kevy[m] has joined #asahi
witchbutter has joined #asahi
Gaspare has joined #asahi
<jannau> Jamie[m]: that's not how whose callback are used. the map_physical callback requests access to (I assume dcp's) pmgr MMIO space
<jannau> I don't see how it could request arbitrary virtual memory. It could request buffers from the AP
witchbutter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<tpw_rules> there is an exploit involved
<jannau> of course, I just wanted to say that those are not ment to map arbitrary memory
<jannau> dcp design is absurd
<Jamie[m]> tpw_rules: ah, you're saying there's an additional vuln that is elided in the sentence i quoted?
<Jamie[m]> for getting a DART mapping specifically?
<tpw_rules> yeah, 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
<Jamie[m]> wait sorry I'm confused
<Jamie[m]> you mean the DCP doesn't just call into the AP and ask nicely, right?
<tpw_rules> oh wait i am confused i think, ignore me
<jannau> it looks like there are no checks on the requested mappings in the ios DCP driver. This strange and would be the real problem.
<Jamie[m]> yeah that seems to be what they're saying lol
chir4gm has quit [Quit: Ping timeout (120 seconds)]
chir4gm has joined #asahi
<sven> doesn’t surprise me tbh given that they probably just took the DCP driver and cut it in half
<jannau> hard to believe that apple splits the driver and then trusts the firmware/IOP completely
<sven> that entire codebase used to run on a single CPU and if you had control it was game over anyway
<jannau> this is not the trust model Alyssa used for the linux dcp driver
<sven> yup :-)
<sven> *its
<sven> but it does not surprise me at all that there are bugs like in the macOS driver given it’s history
<sven> the whole threat model changed when suddenly half of your function run in another cpu
<jannau> there are probably more given that the macOS driver needlessly shares application processor virtual addresses with dcp
r0ni has quit [Ping timeout: 480 seconds]
<j`ey> sven: "However, splitting up an existing system into separate, intercommunicating parts can end up exposing unexpected code in unexpected ways."
<sven> yup
<sven> getting that right and making it secure is _hard_
Gaspare has quit [Quit: Gaspare]
artemist has quit [Quit: artemist]
artemist has joined #asahi
Catyre has quit [Remote host closed the connection]
Catyre has joined #asahi
the_lanetly_052 has quit [Ping timeout: 480 seconds]
Gaspare has joined #asahi
Catyre has quit [Ping timeout: 480 seconds]
<agraf> ElvishJerricco[m]: Not sure I follow? QEMU uses the official Hvf API the way it's intended :)
<ElvishJerricco[m]> agraf: Can you link where it does so? I couldn't find it
<agraf> ElvishJerricco[m]: Not sure what you mean. You mean a link to the docs?
<ElvishJerricco[m]> the code
<ElvishJerricco[m]> What code calls out to Apple's framework
<agraf> ElvishJerricco[m]: QEMU code that calls into hvf: https://github.com/qemu/qemu/blob/master/target/arm/hvf/hvf.c
<agraf> ElvishJerricco[m]: All the hv_* functions are provided by Apple
witchbutter has joined #asahi
dsrt^ has quit [Ping timeout: 480 seconds]
dsrt^ has joined #asahi
witchbutter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
luke has quit [Ping timeout: 480 seconds]
Catyre has joined #asahi
witchbutter has joined #asahi
Catyre has quit [Ping timeout: 480 seconds]
luke has joined #asahi
luke has quit [Ping timeout: 480 seconds]
witchbutter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
witchbutter has joined #asahi
Catyre has joined #asahi
Techcable has joined #asahi
luke has joined #asahi
luke has quit [Ping timeout: 480 seconds]
luke has joined #asahi
dsrt^ has quit [Ping timeout: 480 seconds]
luke has quit [Ping timeout: 480 seconds]
Catyre has quit [Remote host closed the connection]
Catyre has joined #asahi
Catyre has quit [Read error: Connection reset by peer]
Catyre has joined #asahi
Catyre has quit [Remote host closed the connection]
Catyre has joined #asahi
luke has joined #asahi
luke has quit [Ping timeout: 480 seconds]
luke has joined #asahi
Catyre has quit [Remote host closed the connection]
luke has quit [Remote host closed the connection]
luke has joined #asahi
Gaspare has quit [Ping timeout: 480 seconds]
triscalade[m] has joined #asahi
dsrt^ has joined #asahi
Gaspare has joined #asahi
luke has quit [Remote host closed the connection]
Catyre has joined #asahi
witchbutter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Catyre has quit [Ping timeout: 480 seconds]
luke has joined #asahi
Catyre has joined #asahi
luke has quit [Ping timeout: 480 seconds]
Gaspare has quit [Ping timeout: 480 seconds]
luke has joined #asahi
Catyre has quit [Remote host closed the connection]
Catyre has joined #asahi
dsrt^ has quit [Ping timeout: 480 seconds]
nicolas17 has joined #asahi
witchbutter has joined #asahi
<marcan> jannau: the macOS driver actually tries to censor some of those VAs. forgets about the other half :-)
<marcan> so yes, none of this surprises me (and none of this applies to our driver)