Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2442610rdh; Sun, 29 Oct 2023 17:03:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFzXVypuseZz7VEGmXaqDPWMgECP7g8mb3v8r51uAYZDg/j5M/8pbOoNrkjcOm0Lygh1l1X X-Received: by 2002:a17:902:f2d1:b0:1cc:17e6:5da8 with SMTP id h17-20020a170902f2d100b001cc17e65da8mr5972041plc.10.1698624192726; Sun, 29 Oct 2023 17:03:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698624192; cv=none; d=google.com; s=arc-20160816; b=JH5RGnjRCiA8krzoTjAkCsxDh7mU52X1v4B4BLQHizTJmYWsl4klfjIF+d7CDVQwu6 W74SvEf/XeLn5bnmSveMlAsxi6HX7m0zTgePqAIt3RGArfe+ODHgn0hD+CSRjeu5PxZH LNC1WPR30FpkHG2ArihJ8IxZYdN3/mZnR87XOSmC6R25GNAGeyC6G5y272p9c9P42UaK At6MczI5TM9prVjEgwnsuBWraCB4QsS8ysO/EyB+Dmowllgi09S7GPPPC2INKr6g2tft VdKLOkU+Phj1SmuGq8vNdecW1hiyv1vOhQEQktomnPK+YT0/SrADmgqbADKkWpP+YS8a 7Eow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=UKg6JBu0qEn61a+ycnEPSwXxhDr86sJsIrWNpil9hP0=; fh=JjkhGXp8oZLfdeauTCly99K4/ARQzsg0qUXKRmDBSp0=; b=NSI/ox6qxX8Gc+KfLrjSLNJiWKq5S8uGpzylwHaTNOjYLAkRtyEQny0yS5irLrnU3c 1DB2leQoGePFJWZgGjAyLq+uvA6IYijTwWuA9d9HXIpan8PQO8blwjEQ4qam7jr5ZLUA /gO8ydlPoG4//+zisQH1SRcY8F33PJ0ybmj9OVNzTOVBbBnLTEX3RKJsoOzxIxpIUvb9 UiNyjoe+dlM6qr4nAMyAvU7BWztlVk4Pp1B/qG2GtTCbmE3k7v2sh2OCdyv8XEvQKxoe iATyuTlA9L4zmYNDzEIUVR+nvpuKeB+dc+Gt/Ame0b1dy/F0xWuo+y3zeW2mhCT+Zad8 8pPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=BKLw1KuC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id z13-20020a1709027e8d00b001b9dda4e1e7si4216854pla.154.2023.10.29.17.03.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Oct 2023 17:03:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=BKLw1KuC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id CA720805744E; Sun, 29 Oct 2023 17:03:09 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231202AbjJ3ACi (ORCPT + 99 others); Sun, 29 Oct 2023 20:02:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229533AbjJ3ACg (ORCPT ); Sun, 29 Oct 2023 20:02:36 -0400 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 006418A57 for ; Sun, 29 Oct 2023 16:20:09 -0700 (PDT) Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-507adc3381cso5582679e87.3 for ; Sun, 29 Oct 2023 16:20:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698621608; x=1699226408; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=UKg6JBu0qEn61a+ycnEPSwXxhDr86sJsIrWNpil9hP0=; b=BKLw1KuCXDMVdZiAVFD3Xvn5LqMuFgh2pha4JAU/8WVS7Qdo9YeJBWLeIGlKAP3o4u mVMGrifPyu5eZUCeRfhRP8pdBSlhkINo4tc1Z1YTlIFo556jDaSV64PjbiyiuG911V2n MzJrKR4ufjhxyzuzht2W6l777QHG2+SZa1EGhnWmET8axrhY2+KJhxzNEuAogpA/Kpd+ JAwlFm+GxrmyR4o+LAQpOYZXFv3NvbvswuRKNevCWhM4iuxK7dhrJpQKxyqGC49h5xnL 9vHmKteZ1Mt+6W/RApbSeTqEWoCQYhntAMMZUkX/z3MZ/kYICTbZxe7KVp+7VQRzKB13 uOqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698621608; x=1699226408; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UKg6JBu0qEn61a+ycnEPSwXxhDr86sJsIrWNpil9hP0=; b=e6HcKYFem1s8aUOcF5RCvscLQzo22dvpjrvSNSW+GznC4TJaN+b5vNzAsoYm37mNCg rLYRd5oxwwqSrnJqU34rTNTQ3FzLq71vbYAQIoy6/S4wTUl1+s7AUGdnrafQfpjEpuNH 5UaxbeR4f9IUw3WofgYdHhnDfPW4VA4dLN2C6eF4Zlb/SFegOpkXyauZbMr5MOArpnn0 kpsr778s1jsEwwPoiNppu0sjgi3ippVBpBY0ZGecO8SeOgCzzOIyzcx4P3LemaVD4n1w QtE7M94a9cofNUyS7aKtFf6RerjJc1kziP5dm/5ShMbprJcjHG2Ntt9Qi5FHb4DxXzYG B9LQ== X-Gm-Message-State: AOJu0YwW+AhVRjbGPLottZS1SeyZPKEa6W1VOIZ0I2iN2AUxYGP31z2G nlHU7mk4J3V5RV8sskYq5ITEVXNLGF8k4ohh+qMjNY0= X-Received: by 2002:a19:3812:0:b0:507:96fd:d3ee with SMTP id f18-20020a193812000000b0050796fdd3eemr5474633lfa.32.1698621607885; Sun, 29 Oct 2023 16:20:07 -0700 (PDT) MIME-Version: 1.0 References: <20231026160100.195099-1-brgerst@gmail.com> In-Reply-To: From: Brian Gerst Date: Sun, 29 Oct 2023 19:19:56 -0400 Message-ID: Subject: Re: [PATCH v2 00/11] x86-64: Stack protector and percpu improvements To: David Laight Cc: "linux-kernel@vger.kernel.org" , "x86@kernel.org" , Ingo Molnar , Thomas Gleixner , Borislav Petkov , "H . Peter Anvin" , Peter Zijlstra , Uros Bizjak Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Sun, 29 Oct 2023 17:03:10 -0700 (PDT) On Sun, Oct 29, 2023 at 5:42=E2=80=AFPM David Laight wrote: > > From: Brian Gerst > > Sent: 26 October 2023 17:01 > > > > Currently, x86-64 uses an unusual percpu layout, where the percpu secti= on > > is linked at absolute address 0. The reason behind this is that older = GCC > > versions placed the stack protector (if enabled) at a fixed offset from= the > > GS segment base. Since the GS segement is also used for percpu variabl= es, > > this forced the current layout. > > > > GCC since version 8.1 supports a configurable location for the stack > > protector value, which allows removal of the restriction on how the per= cpu > > section is linked. This allows the percpu section to be linked > > normally, like most other architectures. In turn, this allows removal > > of code that was needed to support the zero-based percpu section. > > I didn't think the minimum gcc version was anything like 8.1. > I'm using 7.5.0 and I don't think that is the oldest version. What distribution are you using that still relies on that old of a compiler= ? Brian Gerst