Skip to content

Panic when using coreutils 0.8.0 on kernel versions < 6.4 #11975

@EmilSodergren

Description

@EmilSodergren

Hi,

I get a panic on an .unwrap() when running coreutils 0.8.0. This happens when chrooting in to a debootstrapped Ubuntu 26 folder on a Ubuntu 22 host. Consider the following reproducer:

#!/bin/bash

sudo debootstrap --components="main" --arch=amd64 resolute u26-with-uutils-0.8.0 https://archive.ubuntu.com/ubuntu/
sudo cp -r u26-with-uutils-0.8.0 u26-with-uutils-0.7.0

wget https://github.com/uutils/coreutils/releases/download/0.7.0/coreutils-0.7.0-x86_64-unknown-linux-gnu.tar.gz
tar -xf coreutils-0.7.0-x86_64-unknown-linux-gnu.tar.gz coreutils-0.7.0-x86_64-unknown-linux-gnu/coreutils
sudo cp coreutils-0.7.0-x86_64-unknown-linux-gnu/coreutils u26-with-uutils-0.7.0/usr/bin/coreutils
for bin in u26-with-uutils-0.7.0/usr/lib/cargo/bin/coreutils/*; do
  sudo ln -f u26-with-uutils-0.7.0/usr/bin/coreutils "${bin}"
done

sudo chroot u26-with-uutils-0.7.0 bash -c "ls --version && ls && exit" # <-- This works everywhere
sudo chroot u26-with-uutils-0.8.0 bash -c "ls --version && ls && exit" # <-- This breaks on Ubuntu 22

When run on a machine with the following specs:
Linux my-u24-computer 6.8.0-110-generic #110-Ubuntu SMP PREEMPT_DYNAMIC Thu Mar 19 15:09:20 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux
everything works as expected.

BUT on this:
Linux my-u22-computer 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64 GNU/Linux
I get the following error:

ls (uutils coreutils) 0.7.0
bin  boot  dev  etc  home  lib  lib64  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var
 
thread 'main' (34588) panicked at /build/rust-coreutils-u5JpDp/rust-coreutils-0.8.0/rust-vendor/rustix/src/backend/linux_raw/param/auxv.rs:269:22:
called `Result::unwrap()` on an `Err` value: ()
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
bash: line 1: 34588 Aborted                    ls --version

Is this to be expected? Is there something we could do to fix it? Is Ubuntu 22 too old for coureutils 0.8.0?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions