Re: [PATCH] compiler.h: Raise minimum version of GCC to 5.1 for arm64
From: Joe Perches <joe@perches.com>
Date: 2021-01-13 18:34:42
Also in:
lkml
From: Joe Perches <joe@perches.com>
Date: 2021-01-13 18:34:42
Also in:
lkml
On Thu, 2021-01-14 at 02:57 +0900, Masahiro Yamada wrote:
On Thu, Jan 14, 2021 at 1:08 AM Catalin Marinas [off-list ref] wrote:quoted
On Tue, 12 Jan 2021 22:48:32 +0000, Will Deacon wrote:quoted
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. [...]Applied to arm64 (for-next/fixes), thanks! [1/1] compiler.h: Raise minimum version of GCC to 5.1 for arm64 https://git.kernel.org/arm64/c/1f1244a5ddb7
[]
Maybe, we can raise the minimal version to gcc 5.1 for all architectures.
If really raising the required minimum, maybe use 7.1 so kasan v5 and fallthrough are always enabled too. https://gcc.gnu.org/releases.html GCC 7.1 May 2, 2017 GCC 5.1 April 22, 2015 GCC 4.9.0 April 22, 2014 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel