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=-5.5 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 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 4EFA5C433DF for ; Wed, 10 Jun 2020 08:48:13 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 175F42078D for ; Wed, 10 Jun 2020 08:48:13 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="AG4bscoI"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="yPQ0Gn3M" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 175F42078D 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+infradead-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=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=7yVPfrYEQ5w1a1huiy/JL5szA4heGm8wiJDkrooddfs=; b=AG4bscoInGtX2n A/yx4J+or6ow9T8klZdfVk+IjIN01DiYpMmzaLIuanLA0jENL++HdtpmuRrqYZhMy31pIRASFaH9u Kavc+2eXxxz6xp/lkUEMs4vgrrBHSXGugwRxjUx0uG1kF0kfBF9EAAHu3dHUpHa2in6+edBdA2dyl vNXi9DGEFILcAbec6M9AyPkSs+QKSabKIIie1m5LJw1DdHNZXOg+8vlou32prhF5Gv2zsXT4wd0rC Yb+olEV+uV8ki75HV0v6O+3WGBbl+nfJ2mzqs+ZmqjI//gVHwGyGO3LbWMxMCtutGchWD70YzKfad +LcEzFC5QAHzXwbLFDCg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jiwOz-0005mP-6I; Wed, 10 Jun 2020 08:48:05 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jiwOv-0005m1-Il for linux-arm-kernel@lists.infradead.org; Wed, 10 Jun 2020 08:48:02 +0000 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EDCFD2078C; Wed, 10 Jun 2020 08:47:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591778881; bh=XmJ4HSxl4hqG6l3t1jcWoLYOgV//M491zGdVj+6y1cs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=yPQ0Gn3ME6yN2FN9zfRHpgCOwfCYNMmgtZNq/1Qc1Y9lWLTi7EgLBE+ceOFwekFAr BPy2IzPJIwhEykv0N0q/1FvwtRO8QIPl5WmVzTw24LCdU4SPKU5ktMLNX0I0Zc+Dh/ URIKegjZCtuwKT88nDENRmGm4av/IJGbwrYZqVzw= Date: Wed, 10 Jun 2020 09:47:55 +0100 From: Will Deacon To: Nick Desaulniers Subject: Re: [PATCH v2] arm64: vdso32: add CONFIG_THUMB2_COMPAT_VDSO Message-ID: <20200610084755.GB17035@willie-the-truck> References: <20200528072031.GA22156@willie-the-truck> <20200608205711.109418-1-ndesaulniers@google.com> <20200609203502.GA21214@gaia> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200610_014801_641899_E8CAE614 X-CRM114-Status: GOOD ( 18.72 ) 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: Naohiro Aota , Stephen Boyd , Catalin Marinas , Masahiro Yamada , LKML , clang-built-linux , Manoj Gupta , Luis Lozano , Nathan Chancellor , Vincenzo Frascino , Robin Murphy , Dave Martin , Linux ARM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Jun 09, 2020 at 04:55:13PM -0700, Nick Desaulniers wrote: > On Tue, Jun 9, 2020 at 1:35 PM Catalin Marinas wrote: > > > > On Mon, Jun 08, 2020 at 01:57:08PM -0700, Nick Desaulniers wrote: > > > diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig > > > index 7f9d38444d6d..fe9e6b231cac 100644 > > > --- a/arch/arm64/Kconfig > > > +++ b/arch/arm64/Kconfig > > > @@ -1299,6 +1299,14 @@ config COMPAT_VDSO > > > You must have a 32-bit build of glibc 2.22 or later for programs > > > to seamlessly take advantage of this. > > > > > > +config THUMB2_COMPAT_VDSO > > > + bool "Compile the vDSO in THUMB2 mode" > > > + depends on COMPAT_VDSO > > > + default y > > > + help > > > + Compile the compat vDSO with -mthumb -fomit-frame-pointer if y, otherwise > > > + as -marm. > > > > Now that we understood the issue (I think), do we actually need this > > choice? Why not going for -mthumb -fomit-frame-pointer always for the > > compat vdso? > > "Why should the compat vdso be configurable?" is a fair question. I > don't have an answer, but maybe some of the folks on thread do? > > Our problem is more so "if the vdso is built as thumb, we need it also > explicitly built with -fomit-frame-pointer." Whether it should be > built as thumb, arm, or configurable (and which default to pick in > that case) are still an open questions. Will asked for it to be > configurable, so I sent a patch making it configurable. It's configurable for 32-bit arm, so I was just following that as it's hardly a maintenance burden to support both. I suppose you could have a toolchain that only supports one or the other, but it does seem a little esoteric if you're building a kernel for an arm64 CPU. Will _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel