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.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no 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 63040C43460 for ; Wed, 28 Apr 2021 17:42:25 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 8FAD36143D for ; Wed, 28 Apr 2021 17:42:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8FAD36143D 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+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=desiato.20200630; h=Sender:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=E2E0VaYEMIKtiofH3xzryYwZecT3sSD+U7tNnTTVE1o=; b=cjT/7evU1bYlLiMQtUBodNa8C mobOf5LVVclt7M4roOktkRgZE56iy3Fq1hCbkgJhQ+wEHythrYn9FPJWycHXBq9jwFsLz40iAE7Bt 7v60NsMUbOTAG/ThoEm0BrFFeKuhCYuS01TuAkQJxVFY16HbCrtHYZ9bwARpqOYSWyGTjT1bo7fSH jjN5tEKbWtLZ7dexwzTb9qYOLX37G0OdxcMf+NRrKHJ/gNb6vI4d+ZdI+6Kce2DRU9t17FbQmUzyD Vite40YupW55lE3oLN3tcGVkHwYt/AF3Q2FfshVJb8Ku/xmuevFg697lEwBSy+/MRdt1IWJkddwOm S9ka/pv2A==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lboB5-0040Xg-4a; Wed, 28 Apr 2021 17:40:47 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lboB3-0040Xb-8l for linux-arm-kernel@desiato.infradead.org; Wed, 28 Apr 2021 17:40:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=TEL4QvqjpzzGAZDjmnsXvSbV7lLMAJWIS1eXbot0Vyo=; b=XbJAGNFKGF1E6HpKi6orjD4GKk Odk5WS6jVw8tDIQpL3hC/Gs2dSUsE3/xlNq5bXXAXjK/+KyJ7kQEmBYl9XFhcCBYMoo7crryGVrjI 404z793ocX7IibN+1Cl1h2TYIp9A40gJOO3S3LdXSUzoPUOYjRhC2/1p8Kawl2bIm7dmcVxuylcec ykUH1byA1zyK0UcFzLRlKHRNqXv/r1TVuGvU1qX/FCxqBPyyLdtDOyaZS5UU4OyEb+e5NMzaqcqmF 3fEeR+q8k3u0w5fR1+5m2HQQtVnr37+0ErOB3iWDgFSmgTA0pFAYNk/LRXIk9g5r65m0/hbLX7+nN 6apGkKxQ==; Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lboB0-0004kT-KW for linux-arm-kernel@lists.infradead.org; Wed, 28 Apr 2021 17:40:43 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id C513761446; Wed, 28 Apr 2021 17:40:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1619631641; bh=Il5tb9B4/yJVnn+I749OEcDsob5dIs8bK4SoPVj4oLM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Z2IX/RK89FpMhNMgmvKfk7GdGnPSsv1gmKMsmPe+tZgibli+eVm54a4Mkx2w4AtaJ SD9c6yFU0h/SRhPJYy87aQPyXr0QMapxuJgzngK+Xe2Czu6GccWyQpQ9TCOh/R8Szu RjIsvwk3D9EeAwnRgdHjmebckV1QKCcrMXalEuq8SYkrvv5uw1dHL5m7dpZedh5dnL xycuAafw9i5VW/N+K7s5GueJfhqZhxHVgqlG+vurBgfRiufOuR3414SdrOQMvlEOwv Rde+kZpM1ThzZPbr8rqmR3u4Z9KZMkcFPviltHogeUgwafwfc6l4s9hXkyeoone/iZ dW8sSfXqiUpHA== Date: Wed, 28 Apr 2021 18:40:10 +0100 From: Mark Brown To: Catalin Marinas Cc: Bill Wendling , Kees Cook , Ard Biesheuvel , Will Deacon , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Szabolcs Nagy , Daniel Kiss Subject: Re: [PATCH] arm64/vdso: Discard .note.gnu.property sections in vDSO Message-ID: <20210428174010.GA4593@sirena.org.uk> References: <20210423205159.830854-1-morbo@google.com> <20210428172847.GC4022@arm.com> MIME-Version: 1.0 In-Reply-To: <20210428172847.GC4022@arm.com> X-Cookie: System checkpoint complete. 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-20210428_104042_739633_F1043CBC X-CRM114-Status: GOOD ( 16.79 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============5154585271243181682==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============5154585271243181682== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="HcAYCG3uE/tztfnV" Content-Disposition: inline --HcAYCG3uE/tztfnV Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Apr 28, 2021 at 06:28:47PM +0100, Catalin Marinas wrote: > On Fri, Apr 23, 2021 at 01:51:59PM -0700, Bill Wendling wrote: > > Since the note.gnu.property section in the vDSO is not checked by the > > dynamic linker, discard the .note.gnu.property sections in the vDSO. > Can we not instead fix the linker script to preserve the > .note.gnu.property, correctly aligned? It doesn't take much space and > while we don't use it now, it has the BTI information about the binary. > Cc'ing a few others who were involved in the BTI support. Not just BTI, we also flag PAC usage in there too and could add other extensions going forwards. While the note isn't actively used by anything right now due to the kernel mapping the vDSO prior to userspace starting it is part of the ABI and something could end up wanting to use it and getting confused if it's not there. It would be much better to fix the alignment issue. --HcAYCG3uE/tztfnV Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmCJnfkACgkQJNaLcl1U h9AMeQf+JjCPE1mknCrwwNnvPnXcUenU0DeOnChJJgTGhQGIe4ovug+jvSsiDRvp GKEOeeNYh3E2iABmqi46Ysc2bcVnzsivqsjXnlMGQP857+jnMgwh3lktKmQueL8P XgEHWN4fT2k6+tPbREAUVkYqBHWz3VhKXNt44qEw0Byn3WchMMBfuX7HkN6H6CzR 60nUXcfnyX4u51TMrefOlakdvAOV21g2Qy37DuLjSGS9A2M/ojsEKQzDbWqG88t7 ZU/FGiybkObxq0DPXJtzVXU5JxYVeRprwdHuyx6jHLGd5v9M/x6TAzMRx6i6KrhS kpuM+XkFWP1W7DlH2ECcQ9UY6E/qTg== =1KEY -----END PGP SIGNATURE----- --HcAYCG3uE/tztfnV-- --===============5154585271243181682== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============5154585271243181682==--