Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp793546imm; Thu, 5 Jul 2018 08:59:54 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdZbYxke2cBftjIP13HQ591kNPvEasvyALBqO+ejfXXN5xbcKLGgip0upvlY+Wlwx35WRQw X-Received: by 2002:a65:6491:: with SMTP id e17-v6mr6160176pgv.44.1530806394415; Thu, 05 Jul 2018 08:59:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530806394; cv=none; d=google.com; s=arc-20160816; b=FQD7YLXZXrLHeQEfgkxX3Pi88j8Ff+QXyrSd9e7cPtmCvGf6MUpZsGg65GhsG/BA96 KCKOBBpiZ92YX2dzmUl9M7NVuCzwBLtbqX3j0EcFh8CZmRJDAoY4tSFzqj0JpJ+wuMU9 ebmxH4RAZQbbDvaub0eZf4aLOw9JUm7lMwIZAD8yp53HX4uRx5ptxF0jy83vjMx0rdyX nZeJirMLQasoGcZPKEhVSjeOuHWuP78sX4HTutWfUVPqeNq7GVkt/dmoztD59vMWa+OM vLCsDobQQ1lZfURFMCfL8S9yE7YWj5SiarKuMUHGCG2FSqDbKOuBlM7KO46EZiKimIRq /TkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=iwFMsYsmQ4eSy5gmHpVR/jyNpPkikL35IHCXYNWi7EE=; b=irJUItzzL5LlimeoT2pCvXSbeUzR/Ncbtdk1kSu1vRhVeyqA/SdB3VnCkMrE9j80x1 oqbYPBrspi1YchhGWYxiqteAMSfDZg8ms6Nf5NsdxU+APXCZm0I/690wSrbxRpuoNcOY bEIfwMnbCfJDqj+46LqtIFCoaOIhoXauWnD/693sAlVjCdVhDAwtOpWwcYySfn/CsYOQ uH5SHmqGI/VAbwHnw64QBpthvjQwRNjX91fGxOOypUyF3er98dFEA/66mmU4Lrl/z9Sa YP/oXkiKEkflrQrFPEpAhtgdesNDVhZr39OmaV488uNF5y7yJHphzyyvuTGZ+WmBpcKs vOxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=KoVjyjoB; 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 bi1-v6si6114386plb.126.2018.07.05.08.59.39; Thu, 05 Jul 2018 08:59:54 -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=KoVjyjoB; 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 S1753966AbeGEP6d (ORCPT + 99 others); Thu, 5 Jul 2018 11:58:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:44788 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753642AbeGEP6c (ORCPT ); Thu, 5 Jul 2018 11:58:32 -0400 Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5FE5324116 for ; Thu, 5 Jul 2018 15:58:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1530806311; bh=gv5x6CBm8MAwUQlrFjXPm1GU7QMy1/Sj/6UAhvsscMQ=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=KoVjyjoBIOwAvN1fhi1zr9rsICV01u01HPSqiv0VuxeL3i2aREvh4mEBpmvesEGDk ZVD9T7D9wTDvcXhEw9kEecEOxcQ712aE5qp4jjZ2FFrba4DM4HGR+BqzOazt2Dw34A NI+L17vv0A0i4J9W50wm8SZQFxTp1xr63EGy//4U= Received: by mail-wm0-f53.google.com with SMTP id p11-v6so11715235wmc.4 for ; Thu, 05 Jul 2018 08:58:31 -0700 (PDT) X-Gm-Message-State: APt69E3EkwRVm2WdP8tty4wgSW8AGDkhxbzLDgqkOruU3yIufKTAUZ8k SKAREP5uE4gNtswEhzLVslielkGY0peDD/4yZXIPow== X-Received: by 2002:a1c:34c9:: with SMTP id b192-v6mr4714133wma.21.1530806309802; Thu, 05 Jul 2018 08:58:29 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a1c:d548:0:0:0:0:0 with HTTP; Thu, 5 Jul 2018 08:58:09 -0700 (PDT) In-Reply-To: <20180703233430.14416-3-labbott@redhat.com> References: <20180703233430.14416-1-labbott@redhat.com> <20180703233430.14416-3-labbott@redhat.com> From: Andy Lutomirski Date: Thu, 5 Jul 2018 08:58:09 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCHv5 2/4] x86: Add build salt to the vDSO To: Laura Abbott Cc: Andy Lutomirski , Mark Wielaard , "H . J . Lu" , Masahiro Yamada , Linus Torvalds , X86 ML , LKML , Nick Clifton , Cary Coutant , Linux Kbuild mailing list , linuxppc-dev , Michael Ellerman , Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 3, 2018 at 4:34 PM, Laura Abbott wrote: > > The vDSO needs to have a unique build id in a similar manner > to the kernel and modules. Use the build salt macro. > Looks good to me. I have no idea whose tree these would go through. > Signed-off-by: Laura Abbott > --- > v5: Switched to using the single line BUILD_SALT macro > --- > arch/x86/entry/vdso/vdso-note.S | 3 +++ > arch/x86/entry/vdso/vdso32/note.S | 3 +++ > 2 files changed, 6 insertions(+) > > diff --git a/arch/x86/entry/vdso/vdso-note.S b/arch/x86/entry/vdso/vdso-note.S > index 79a071e4357e..79423170118f 100644 > --- a/arch/x86/entry/vdso/vdso-note.S > +++ b/arch/x86/entry/vdso/vdso-note.S > @@ -3,6 +3,7 @@ > * Here we can supply some information useful to userland. > */ > > +#include > #include > #include > #include > @@ -10,3 +11,5 @@ > ELFNOTE_START(Linux, 0, "a") > .long LINUX_VERSION_CODE > ELFNOTE_END > + > +BUILD_SALT > diff --git a/arch/x86/entry/vdso/vdso32/note.S b/arch/x86/entry/vdso/vdso32/note.S > index 9fd51f206314..e78047d119f6 100644 > --- a/arch/x86/entry/vdso/vdso32/note.S > +++ b/arch/x86/entry/vdso/vdso32/note.S > @@ -4,6 +4,7 @@ > * Here we can supply some information useful to userland. > */ > > +#include > #include > #include > > @@ -14,6 +15,8 @@ ELFNOTE_START(Linux, 0, "a") > .long LINUX_VERSION_CODE > ELFNOTE_END > > +BUILD_SALT > + > #ifdef CONFIG_XEN > /* > * Add a special note telling glibc's dynamic linker a fake hardware > -- > 2.17.1 >