!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

569 Members
124 Servers

Load older messages


SenderMessageTime
16 Oct 2025
@dramforever:matrix.orgdramforever
  # This is security-sensitive code, and glibc vulns happen from time to time.
  # musl is security-focused and generally more minimal, so it's a better choice here.
  # The dynamic linker is still a fairly complex piece of code, and the wrappers are
  # quite small, so linking it statically is more appropriate.
18:31:29
@dramforever:matrix.orgdramforevertrying to make the security sensitive programs minimal18:31:44
@dramforever:matrix.orgdramforeveri guess18:31:47
@dramforever:matrix.orgdramforeverfb-re2 https://github.com/facebook/pyre2/compare/main...dramforever:pyre2:fix-py3-type18:35:03
@dramforever:matrix.orgdramforeverideally someone actually familiar with python should take a look but this should be correct18:35:27
@dramforever:matrix.orgdramforeverthis is one of those "how did this ever work???" things18:35:43
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)I mean, reading the news on the musl website indicates that it too has pretty bad vulns from time to time 18:36:09
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)And the speed of their website is concerning 18:36:24
@dramforever:matrix.orgdramforeverthe speed feels like they compile a fresh copy of musl every time i load a page18:38:20
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)It's more like it is running on a disposable vape, running mus 18:39:00
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)* It's more like it is running on a disposable vape, running musl18:39:02
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)https://bogdanthegeek.github.io/blog/projects/vapeserver/18:39:11
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)For real though, the real website hosted on the disposable vape, is much faster18:39:32
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)

Versions 0.9.13 through 1.2.5 are affected by CVE-2025-26519, an input-controlled out-of-bounds memory write primitive in iconv when the input encoding is EUC-KR and the output encoding is UTF-8, which could potentially be used as a vector to achieve arbitrary code execution. All users of software which may use iconv should patch (1, 2).

18:40:19
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)Are we applying that patch though ?18:40:23
@rosssmyth:matrix.orgrosssmythclock speed is half the ones I use at work, but the flash and ram are about the same18:41:03
@rosssmyth:matrix.orgrosssmythnice18:41:05
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)The vape you use at work?18:41:26
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)Ah yeah looks like we are 18:42:09
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192) dramforever: NIX_DONT_SET_RPATH = true is set in pkgs/by-name/mu/musl/package.nix, does this somehow impact your patch from earlier? 18:42:58
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)
        > aarch64-unknown-linux-musl-ar rc lib/libc.a obj/src/aio/aio.lo obj/src/aio/aio_suspend.lo obj/src/aio/lio_listio.lo obj/src/complex/__cexp.lo obj/src/complex/__cexpf.lo obj/src/complex/cab…
┃        > aarch64-unknown-linux-musl-gcc -std=c99 -nostdinc -ffreestanding -fexcess-precision=standard -frounding-math -fno-strict-aliasing -Wa,--noexecstack -D_XOPEN_SOURCE=700 -I./arch/aarch64 -I.…
┃        > -Wl,-e,_dlstart -o lib/libc.so obj/src/aio/aio.lo obj/src/aio/aio_suspend.lo obj/src/aio/lio_listio.lo obj/src/complex/__cexp.lo obj/src/complex/__cexpf.lo obj/src/complex/cabs.lo obj/src/…
┃        > aarch64-unknown-linux-musl-ranlib lib/libc.a
┃        > collect2: fatal error: cannot find 'ld'
18:44:00
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)Okay, so given this..18:44:02
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192) gcc is expected, but it can't find ld by the name ld I guess 18:44:16
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)But this also seems to happen with llvm 18:44:27
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192) Ah right it's only called gcc because of the way we wrap things right? 18:45:16
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)it's the gcc-wrapper18:45:19
@dramforever:matrix.orgdramforeverrpath is completely irrelevant when static linking18:46:45
@dramforever:matrix.orgdramforeverincluding my patch18:46:49
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)alright, makes sense 18:47:02
@dramforever:matrix.orgdramforeverwait, it shouldn't be using ld at this step18:49:21

Show newer messages


Back to Room ListRoom Version: 6