Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10401625ybi; Thu, 11 Jul 2019 04:46:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqwL/c/5kGH75LPQVGyT/cY7QnncDfgXSnTaNS+vQs0dy4xjdPL4pd4FF7bydg2AIPKjIXop X-Received: by 2002:a17:902:28c9:: with SMTP id f67mr4243656plb.19.1562845591351; Thu, 11 Jul 2019 04:46:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562845591; cv=none; d=google.com; s=arc-20160816; b=E1qaJEx15c0iG8opP8KSfw2AuFARqCrOEMToOtUXiiF1B2/A1OnlxkpVHQ/hu07ICm oF6CkzuPO4Db8gPhhuKTcGvdEo72UV0DDQwM/A9lO8CWtWfNAhP60un5t7bu+BZLRo8w iirzVpW8TMQBYgwjhpKTxh4h2vTZDJxEyELG1z8ZarqbU3QdoaPzsslsYYzypeagygL9 XgKheiGvsYiHXjXmxCiNMSWC9PRd6youvZ9daYl7JfiVPFuMdQpJse/h8uk8KXkQz1cp +60DTLXdJSBIQwg6rlgSOlIGC5zAcog3uwMUnjqQ/Ca3Im09tuCtocqvT3Q2vem6vk9P Uumw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=qcnX9nBsWVUfWDThW5Srv4ASehbhdXpbAtKqdqz66cw=; b=bjhYC51tVUR2gA3PgXLutWfvsrOWQpvYNeh+INS/bVgjJVa5CerUTKsazSidjBWCNc iRNSfv7Th6JNtwzVykzNBHN8njOGrIu5ShSWbpMe8oEoC7Odim6OJiVxmHjsANCGeKng ZS4wLRnF1Y5ZFvy41ePwci3eDUDDeG7XfXNMZ7lUi/BkWkrfNU9rOB/GD/w4H4xF7psv 27+X5xvMs7NLEL9nj82Hea7JNJswVA1DRfrZkVQfVyqnwXpyJkSQFZxIkY1bd5QtpmT2 tP+4iaPvbJzI5OjNuOtFFh6AsLJPjkF1bvYHnFZ3wzx/ViYDgYsV/PKEdHpOXywT+eAp bYtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="X1KQY/ZI"; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y8si5665913pgk.594.2019.07.11.04.46.15; Thu, 11 Jul 2019 04:46:31 -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=@kernel.org header.s=default header.b="X1KQY/ZI"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728394AbfGKLcr (ORCPT + 99 others); Thu, 11 Jul 2019 07:32:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:55882 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728026AbfGKLcq (ORCPT ); Thu, 11 Jul 2019 07:32:46 -0400 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 442D820665; Thu, 11 Jul 2019 11:32:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562844766; bh=s8uYoozdh6txZl5Ipy+chi8ZC2Lp0gQsc+r2gcl/KTI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=X1KQY/ZINjJSIFh09hdp2m914Z23PYFAjsktC6vM6BO9qnBGcq9szxI1anh6YPKda 17FMYC9TApNw8fvbMrRNsWFoMFDaW9iDj8fprhujtNW0b7zZYfhaxMMvbeCerC1Lb1 Ar8ijqAgm9rYbm4d7j6RdPcYQDPnEGViXYanDGks= Date: Thu, 11 Jul 2019 12:32:39 +0100 From: Will Deacon To: Thomas Gleixner 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 Message-ID: <20190711113238.qefdp5zvrjhsmtfu@willie-the-truck> References: <20190621095252.32307-11-vincenzo.frascino@arm.com> <20190710140119.23417-1-vincenzo.frascino@arm.com> <20190711094505.rwy6t6wu2cvmvwr6@willie-the-truck> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 11, 2019 at 12:34:27PM +0200, Thomas Gleixner wrote: > 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. I don't think it's urgent, so I'll just queue it along with any other fixes that show up at -rc1. Cheers, Will