• Bug#1108270: linux: uname -r contains regex control character '+'

    From Luca Boccassi@1:229/2 to All on Tue Jun 24 15:50:01 2025
    XPost: linux.debian.bugs.dist
    From: bluca@debian.org

    Source: linux
    Version: 6.12.33-1

    Dear Maintainer(s),

    Since version 6.12.33-1 uname -r contains the regex control character
    '+'. This means any existing script passing the output of $(uname -r)
    to anything that can interpret it as a regex will start to fail.

    e.g. on unstable where uname -r is 6.12.33+deb13-amd64:

    $ [[ "My List Of Favourite Kernels: 6.1.31 3.2 2.6.31318231
    6.12.27-amd64 6.12.33+deb13-amd64" =~ $(uname -r) ]]; echo $?
    1

    On testing where uname -r is 6.12.27-amd64:

    $ [[ "My List Of Favourite Kernels: 6.1.31 3.2 2.6.31318231
    6.12.27-amd64 6.12.33+deb13-amd64" =~ $(uname -r) ]]; echo $?

    0

    I can fix my autopkgtest scripts that started failing due to this, but
    it seems to me it might affect more scripts out there, so filing a bug
    so that there's something indexed and searchable.

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Bastian Blank@1:229/2 to Luca Boccassi on Tue Jun 24 18:50:01 2025
    XPost: linux.debian.bugs.dist
    From: waldi@debian.org

    Control: tags -1 wontfix
    Control: close -1

    On Tue, Jun 24, 2025 at 02:45:38PM +0100, Luca Boccassi wrote:
    Since version 6.12.33-1 uname -r contains the regex control character
    '+'. This means any existing script passing the output of $(uname -r)
    to anything that can interpret it as a regex will start to fail.

    It also contains the control character '.', multiple times.

    I can fix my autopkgtest scripts that started failing due to this, but
    it seems to me it might affect more scripts out there, so filing a bug
    so that there's something indexed and searchable.

    Sure, still closing as wontfix, as we have no other characters left.

    Bastian

    --
    Only a fool fights in a burning house.
    -- Kank the Klingon, "Day of the Dove", stardate unknown

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)