!UNVBThoJtlIiVwiDjU:nixos.org

Staging

316 Members
Staging merges | Running staging cycles: https://github.com/NixOS/nixpkgs/pulls?q=is%3Apr+is%3Aopen+head%3Astaging-next+head%3Astaging-next-25.05 | Review Reports: https://malob.github.io/nix-review-tools-reports/108 Servers

Load older messages


SenderMessageTime
19 Oct 2025
@dramforever:matrix.orgdramforeverbut if that's the case this is a regression in sd 258, this means users can't trigger the module load anymore19:21:54
@elvishjerricco:matrix.orgElvishJerricco dramforever: I think I'm going to learn something today :P I have never been clear on what "static device nodes" actually are. 19:24:03
@dramforever:matrix.orgdramforeverso19:24:32
@dramforever:matrix.orgdramforever you notice how you have /dev/snd/timer but lsmod has no snd-timer, right? 19:24:45
@dramforever:matrix.orgdramforever go head -c 0 /dev/snd/timer which opens the device, and closes 19:24:59
@dramforever:matrix.orgdramforever * go head -c 0 /dev/snd/timer which opens the device, and closes it 19:25:01
@dramforever:matrix.orgdramforevernow you magically do have snd-timer loaded19:25:10
@elvishjerricco:matrix.orgElvishJerriccook19:25:50
@elvishjerricco:matrix.orgElvishJerricco so, what, userspace creates fake device nodes, and the major/minor thing tells the kernel what it's supposed to be, and the kernel knows to load the corresponding module when it's accessed? 19:26:26
@dramforever:matrix.orgdramforeverexactly19:26:55
@elvishjerricco:matrix.orgElvishJerriccointeresting19:27:01
@dramforever:matrix.orgdramforever userspace knows what placeholders there could be by reading /lib/modules/*/modules.devname 19:28:19
@dramforever:matrix.orgdramforeverand i think it loads module by a device number alias, so snd-timer is char-major-116-3319:29:01
@elvishjerricco:matrix.orgElvishJerricco so, running on systemd 257.9, I still see that udev doesn't recognize /dev/snd/timer as a device, and snd_timer is not in lsmod 19:31:38
@elvishjerricco:matrix.orgElvishJerriccoso those things are the same19:31:41
@dramforever:matrix.orgdramforeveroh, right, https://www.freedesktop.org/software/systemd/man/latest/udev.html#static_node=19:31:50
@dramforever:matrix.orgdramforever.... i thought i understood what this is but now i don't anymore19:32:33
@elvishjerricco:matrix.orgElvishJerricco I mean it almost certainly has something to do with the uaccess changes 19:34:41
@elvishjerricco:matrix.orgElvishJerriccowat 19:35:31
@elvishjerricco:matrix.orgElvishJerricco
In [2]: print(machine.execute("ls -lha /run/udev/static_node-tags/uaccess/")[1])
total 0
drwxr-xr-x 2 root root 80 Oct 19 19:34 .
drwxr-xr-x 3 root root 60 Oct 19 19:34 ..
lrwxrwxrwx 1 root root 12 Oct 19 19:34 snd\x2fseq -> /dev/snd/seq
lrwxrwxrwx 1 root root 14 Oct 19 19:34 snd\x2ftimer -> /dev/snd/timer
19:35:35
@dramforever:matrix.orgdramforeverbut anyway if my theory is correct then this is a real 258 regression and could be reproducible on fedora rawhide or something19:35:35
@elvishjerricco:matrix.orgElvishJerricco /run/udev/static_node-tags/ is supposed to be populated with symlinks indicating the tags that have been applied to static dev nodes 19:36:32
@elvishjerricco:matrix.orgElvishJerricco so, like, /dev/snd/timer has the tag, in theory 19:37:03
@elvishjerricco:matrix.orgElvishJerricco(the above past was back on 258, to be clear)19:37:14
@elvishjerricco:matrix.orgElvishJerricco* (the above paste was back on 258, to be clear)19:37:19
@elvishjerricco:matrix.orgElvishJerricco dramforever: tell me if this makes sense... In 257, logind was seeing that static_node-tags link thing and doing the ACLs for uaccess, even on these static dev-nodes for not-yet-loaded modules. In 258, such nodes aren't processed by udev; so the change that made it so udev is the one to apply the ACLs doesn't work for them. 19:40:22
@dramforever:matrix.orgdramforeveri think it's possible, but i have no idea how it works under the hood19:41:13
@elvishjerricco:matrix.orgElvishJerriccoyea, I'm gonna go look at how logind did the acl stuff in 25719:41:51
@elvishjerricco:matrix.orgElvishJerriccothis sounds like a plausible explanation19:42:02
@elvishjerricco:matrix.orgElvishJerricco yea, that's exactly what logind does in 257; it iterates over the /run/udev/static_node-tags/uaccess directory 19:44:53

Show newer messages


Back to Room ListRoom Version: 6