Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3853866ybg; Sun, 20 Oct 2019 23:14:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqyJl4nPvWfHEqgzHUnOhNN+OREVHAaiPgFoM8ugzl1PLmu3zj/0YTYjU00COAdSuvmOO9B5 X-Received: by 2002:aa7:c612:: with SMTP id h18mr23324075edq.245.1571638449132; Sun, 20 Oct 2019 23:14:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571638449; cv=none; d=google.com; s=arc-20160816; b=kVuNWLJXEtibbH9LLVpyxcRO25XW2/kKP2uB4pt7jsDZiSBVXdQcw/FLoqRcj2S27B GsqdDTBjGjLjmDRlAFkprVwuGB07Hxiv1Zm6CAlm4RoBYs9wVuSnJJoABINRyS108r5Q gUveD1LN49MqbtTqwCI4fqYmwLPMXHRKKgO+9/3l3+UAgjHim+offBb/W1XD0BdmzHqN bP6KbuRGxlqcCK+30MQID/YsyGyCe6ZQx2Y3EWAwuLUSXTgcFQSHE63hGkFRZkcCfsYq Jrk8RrrsUp8RjzhPnVn28qR7Po3K4w9vAyPMa+4T8mfsEDeqjvBE6goc2In3+rS8I2iN gqsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=azBxEHDWCdsU7wz/faY/PPe9l3d9cjGBlYkkkxlsXNw=; b=vEZdzPdfmqj6gQPQERToXDj7HzNmFgyb7VnCl9dAjJHd1Y3g0awJ5ogfLC5bETqRIZ lNQmEHqvXBsvEeTTD9dNxLaShY8ICCVjx4fe7AgARoNlVShi5v7dU9FvcyFxrurwrCvs 1IJzfZeksCr3F12bHeGYzGLFu0Fi4v2kWLpMW1dLS/aCAhCdxKP/yG5iBeJ3KYjBRJvo e+reeuAd4Yz4CRGTnA0Gby5xHWu54NpircU3zWds74C1WwFlHSNAWgvV3cj4GOcEoBBZ lDQCpNtrtds2uQ198Al+r80P3hF4zFOYbh12Dgke0VwwxjcK3a7tx3Cv6yxzs6KtuUd6 bR7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qTUTQ4ZT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bq16si7983285ejb.221.2019.10.20.23.13.44; Sun, 20 Oct 2019 23:14:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qTUTQ4ZT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726149AbfJUGMk (ORCPT + 99 others); Mon, 21 Oct 2019 02:12:40 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:44265 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726039AbfJUGMj (ORCPT ); Mon, 21 Oct 2019 02:12:39 -0400 Received: by mail-wr1-f68.google.com with SMTP id z9so12353753wrl.11 for ; Sun, 20 Oct 2019 23:12:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=azBxEHDWCdsU7wz/faY/PPe9l3d9cjGBlYkkkxlsXNw=; b=qTUTQ4ZTdm9DHInhDE6X3VmBqT/KyH/eg44Ie2ZyppNJ+Mq7Gzf0scMCqvZQU3nPkq 9RuuuXt9ohJ5GGZ8h2flwhyvHo+h+mwCU3HJf+NkGF1ALj5/Q88VB5OWwPcY/IliqH+l L56F8Nihrbg51/Fsns1XWsTOeLYFw3fUNOlGzbLGBm3uO+epkCWsGR+NC1kxNQYUTroR SzEk6Ha++yb8a85i+5pTuUxz2bAL3RQbU/K5HeDKEBB8dlhFE55Qgv18UJrCUJZZh8vr uJ/G08ebShEM/n6IRWP8xr4T4msq/l2sffgnnJdXZSAWT/ipDYKo74mYhYFdnpTIOzIk VfLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=azBxEHDWCdsU7wz/faY/PPe9l3d9cjGBlYkkkxlsXNw=; b=Mbj1qhwesKYNxUs8PbjZqZptqVM1mqCiFvtv9GJquQri9LKesEHucNw4Ny5180XusH Eg5O7rCLh/tsJcQkP/5UrLdWZ/kYSThxorKKV88tJ/N2E0MAb7dCvvzlubDSjb81Gp7F /vCa6gabhC4r3Zk+f4A/vrfPXOngbTizOCXabJ42+DJeeSKRslD+eTEBzC4aH5KkHIO5 XB8/B/ZXGvxgdb5fPktNqFoLnILIfU+Vjxv17Wgf3tXHNQEzIZl8At0H1QJ9zYWq4T4f jcX7ldgN/bB7IntPsPHvA1xIe0MgcG/EVts6TIirLvWvvXyc7evSvP40HDme6h/ohjB5 kFMQ== X-Gm-Message-State: APjAAAVyr4cjTmOOHrIP4kRQ3N6dEh24uto04cxT2jCeY6aNCq7p2Zk/ IBVjFrWFHMjoMh4xdwiAz65Va++Jv1B95pAFBrje50tQ7qs= X-Received: by 2002:a5d:6b0a:: with SMTP id v10mr17063430wrw.32.1571638357257; Sun, 20 Oct 2019 23:12:37 -0700 (PDT) MIME-Version: 1.0 References: <20191018161033.261971-1-samitolvanen@google.com> <20191018161033.261971-6-samitolvanen@google.com> In-Reply-To: From: Ard Biesheuvel Date: Mon, 21 Oct 2019 08:12:26 +0200 Message-ID: Subject: Re: [PATCH 05/18] arm64: kbuild: reserve reg x18 from general allocation by the compiler To: Sami Tolvanen Cc: Nick Desaulniers , Will Deacon , Catalin Marinas , Steven Rostedt , Dave Martin , Kees Cook , Laura Abbott , Mark Rutland , clang-built-linux , Kernel Hardening , Linux ARM , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 18 Oct 2019 at 21:00, Sami Tolvanen wrote: > > On Fri, Oct 18, 2019 at 10:32 AM 'Nick Desaulniers' via Clang Built > Linux wrote: > > > and remove the mention from > > > the LL/SC compiler flag override. > > > > was that cut/dropped from this patch? > > > > > > > > Link: https://patchwork.kernel.org/patch/9836881/ > > > > ^ Looks like it. Maybe it doesn't matter, but if sending a V2, maybe > > the commit message to be updated? > > True. The original patch is from 2017 and the relevant part of > arm64/lib/Makefile no longer exists. I'll update this accordingly. > > > I like how this does not conditionally reserve it based on the CONFIG > > for SCS. Hopefully later patches don't wrap it, but I haven't looked > > through all of them yet. > > In a later patch x18 is only reserved with SCS. I'm fine with dropping > that patch and reserving it always, but wouldn't mind hearing thoughts > from the maintainers about this first. > Why would you reserve x18 if SCS is disabled? Given that this is a choice that is made at code generation time, there is no justification for always reserving it, since it will never be used for anything. (Of course, this applies to generated code only - .S files should simply be updated to avoid x18 altogether) Also, please combine this patch with the one that reserves it conditionally, no point in having both in the same series.