Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp770606pxy; Wed, 28 Apr 2021 13:56:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy6HsLN7leGYjEG6EoF3PVoLVWhAIFqlAN5FvKUDMef42UcOhYMdCpOJkcYAdMYLJOfeQR5 X-Received: by 2002:a17:906:3c4e:: with SMTP id i14mr9988715ejg.245.1619643411015; Wed, 28 Apr 2021 13:56:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619643411; cv=none; d=google.com; s=arc-20160816; b=q7RICqUikuCXS40BwPC423gwr18RzamTficvZTbytI5kQV2UcPBNk58EDezWrbKgET WdTEwwdfQ1uSkzJaf+fLJQznnb/zgHlTc3ZaVjdUQWzVFhVF3ME4zNlRSBnkH84z1WpE KhFiEidpc7N8aFtxQeQd5n9BRvb+p+HyAM5muXusvOkeXi0y2cXv7BcmotPAlQPVvafW ntnEswzLbalizgWweqPYZ7Sez0HxmI1ezRiIEJXlrpaHCSwnWsMYCrs+RFn35A0CQKSa lIgqG6phItIPomFMIewJGYAtAaOYtxTVzG9vuHU0d0zUGDZcQWB1NPuBCtUc8pLMLULt TVHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=bcj8vNPDk3FDhQ6clAy/SNYeBodSqFbI83mzXpZ8R+c=; b=eBqr0nYN0HZLCbYIbLiuB0jB428hsLmjB7jf5OAWwiiJrpHJ5STWGB3fsVoA3471yK BhE6SU82Ng+pPFP1z07DWQBOjKWg/1+XKC7yftgMPyHw42deWHKzvxoNrYy6/7yjLciA MsKQgp3sj9tRgPzlB+VJuiA+w4aJeLq7Z7FF2SKRwjoe5oD8JxC9HIKsxVgHSjEh/x+L JlBfsz/EK1o1+daKmOO3jpk2Dl/cWaSUwo/ev5/ua2j3nPQqAvMR8ZbN357bW5639Vhh 7yrUshyBXD9C1D47o87r56b5MeroW2I4UIEP1soTDlVR9RmlraUBTnHGiftzGUJlKefj t0vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=ZCAnPCt1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jv5si1076862ejc.351.2021.04.28.13.56.22; Wed, 28 Apr 2021 13:56:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=ZCAnPCt1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235429AbhD1TWh (ORCPT + 99 others); Wed, 28 Apr 2021 15:22:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229794AbhD1TWg (ORCPT ); Wed, 28 Apr 2021 15:22:36 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48E1CC061573 for ; Wed, 28 Apr 2021 12:21:51 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id n2so96264642ejy.7 for ; Wed, 28 Apr 2021 12:21:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=bcj8vNPDk3FDhQ6clAy/SNYeBodSqFbI83mzXpZ8R+c=; b=ZCAnPCt1x6Rv2yKO1xiKn4fveq4YaByb553kQuEjX5P6ohkXQk1exlrpNXu4/uaRDb 5DRR35ghiC2+rkENnSiAlnmVEImxq0wZEIO68vyDgnCm63JOFsbaDuGqdU6jaR/Xkfrb 4ZqLogKE07dRK6kPaYOed7VoQnd57iRDqZL8oQLX0KfM4JesY7NfJeDHyVc+Ii3cdCua pTG7Ur7e05b70UK6IQo7rDf9h5SO88BiUCTpteQTLkHeR4C2IjWsaeAv6N6asbaqjviz R7bPVm0yNoyQPjiIdyJ6oxSQJHzhKAMSE4e3Zaptxkw8sn2fbiw3X+R5+1Wbng4OpJbl /+NQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=bcj8vNPDk3FDhQ6clAy/SNYeBodSqFbI83mzXpZ8R+c=; b=Lzf1FUvGglnhwEE/ZctNkywXQIe5seWA1njC31+bdqiByu9dArUnlyDU0uQGTONRj1 FuMQD8IgamedXv+6bmwnFmdPYLQXGw9BqWVgVIGzDCahgr01fnMD/c5418ZMwst4B+bE 2IJ6aM3k1hDDvucV2wCK1KphSfkcFZL+Fzqb4pKLG525QbLouKtfYrnZuKYhZWnyeQH6 FN3Jub0diN1mIgUw9/JxC4QL8At3t37OjPlwPdPZMTqpTE+f4TozGbUUviNdbshUdbbM b5P9iayXDoFIQFE42oKCK7lkZzf8IyLFc25a+bYGN2DshvtRPA3S2xQpdnhV45cakCbU /yfA== X-Gm-Message-State: AOAM532Us3iFXwgYrzPsD4qL7/hCm0zJZQuSgzTOL0c+fLXs1lmKHdlc 5aSmcgQtrdX0DL+kExTbN/9+wOV9dD0ysPThTmBV X-Received: by 2002:a17:906:b2cd:: with SMTP id cf13mr31564448ejb.419.1619637709726; Wed, 28 Apr 2021 12:21:49 -0700 (PDT) MIME-Version: 1.0 References: <20210423205159.830854-1-morbo@google.com> <20210428172847.GC4022@arm.com> <20210428174010.GA4593@sirena.org.uk> In-Reply-To: <20210428174010.GA4593@sirena.org.uk> From: Bill Wendling Date: Wed, 28 Apr 2021 12:21:38 -0700 Message-ID: Subject: Re: [PATCH] arm64/vdso: Discard .note.gnu.property sections in vDSO To: Mark Brown Cc: Catalin Marinas , Kees Cook , Ard Biesheuvel , Will Deacon , LKML , linux-arm-kernel@lists.infradead.org, Szabolcs Nagy , Daniel Kiss Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 28, 2021 at 10:40 AM Mark Brown wrote: > 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. If there's only one of the 8-byte aligned sections guaranteed, we could place it first in the note. Otherwise, we will have to change the alignment of the note (or somehow merge multiple notes). -bw