From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 27CC0C433E0 for ; Tue, 12 Jan 2021 22:50:20 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BDE6B230F9 for ; Tue, 12 Jan 2021 22:50:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BDE6B230F9 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=pDQV4nsWnWNZTJdMtgz5mflYJCfqyoApaidQree4NWk=; b=Kq2tvADA0uEuc2NCHzwjqS0hi/ mkTAttrwCdHPQEhmQbzANfk/+tYkuK+MU/a5KDC25CnkLtFr0z8VQqJCKRKHNyRM2RMaZs97AUpdW B9igSTZ90YTHdBylc5K8vmHtX4JAQy74cg0V8cMAm5cYiak/f+/7o2JFZn6J16rLnioAE1bQnAyWy 7NVv5vBXpZRwr1wyo/F8TtfK1q3/gyZJP7pa2JN3mOFk9hh3S8tVJs1Y5QMQb3s0/xMtYCZ7q8/pD empgC+Br1546mJUPzmdMXF58ChcybedVAYovEXEND+PaLyfJNo8TsU7wGZPH9nYVelTXlDOAaifEg Uak/BWJw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kzST3-0004w9-FP; Tue, 12 Jan 2021 22:48:49 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kzSSz-0004uZ-P6 for linux-arm-kernel@lists.infradead.org; Tue, 12 Jan 2021 22:48:47 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id C2A5823122; Tue, 12 Jan 2021 22:48:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610491724; bh=fWxXcxqHEI+KsLZg+QH/ku9lOvit7R1hyoKrLJ/10dI=; h=From:To:Cc:Subject:Date:From; b=B1c8aG435fUbuC1xPq3IcCLLYNeEtR6V71UVoKA0CRGj6sk4ilrfp7b0fcCebrM6X WU3CR8kyi/yFTWvYk4NHtAdLQ8tNY24nf970YY8Cnr81uD4FDFic2bhthnkfot3+ko 3wNV5OAccljPV5wcopvGGzHG/Wms3aXdAFpTBW+fRGwTiv6NWhQlnAV3gSJD31lHz2 VjYFGj/z/3GvIWjbUP7QodBBU1rlhiKV1/rKIldqFoUyo3xsTmfai3rdguqPDDaieB IYQZW+W6JTRl6/9YKKiZfV5OonxmEcbo/E4em1hpOVX7mBukuiQJo5i1u0qEfdp4TD FYZBdsB/G/GDA== From: Will Deacon To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] compiler.h: Raise minimum version of GCC to 5.1 for arm64 Date: Tue, 12 Jan 2021 22:48:32 +0000 Message-Id: <20210112224832.10980-1-will@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210112_174845_948430_1C6F0023 X-CRM114-Status: GOOD ( 13.37 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Florian Weimer , Arnd Bergmann , Theodore Ts'o , Peter Zijlstra , kernel-team@android.com, Nick Desaulniers , linux-kernel@vger.kernel.org, Russell King , Linus Torvalds , Catalin Marinas , Will Deacon Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org GCC versions >= 4.9 and < 5.1 have been shown to emit memory references beyond the stack pointer, resulting in memory corruption if an interrupt is taken after the stack pointer has been adjusted but before the reference has been executed. This leads to subtle, infrequent data corruption such as the EXT4 problems reported by Russell King at the link below. Life is too short for buggy compilers, so raise the minimum GCC version required by arm64 to 5.1. Cc: Theodore Ts'o Cc: Catalin Marinas Cc: Florian Weimer Cc: Peter Zijlstra Cc: Linus Torvalds Cc: Nick Desaulniers Reported-by: Russell King Suggested-by: Arnd Bergmann Link: https://lore.kernel.org/r/20210105154726.GD1551@shell.armlinux.org.uk Signed-off-by: Will Deacon --- include/linux/compiler-gcc.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/linux/compiler-gcc.h b/include/linux/compiler-gcc.h index 74c6c0486eed..555ab0fddbef 100644 --- a/include/linux/compiler-gcc.h +++ b/include/linux/compiler-gcc.h @@ -13,6 +13,12 @@ /* https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58145 */ #if GCC_VERSION < 40900 # error Sorry, your version of GCC is too old - please use 4.9 or newer. +#elif defined(CONFIG_ARM64) && GCC_VERSION < 50100 +/* + * https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63293 + * https://lore.kernel.org/r/20210107111841.GN1551@shell.armlinux.org.uk + */ +# error Sorry, your version of GCC is too old - please use 5.1 or newer. #endif /* -- 2.30.0.284.gd98b1dd5eaa7-goog _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel