From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qt1-f179.google.com (mail-qt1-f179.google.com [209.85.160.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C19F01684B0 for ; Thu, 23 Jan 2025 19:07:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737659279; cv=none; b=YsHM8JayaQ4xSyQBuTLYrh9V1lczW0LPkzcFmRJiHiGOtln2MiOoRtojfrvDbYmBQXbdzfCIwRd0fZC/9jnE2+lW/zGX69ueiai4+4xqBHd0W5jhV1CW6xBf1prxiF3SedWrIdAr3FhxNo5ZH0iKangmSQCmPt/u2uMENSA6Fmg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737659279; c=relaxed/simple; bh=F03TDyzppMXyi9exmVD7P3WpZ99niDCsGj7iVgR0590=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=CVo57FLaS+JS10VMaiKNRX1O3o0BmMosyiXjp7QCu0Y/fqLNNsX8qudxX0iATqaJkbBBIqfldPLEvZ5B9FbPmbu8c5FTSmTKD0GvpJ5Koy7DfqaDctWJfCMo86SHsO+UwL4aw8wCjCj7eyNZKbK9cLahr6VBd4bXM6ntJwd+rZo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=c3X95OC5; arc=none smtp.client-ip=209.85.160.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="c3X95OC5" Received: by mail-qt1-f179.google.com with SMTP id d75a77b69052e-467a6781bc8so10764471cf.2 for ; Thu, 23 Jan 2025 11:07:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1737659276; x=1738264076; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=nMzMKzFBtG4AdIKjzJU1cvZe5I82auc3f92U/sZ1KFg=; b=c3X95OC5JPrmb9UnAQcdAk5MsGGNfaSJdtwa8z/dKH4UkflLC3hDxj7Di3d8N0Rn2A EgbzlO4DsH8rWVQMI0iQm/g0gC/HuP42VXWSP4kQAEbmmESD7EkLkXyCWO1rento+VTx IO+MR8rk1ddPA2ghsrAfAgXVKckHymQ+RhW23UvEMr6yy/EbfSEboOEMTPGWotvJix3d gXgjtpYtiXbU3ojKrBklEOtmjNc9fSLTxxgN/5CRVJ93drN5X5gdT+PWGyu8Btq5W9t+ YCSkgfBacX0h27N2cvbpyN3oa+qfbSOzEx4vM8lMl/SHxKxycXnkhESsdP0c6RTgKzqG GE6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737659276; x=1738264076; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nMzMKzFBtG4AdIKjzJU1cvZe5I82auc3f92U/sZ1KFg=; b=sJogddjhyG5wyuxfyitBz/U9itOjiveXfE2tLB1OQwhxtauCD8tgMFhVzeogylF4or Qbb6qxbpczJMzi4lXlj8HeDybR/dWw1ILQoj1tzzXraEoij8Io7G5eJwt/WwsqauSKxV lRMKVSEA6jP+aLhv1Middwz9d62pMxlN0winR/Eaq/cvBewSa8GthsvCQpFLroXjSGfx YvHC/daoQKqFzxMYb1OiLHNL22WMvU4101VsAxOCFc6AMgteIjy1RhpiXv1Iqf/tdlBm FDOQ+vpjFJvPjm/AXJaSaG8StjzSC68l7L1Cg6FGWPMsjld1EZXbFSRwO/jOntTM7XWB AD/g== X-Gm-Message-State: AOJu0YxuM/GK02DFkSbRXq0pmSKLHKo/vnrnU42dOIVZpKoUU8U4nlV2 aZtQAoa5v7lxYvnUa4zmviN/tIxZYR/lBVXaDUha8pRDfvEXja/vvZku X-Gm-Gg: ASbGncvqdNQ+qachLh1onXteCVuNjQuoBwcsceWULsCvd10FmJ4CSNP9q8mmldA2Sda Vapgh+vZaO47UZH+jKpz5RX8mCwnbtIEVV0XHkQmoliffzmgg/hq1ZXjy2BQQqPe/8+XKu+aStS 8eEKrQsOjGg1xjmvg53YJ1j5P6T2kpUscg2iffMMxadZ2u1AFUhiYQM8xsQd8xetmv6YGlOKRFV Z6+7yg04tr2q2sOu87yDK46SkW4i979/B16qToXVKmZuy/XGqu2foz6AoxlcQ== X-Google-Smtp-Source: AGHT+IFwcIne6DEOURRN0gD5dIQxBtkksOqljpkZH2x3mPsfvhGDSOOQZZUz1vsjuP0x6FEx8ncZdQ== X-Received: by 2002:a05:622a:11c1:b0:466:ac03:a714 with SMTP id d75a77b69052e-46e12c394d5mr385453371cf.36.1737659276302; Thu, 23 Jan 2025 11:07:56 -0800 (PST) Received: from citadel.lan ([2600:6c4a:4d3f:6d5c::1019]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-46e66b880b6sm1768021cf.69.2025.01.23.11.07.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2025 11:07:55 -0800 (PST) From: Brian Gerst To: linux-kernel@vger.kernel.org, x86@kernel.org Cc: Ingo Molnar , "H . Peter Anvin" , Thomas Gleixner , Borislav Petkov , Ard Biesheuvel , Uros Bizjak , Brian Gerst Subject: [PATCH v6 01/15] x86: Raise minimum GCC version to 8.1 Date: Thu, 23 Jan 2025 14:07:33 -0500 Message-ID: <20250123190747.745588-2-brgerst@gmail.com> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250123190747.745588-1-brgerst@gmail.com> References: <20250123190747.745588-1-brgerst@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Stack protector support on 64-bit currently requires that the percpu section is linked at absolute address 0 because older compilers fixed the location of the canary value relative to the GS segment base. GCC 8.1 introduced options to change where the canary value is located, allowing it to be configured as a standard percpu variable. This has already been done for 32-bit. Doing the same for 64-bit will enable removing the code needed to support zero-based percpu. Signed-off-by: Brian Gerst Reviewed-by: Ard Biesheuvel --- scripts/min-tool-version.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/min-tool-version.sh b/scripts/min-tool-version.sh index 91c91201212c..06c4e410ecab 100755 --- a/scripts/min-tool-version.sh +++ b/scripts/min-tool-version.sh @@ -19,6 +19,8 @@ binutils) gcc) if [ "$ARCH" = parisc64 ]; then echo 12.0.0 + elif [ "$SRCARCH" = x86 ]; then + echo 8.1.0 else echo 5.1.0 fi -- 2.47.1