From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 972BA26156F; Thu, 17 Apr 2025 17:57:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744912632; cv=none; b=D184TNjd4SVlnTpyLyU+kAeZPuQUVPKO7hnkEdOUjsgvwNkznWBYUCnhx2lk+stvMus2uhWZrg9aOtCpACzy5Rezmd1KcRoSctMn/xMP2TtwUFOMsSOAJAQ5XBJWgEm9F6advnFsJNrumUrcAlYzNKJTOfRO8Y1Iutrw43P6rYE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744912632; c=relaxed/simple; bh=j4jjgESO4XpMNJGjenHNLBFni59cE9rfOHxTktpo+BM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=rmaNOohkUIXUvsHTlnNtjIaRmrwwaf1RDh/X3VQy+L+OzesQuLzKynGEiwKhCbGV0+Jk9vRrv+PYKMO4vHI/R8aa7vJtG07eVkMbq3Fd1n8RJ44B6uHlvr+1zCP0XKOJyHku58x/gv3BngTI8LgdaivFiscwSsYEQOcdv898bDc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=OR4alx/r; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="OR4alx/r" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2594EC4CEE4; Thu, 17 Apr 2025 17:57:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744912632; bh=j4jjgESO4XpMNJGjenHNLBFni59cE9rfOHxTktpo+BM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OR4alx/rItXx6AfMuGw5EM8+PqfrndECbw985yVzpcGFlhj8wI/7Ngo0ChTRHZWjQ d++33FUVEdv1zy+UTpBNe+3J0s5oVzaasfd7jVcpUoEkBd9hnTD1rFRxI/bfpZm+1g kAb+LmNewnO4t7xrN313uo5cbgMOxkLVVJHkr308= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Michael Kelley , Ingo Molnar , Linus Torvalds , Sasha Levin , Ard Biesheuvel , https://lore.kernel.org/r/SN6PR02MB415723FBCD79365E8D72CA5FD4D82@SN6PR02MB4157.namprd02.prod.outlook.com Subject: [PATCH 6.14 066/449] zstd: Increase DYNAMIC_BMI2 GCC version cutoff from 4.8 to 11.0 to work around compiler segfault Date: Thu, 17 Apr 2025 19:45:54 +0200 Message-ID: <20250417175120.643477810@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250417175117.964400335@linuxfoundation.org> References: <20250417175117.964400335@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Ingo Molnar [ Upstream commit 1400c87e6cac47eb243f260352c854474d9a9073 ] 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 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 Debugged-by: Ard Biesheuvel Signed-off-by: Ingo Molnar Cc: https://lore.kernel.org/r/SN6PR02MB415723FBCD79365E8D72CA5FD4D82@SN6PR02MB4157.namprd02.prod.outlook.com Cc: Linus Torvalds Signed-off-by: Sasha Levin --- lib/zstd/common/portability_macros.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/zstd/common/portability_macros.h b/lib/zstd/common/portability_macros.h index 0e3b2c0a527db..0dde8bf56595e 100644 --- a/lib/zstd/common/portability_macros.h +++ b/lib/zstd/common/portability_macros.h @@ -55,7 +55,7 @@ #ifndef DYNAMIC_BMI2 #if ((defined(__clang__) && __has_attribute(__target__)) \ || (defined(__GNUC__) \ - && (__GNUC__ >= 5 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)))) \ + && (__GNUC__ >= 11))) \ && (defined(__x86_64__) || defined(_M_X64)) \ && !defined(__BMI2__) # define DYNAMIC_BMI2 1 -- 2.39.5