Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10335240ybi; Thu, 11 Jul 2019 03:39:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqx1NtzwKonEQWSogeOsFLvPKWIvsXwcUVdHqOAYk26I+7YVqcNGtRYR+/43gISqvy+Rm+K1 X-Received: by 2002:a17:90b:d82:: with SMTP id bg2mr4077467pjb.87.1562841542963; Thu, 11 Jul 2019 03:39:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562841542; cv=none; d=google.com; s=arc-20160816; b=QJFXyb1xdkg0sQ0IC1jH0Z3VLNzyktn7AjdTz0APlJUbVc5F2BSfMFEwfq2J4AJVwQ zV+RVz3Ut4i3fPErAiIguJtSjIWg1z591TEzUQVChK2VEcVxmBk06mW+jPeZPT5EdsUo mVzf400FMjoSUtw+OfJkV0LlMYMOcAk299lcxHK2YHBdq73Exrj5Oje+2KWn/8Gd7yfI rDk0i7z9oTZXSmE8ypW/sBmVK3oKix5EmbdDaVDWKfscwUWvJDPUNsyvEUjtkVXkg86U dDqtCxGuxIG2Cu+TDYtfjMvTAPG5NxZYe0QexRGSThmnV1PG/TCgfGzK2HNheH3oNi9K IgxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=aIQIGIkXzpVxWyx4u/p3/MmWNL1h2o4VxqBUTuNr368=; b=ciVP/ai325CIxm2eYil4oB+12cTCdDzYZ/gtZmKRkpzt7aa2nyLvKjrFQoT8qRgvj4 +7g1CAvjTVOLIeuzV3D469JldpU6UlZ73gJHPEWdYpYy59qLk+OOslt/+KgB2mOzXYhK N4ZDxu8rA6YWyBfJXDxzWHIHxaqxpVQDWo6IKxrQJyq6sMLSKw5xqNEhqN8ctFozkPYG sSl9/PLJvDA5yjVDzAU07Niubjir7rfpN1zoGj5aPSkRmirtST2yOTwX566aEbEu2auf 5AHQTOn8sd5N8c9aGGNdQh9HXizwlsy+kulFnZs/4TXOW93/HHpOba/2+kvJg29m8Jxt 8CVA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a2si4764645pjs.16.2019.07.11.03.38.47; Thu, 11 Jul 2019 03:39:02 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728205AbfGKKem (ORCPT + 99 others); Thu, 11 Jul 2019 06:34:42 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:49530 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725962AbfGKKel (ORCPT ); Thu, 11 Jul 2019 06:34:41 -0400 Received: from [5.158.153.55] (helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1hlWPJ-0003zg-TT; Thu, 11 Jul 2019 12:34:34 +0200 Date: Thu, 11 Jul 2019 12:34:27 +0200 (CEST) From: Thomas Gleixner To: Will Deacon cc: Vincenzo Frascino , linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-kselftest@vger.kernel.org, shuah@kernel.org, andre.przywara@arm.com, arnd@arndb.de, huw@codeweavers.com, catalin.marinas@arm.com, daniel.lezcano@linaro.org, will.deacon@arm.com, linux@armlinux.org.uk, ralf@linux-mips.org, salyzyn@android.com, luto@kernel.org, paul.burton@mips.com, john.stultz@linaro.org, 0x7f454c46@gmail.com, linux@rasmusvillemoes.dk, sthotton@marvell.com, pcc@google.com Subject: Re: [PATCH v2] arm64: vdso: Fix ABI regression in compat vdso In-Reply-To: <20190711094505.rwy6t6wu2cvmvwr6@willie-the-truck> Message-ID: References: <20190621095252.32307-11-vincenzo.frascino@arm.com> <20190710140119.23417-1-vincenzo.frascino@arm.com> <20190711094505.rwy6t6wu2cvmvwr6@willie-the-truck> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 11 Jul 2019, Will Deacon wrote: > On Wed, Jul 10, 2019 at 03:01:19PM +0100, Vincenzo Frascino wrote: > > Prior to the introduction of Unified vDSO support and compat layer for > > vDSO on arm64, AT_SYSINFO_EHDR was not defined for compat tasks. > > In the current implementation, AT_SYSINFO_EHDR is defined even if the > > compat vdso layer is not built and this causes a regression in the > > expected behavior of the ABI. > > > > Restore the ABI behavior making sure that AT_SYSINFO_EHDR for compat > > tasks is defined only when CONFIG_COMPAT_VDSO is enabled. > > > > Reported-by: John Stultz > > Signed-off-by: Vincenzo Frascino > > --- > > arch/arm64/include/asm/elf.h | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/arch/arm64/include/asm/elf.h b/arch/arm64/include/asm/elf.h > > index 3c7037c6ba9b..b618017205a3 100644 > > --- a/arch/arm64/include/asm/elf.h > > +++ b/arch/arm64/include/asm/elf.h > > @@ -202,7 +202,7 @@ typedef compat_elf_greg_t compat_elf_gregset_t[COMPAT_ELF_NGREG]; > > ({ \ > > set_thread_flag(TIF_32BIT); \ > > }) > > -#ifdef CONFIG_GENERIC_COMPAT_VDSO > > +#ifdef CONFIG_COMPAT_VDSO > > #define COMPAT_ARCH_DLINFO \ > > do { \ > > /* \ > > Acked-by: Will Deacon > > I can take this at -rc1 via arm64 unless tglx plans to send it during the > rest of the merge window. Please let me know. I had no plan to pick it up, but if you want I can route it through timer urgents so it hits Linus tree before rc1. Thanks, tglx