Files
Centos-kernel-stream-10/lib/zstd
Vladislav Dronov 037495815b zstd: Increase DYNAMIC_BMI2 GCC version cutoff from 4.8 to 11.0 to work around compiler segfault
JIRA: https://redhat.atlassian.net/browse/RHEL-115836
Upstream Status: merged into the upstream linux.git

Conflicts: Integrate changes from 3way merge e61f33273ca7 ("Merge tag
'zstd-linus-v6.15-rc1' of https://github.com/terrelln/linux") to this
commit so it applies cleanly. Only whitespaces, no functional change.

commit 1400c87e6cac47eb243f260352c854474d9a9073
Author: Ingo Molnar <mingo@kernel.org>
Date:   Fri Mar 21 08:38:43 2025 +0100

    zstd: Increase DYNAMIC_BMI2 GCC version cutoff from 4.8 to 11.0 to work around compiler segfault

    Due to pending percpu improvements in -next, GCC9 and GCC10 are
    crashing during the build with:

        lib/zstd/compress/huf_compress.c:1033:1: internal compiler error: Segmentation fault
         1033 | {
              | ^
        Please submit a full bug report,
        with preprocessed source if appropriate.
        See <file:///usr/share/doc/gcc-9/README.Bugs> for instructions.

    The DYNAMIC_BMI2 feature is a known-challenging feature of
    the ZSTD library, with an existing GCC quirk turning it off
    for GCC versions below 4.8.

    Increase the DYNAMIC_BMI2 version cutoff to GCC 11.0 - GCC 10.5
    is the last version known to crash.

    Reported-by: Michael Kelley <mhklinux@outlook.com>
    Debugged-by: Ard Biesheuvel <ardb@kernel.org>
    Signed-off-by: Ingo Molnar <mingo@kernel.org>
    Cc: https://lore.kernel.org/r/SN6PR02MB415723FBCD79365E8D72CA5FD4D82@SN6PR02MB4157.namprd02.prod.outlook.com
    Cc: Linus Torvalds <torvalds@linux-foundation.org>

Signed-off-by: Vladislav Dronov <vdronov@redhat.com>
2026-07-08 19:22:28 +02:00
..
2026-07-08 19:22:28 +02:00
2026-07-08 19:22:28 +02:00
2026-07-08 19:22:28 +02:00