2025-12-17
00:06hdbngr has quit [Ping timeout: 480 seconds]
00:08ansg191 has quit [Read error: Connection reset by peer]
00:10ansg191 has joined #asahi
00:12km has quit []
00:23hdbngr has joined #asahi
00:32hdbngr has quit [Ping timeout: 480 seconds]
00:35mixi has quit [Ping timeout: 480 seconds]
00:45mixi has joined #asahi
01:01prike24 has joined #asahi
01:06prike2 has quit [Ping timeout: 480 seconds]
01:06prike24 is now known as prike2
01:14pb17 has quit [Ping timeout: 480 seconds]
01:27omidmash0 has joined #asahi
01:33omidmash has quit [Ping timeout: 480 seconds]
01:33omidmash0 is now known as omidmash
01:36betoissues has quit [Quit: bye bye.]
01:38betoissues has joined #asahi
01:43pb17 has joined #asahi
02:00ciara has quit [Remote host closed the connection]
02:04ciara has joined #asahi
02:09spuos has quit [Ping timeout: 480 seconds]
02:22aszeszo is now known as Guest33766
02:22aszeszo has joined #asahi
02:28Guest33766 has quit [Ping timeout: 480 seconds]
02:37spuos has joined #asahi
02:37thansen has quit [Quit: The Lounge - https://thelounge.github.io]
02:38thansen has joined #asahi
02:56Szadek094409193384066796850243 has quit [Ping timeout: 480 seconds]
03:01denysonique31913 has quit [Quit: .]
03:01denysonique31913 has joined #asahi
03:05john-cabaj has joined #asahi
03:32hdbngr has joined #asahi
03:35tobhe has joined #asahi
03:41hdbngr has quit [Ping timeout: 480 seconds]
03:41tobhe_ has quit [Ping timeout: 480 seconds]
03:47pb17 has quit [Ping timeout: 480 seconds]
03:50Yushi has quit [Remote host closed the connection]
03:51pb17 has joined #asahi
03:52Yushi has joined #asahi
03:53Yushi has quit [Remote host closed the connection]
03:55Yushi has joined #asahi
04:01axycrio has joined #asahi
04:07axycrio has quit [Quit: WeeChat 4.8.1]
04:34marvin24 has quit [Ping timeout: 480 seconds]
05:01hdbngr has joined #asahi
05:09pb17 has quit [Ping timeout: 480 seconds]
05:09hdbngr has quit [Ping timeout: 480 seconds]
05:12pb17 has joined #asahi
05:18b074 has quit [Quit: ZNC 1.9.0+deb2build3 - https://znc.in]
05:18b074 has joined #asahi
05:22john-cabaj has quit [Ping timeout: 480 seconds]
05:24mattia013 has quit [Ping timeout: 480 seconds]
05:25b074 has quit [Quit: ZNC 1.9.0+deb2build3 - https://znc.in]
05:25b074 has joined #asahi
05:30b074 has quit []
05:30b074 has joined #asahi
05:53alarumbe has quit []
06:00hdbngr has joined #asahi
06:08hdbngr has quit [Ping timeout: 480 seconds]
06:13DannyB has quit [Remote host closed the connection]
06:13elvishjerricco has quit [Ping timeout: 480 seconds]
06:14leo60228 has quit [Ping timeout: 480 seconds]
06:14leo60228 has joined #asahi
06:14axycrio has joined #asahi
06:15axycrio has quit []
06:15DannyB has joined #asahi
06:18elvishjerricco has joined #asahi
06:27Leo3418 has quit [Quit: Applying updates]
06:28Leo3418 has joined #asahi
06:30seb_ has quit [Quit: Konversation terminated!]
06:30tigerbrother has quit [Quit: The Lounge - https://thelounge.chat]
06:34tigerbrother has joined #asahi
06:54hdbngr has joined #asahi
07:03mattia013 has joined #asahi
07:03pb17 has quit [Ping timeout: 480 seconds]
07:09pb17 has joined #asahi
07:10hdbngr has quit [Ping timeout: 480 seconds]
07:12tigerbrother has quit [Quit: The Lounge - https://thelounge.chat]
07:12tigerbrother has joined #asahi
07:15hdbngr has joined #asahi
07:24hdbngr has quit [Ping timeout: 480 seconds]
07:29km has joined #asahi
07:37nnym has joined #asahi
07:37nnym_ has quit [Read error: Connection reset by peer]
07:56hdbngr has joined #asahi
08:00ravikant_ has joined #asahi
08:19hdbngr has quit [Ping timeout: 480 seconds]
08:24hdbngr has joined #asahi
08:32hdbngr has quit [Ping timeout: 480 seconds]
08:36hdbngr has joined #asahi
08:45hdbngr has quit [Ping timeout: 480 seconds]
09:00km has quit [Ping timeout: 480 seconds]
09:04hdbngr has joined #asahi
09:12hdbngr has quit [Ping timeout: 480 seconds]
09:16hdbngr has joined #asahi
09:19pitustHi! I hit a kernel bug (KASAN: slab-out-of-bounds) in spi_apple. Has this been fixed in newer kernels or should I try looking into making a fix?
09:20Method has quit [Ping timeout: 480 seconds]
09:21chaos_princessunlikely, the spi driver hasn't seen recent changes.
09:23Szadek094409193384066796850243 has joined #asahi
09:24hdbngr has quit [Ping timeout: 480 seconds]
09:28pitustthis bug doesn't seem to be super exploitable, but it's a kernel oob write (with what looks like uncontrolled data), so... yeah
09:28pitusti hope i don't have to build a new kernel with more debug prints around the driver to figure out what is going on (because that took *forever*)
09:34chaos_princessit is not unlikely that nickchan hit it too, as they got a kernel oops with memory corruption around driver loading/unloading
09:36pitustchaos_princess: I decided to even build a kernel with KASAN because I was hitting mysterious memory corruption (but not around driver load, which could just be random chance)
09:37hdbngr has joined #asahi
09:42enick_446 has quit [Quit: Bridge terminating on SIGTERM]
09:42rhysmdnz has quit [Quit: Bridge terminating on SIGTERM]
09:46rhysmdnz has joined #asahi
09:46pitustuuuuuuuuuh. that feels wrong: https://elixir.bootlin.com/linux/v6.17.7/source/drivers/input/touchscreen/apple_z2.c#L145
09:47Guest33784 has joined #asahi
09:47pitust(it takes a length from a received packet from apple_z2, and then passes it with no size checks into spi_read as a length...)
09:48hdbngr has quit [Ping timeout: 480 seconds]
09:49pitustso i guess depending on *something*, the device may decide to make an oversized packet in some cases?
09:54chaos_princessyea, i guess it could. it shouldn't, but who knows what happened there.
09:54chaos_princessit doesn't
09:57mohit815822635306907 has quit [Quit: mohit815822635306907]
09:58mohit815822635306907 has joined #asahi
10:01jnyou can track down the call sites of functions that were normally called, but the interesting part would be the line number that apple_spi_rx.part.0+0x26c/0x3c0 resolves to. addr2line might still provide it of vmlinux is unstripped, i'm not sure; but the kernel lacks that information for its own use
10:02chaos_princessjn: the call stack is more than enough w/o lines, as there aren't other choices for most places
10:03pitustokay so now i get to recompile the kernel from scratch, because nixos doesn't really do the whole incremental compilation thing :/
10:05hdbngr has joined #asahi
10:06chaos_princessmind also adding a printk of z2->rx_buf[0] ?
10:06chaos_princessi wonder if it is just some packet type we aren't handling and assuming it is a touch packet
10:07pitustchaos_princess: sure, once i figure out how to get nixos to accept a kernel i built by hand, and the bug triggers again (in probably another like 12 hours..)
10:07chaos_princessright, nixos :P
10:09pitustwell, at least i have the option to not use a filesystem which loses data whenever i have to hard reset
10:10chaos_princessso do i :P
10:10chaos_princessthe point is that i am not on fedora either
10:10chaos_princessgentoo (on xfs)
10:11chaos_princessi thought nix is also a "compile everything locally", no?
10:11chaos_princesswe have bindist too
10:13hdbngr has quit [Ping timeout: 480 seconds]
10:16pitustnixpkgs and the binary cache is actually shockingly complete, and i had to build only a few things myself
10:18hdbngr has joined #asahi
10:24chadmed has quit [Quit: Konversation terminated!]
10:24chadmed has joined #asahi
10:25JamesB192probably, armchair idiocy suggests building, restarting, then stepping aside for a drink, a snack, and reading a pulped dead tree slice
10:26hdbngr has quit [Ping timeout: 480 seconds]
10:27pitustthe caller of __kvmalloc_node_noprof is <asahi::driver::AsahiDriver as kernel::drm::driver::Driver>::IOCTLS::ASAHI_VM_BIND
10:27chaos_princessis this after the kasan complaint?
10:28chaos_princesswouldn't care that much about it then, since the z2 driver already screwed up some memory at this point
10:51chaos_princessi wouldn't do that, as it is likely to break things after the error packet
10:52chaos_princesswas there sth interesting in z2->rx_buf[0] ?
10:52chaos_princesssuch as different values between bad and good packets?
10:53chaos_princessoh, ok
10:53chaos_princessso, the "real packet" is the one that starts with e1000000 0000000e
10:53chaos_princessand idk what's up with the 814f814f spam
10:55chaos_princessoh, that would make sense
10:55chaos_princesssince suspend shuts down the digitizer
10:55chaos_princessand then re-initializes it
11:06hdbngr has joined #asahi
11:10pitustchaos_princess: the header data that is read is also 814f7948 814f814f 814f814f 814f814f. so maybe the suspend code is not waiting for the touchbar to come online properly?
11:10chaos_princessmost likely
11:11Moprius has joined #asahi
11:14hdbngr has quit [Ping timeout: 480 seconds]
11:17pitusti'm wondering if getting this kind of garbage is normal and yuo are just means to deal with it
11:20chaos_princessThere are checksums on packets, we should probably do check those
11:31hdbngr has joined #asahi
11:35ravikant_ has quit [Ping timeout: 480 seconds]
11:40hdbngr has quit [Ping timeout: 480 seconds]
11:45hdbngr has joined #asahi
11:49KxCORP589400034558813182016342 has quit [Quit: Bye!]
11:49KxCORP589400034558813182016342 has joined #asahi
11:59hdbngr has quit [Remote host closed the connection]
12:00hdbngr has joined #asahi
12:04aszeszo has quit [Ping timeout: 480 seconds]
12:05CME_ has quit [Ping timeout: 480 seconds]
12:10CME has joined #asahi
12:10aszeszo has joined #asahi
12:15pb17 has quit [Ping timeout: 480 seconds]
12:15hdbngr has quit [Ping timeout: 480 seconds]
12:21gargantua_kerr has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
12:22nilesh has joined #asahi
12:22nilesh is now known as Guest33788
12:25Moprius has quit [Ping timeout: 480 seconds]
12:27hdbngr has joined #asahi
12:27opticron has quit [Read error: Connection reset by peer]
12:27opticron has joined #asahi
12:29alarumbe has joined #asahi
12:36hdbngr has quit [Ping timeout: 480 seconds]
12:38pb17 has joined #asahi
12:41Brainium has joined #asahi
13:08hdbngr has joined #asahi
13:16hdbngr has quit [Ping timeout: 480 seconds]
13:19JamesB192 has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
14:09hdbngr has joined #asahi
14:11psykose has quit [Ping timeout: 480 seconds]
14:17hdbngr has quit [Ping timeout: 480 seconds]
14:23Brainium has quit [Ping timeout: 480 seconds]
14:28john-cabaj has joined #asahi
14:37chadmed has quit [Read error: Connection reset by peer]
14:37chadmed has joined #asahi
14:44JamesB192 has joined #asahi
15:10hdbngr has joined #asahi
15:11pb17 has quit [Ping timeout: 480 seconds]
15:12pb17 has joined #asahi
15:18hdbngr has quit [Ping timeout: 480 seconds]
15:23Brainium has joined #asahi
15:41fl0_idinteresting. when you create a tts voice in macos, it does this on one core when connected to power. takes a while even on m3 max
15:55hdbngr has joined #asahi
16:00Brainium has quit []
16:07hdbngr has quit [Ping timeout: 480 seconds]
16:11hdbngr has joined #asahi
16:18psykose has joined #asahi
16:21hdbngr has quit [Ping timeout: 480 seconds]
16:36feohAnyone else have problems with bluetooth audio stuttering? Just hit this for the first time today after an update.
16:53JamesB192_ has joined #asahi
16:56JamesB192 has quit [Ping timeout: 480 seconds]
17:08psykose has quit [Remote host closed the connection]
17:11psykose has joined #asahi
17:12hdbngr has joined #asahi
17:20hdbngr has quit [Ping timeout: 480 seconds]
17:23feohBasically I had to add a wireplumber BT config into my home directory and restarted pipewire-wireplumber
17:27chaos_princessshare with the class anyway :P maybe we will help un-break whatever the thing did
17:27psykose has quit [Remote host closed the connection]
17:28ravikant_ has joined #asahi
17:29chaos_princessso, the wireplumber bits appear to be useless as the default settings already enable those codecs
17:29psykose has joined #asahi
17:29chaos_princessthe buffer makes sense
17:29chaos_princessdefaults are much lower
17:30feohI should have really been more careful and done one step at a time while observing results. Bad science on my part.
17:30feohI'm using Sennheiser Momentum TW 4 earbuds which try and pair with the high res codecs so it kinda makes sense
17:34psykose has quit [Remote host closed the connection]
17:35psykose has joined #asahi
17:41Brainium has joined #asahi
17:43feohActually, I doscnnected the laptop from external HDMI and the stutter is back and I can't fix it again.
17:43psykose has quit [Remote host closed the connection]
17:44psykose has joined #asahi
17:44feohThanks so much for your help everyone, I made a good go of it and Asahi is *amazing*. I wish I had a spare laptop so I could just play and contribute but I've gotta go feed my $dayjob.
17:45chaos_princessin short, radio is magic
17:46feohNot a small problem. People kvetch and moan all the time even on platforms with massive teams and deep pockets.
18:01Moprius has joined #asahi
18:04Brainium has quit []
18:04Brainium has joined #asahi
18:13hdbngr has joined #asahi
18:21hdbngr has quit [Ping timeout: 480 seconds]
18:25hdbngr has joined #asahi
18:28vimproved_ has joined #asahi
18:30vimproved has quit [Ping timeout: 480 seconds]
18:32vimproved_ is now known as vimproved
18:33pb17 has quit [Ping timeout: 480 seconds]
18:33hdbngr has quit [Ping timeout: 480 seconds]
18:44vimproved has quit [Ping timeout: 480 seconds]
18:45tiferrei has quit [Remote host closed the connection]
18:46tiferrei has joined #asahi
18:48hdbngr has joined #asahi
18:56pb17 has joined #asahi
18:57hdbngr has quit [Ping timeout: 480 seconds]
19:01vimproved has joined #asahi
19:11km has joined #asahi
19:14hdbngr has joined #asahi
19:23hdbngr has quit [Ping timeout: 480 seconds]
19:47___nick___ has joined #asahi
19:48___nick___ has quit []
19:49___nick___ has joined #asahi
19:50hdbngr has joined #asahi
19:55km has quit []
20:06hdbngr has quit [Ping timeout: 480 seconds]
20:15hdbngr has joined #asahi
20:17Moprius has quit [Remote host closed the connection]
20:27ravikant_ has quit []
20:29hdbngr has quit [Ping timeout: 480 seconds]
20:30Brainium_ has joined #asahi
20:30Brainium has quit [Read error: Connection reset by peer]
20:34Brainium_ has quit [Read error: Connection reset by peer]
20:35Brainium_ has joined #asahi
20:41nimprod3l has joined #asahi
20:53chaos_princesspitust: i intend to send the fix for the z2 driver soon-ish, do you want a reported-by, and what do i put there
21:07___nick___ has quit [Remote host closed the connection]
21:08hdbngr has joined #asahi
21:10azync has quit [Quit: azync]
21:11azync has joined #asahi
21:16azync has quit []
21:16km has joined #asahi
21:17azync has joined #asahi
21:17azync has quit []
21:18azync has joined #asahi
21:20azync has quit []
21:20azync has joined #asahi
21:24hdbngr has quit [Ping timeout: 480 seconds]
21:30Brainium_ has quit []
21:30Brainium_ has joined #asahi
21:37artemist has quit [Quit: artemist]
21:38monstera is now known as Guest33817
21:38monstera has joined #asahi
21:43nimprod3l has quit [Ping timeout: 480 seconds]
21:43Guest33817 has quit [Ping timeout: 480 seconds]
21:52azync has quit [Quit: azync]
21:53azync has joined #asahi
21:55hightower4 has joined #asahi
22:03hightower3 has quit [Ping timeout: 480 seconds]
22:06pb17 has quit [Ping timeout: 480 seconds]
22:12pb17 has joined #asahi
22:17hdbngr has joined #asahi
22:26hdbngr has quit [Ping timeout: 480 seconds]
22:49km has quit []
22:58joe-schmuck has joined #asahi
22:59hdbngr has joined #asahi
23:07hdbngr has quit [Ping timeout: 480 seconds]
23:08pitusti'd be happy to test it (and i don't really love the idea of an msleep(100) being load-bearing...)
23:13john-cabaj has quit [Ping timeout: 480 seconds]
23:14joe-schmuck has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
23:15chaos_princessthe fix is "check that the response is a touch report and discard otherwise"
23:15chaos_princessalso, sec
23:16chaos_princesswas really hard to repro on my machine tbh, i think i had to do 20-ish, and then 50-ish sleep/wake cycles
23:17chaos_princesshttps://github.com/WhatAmISupposedToPutHere/linux/commit/e7ec6644c62e098aaed4ea8a7a947dc79e969965
23:18chaos_princesswhat machine is that btw
23:18hdbngr has joined #asahi
23:21chaos_princessWell, same.
23:23chaos_princessNah, it is fine, the interrupt will fire again and we will grab the report then.
23:24joe-schmuck has joined #asahi
23:27joe-schmuck has quit []
23:28hdbngr has quit [Ping timeout: 480 seconds]
23:30joe-schmuck has joined #asahi
23:34pb17 has quit [Ping timeout: 480 seconds]
23:41joe-schmuck has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
23:42pb17 has joined #asahi
23:58joe-schmuck has joined #asahi