Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10280406ybi; Thu, 11 Jul 2019 02:45:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqwv6PiVb5K0luE2vHG32s2oZlkPA6j+lLaSRDiUGb25N+PO8bwBhQEg+GWnfsVsadDkftgo X-Received: by 2002:a17:90a:20c6:: with SMTP id f64mr3772687pjg.57.1562838359877; Thu, 11 Jul 2019 02:45:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562838359; cv=none; d=google.com; s=arc-20160816; b=JYwCPYEhHovMvDeWpDvLKi+ca+49Uy3N/b9D9cQMay5nA3ju8WTiTinp8EhUemzwnT /l5t0BBOnM1sWwB60YrvLbJIUCNcyuxZuo3GmGRBsb+QCbQGuQTcDkuWdMphO68+uZiG iuBvLVwctKhpifX2W6Y0UAOmvBpltx28vtpCCzaV06u44o65J8W/FHC2jwyyVrbDBlCK wg3EqPal4kVVkYxQ2GzRyAn9zHHAs2EHSeILLKGF9GeBIFKkmvFiLOCHY7pekrG7B7mJ GKGhnwsR7B93R36aucWSMnIgcQq5N+KA4+Qzv4eUrwRz0tw8SWK94ArQEwmNA9lqAf9Q h7ZA== 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=IWKRC0MOGLD53KtLcpfP/jKhrf3PWjCFgyiMYlHT/os=; b=sfLxoVUnUepC4gtChXIhf6MCBt2ocJUbYdwuvEkXxFZ0vwr1w8x6iNoT4GyA7KSWJ1 KcwJOjapGRmwHQbqVILf6G/FZ1K1qQHyjsxYQDCsCLc44iA/aapo0cKehHoUzAJce0eM 1SHgQnmvzFzYSNaOygbQmX8JWlR9rBWqZGTAIaTWJV+dsFiPsNTN0Iw5YdIi244YyRq4 Z5hR9lXztHepKZ9iANFaKqDIDGAtOJsn7L1FRqEN0ePuHpMNlo0LLHFIGkPDW7ERA8Xk gYFKeYcy4PPAEhD75fRPn9n6rVCi9ggHCKPZWeFaS9axjTlXimhgfFWU7FYGJB3UQwVE PPhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=msKHFoq1; 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 n20si4509869plp.395.2019.07.11.02.45.44; Thu, 11 Jul 2019 02:45:59 -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=msKHFoq1; 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 S1728328AbfGKJpO (ORCPT + 99 others); Thu, 11 Jul 2019 05:45:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:50488 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726088AbfGKJpO (ORCPT ); Thu, 11 Jul 2019 05:45:14 -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 4C7E420872; Thu, 11 Jul 2019 09:45:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562838313; bh=fCmvtSnN5KcuFoyLXltopennSHZGXM/xZ3ZSn2MCAkc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=msKHFoq1k7Hqwov4CLkE1ZEAbs1wTC7Q18jlnlcjXlM0AkkuxcfbcStOXB9miXgCJ 5d74po+3Nlt9RbYtxyX8i5luTtfSyihwcZXy/t819iQWVpHaNBqUftSeNtf76ElQVI lQbiMqDAOvUJBQ5kwOGGbgW3h/xX3YrpNVoA5jqU= Date: Thu, 11 Jul 2019 10:45:06 +0100 From: Will Deacon To: Vincenzo Frascino Cc: 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, tglx@linutronix.de, sthotton@marvell.com, pcc@google.com Subject: Re: [PATCH v2] arm64: vdso: Fix ABI regression in compat vdso Message-ID: <20190711094505.rwy6t6wu2cvmvwr6@willie-the-truck> References: <20190621095252.32307-11-vincenzo.frascino@arm.com> <20190710140119.23417-1-vincenzo.frascino@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190710140119.23417-1-vincenzo.frascino@arm.com> 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 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. Will