Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp969326imm; Thu, 5 Jul 2018 12:09:54 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdcCCQoRgs6289ilFuJVxIWLwnjtnNZwEgQu7VouTD91/cyGRPfwBei+xo0+iiOdha1hFZ8 X-Received: by 2002:a17:902:b587:: with SMTP id a7-v6mr7549046pls.225.1530817793950; Thu, 05 Jul 2018 12:09:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530817793; cv=none; d=google.com; s=arc-20160816; b=SijQMgMS6Afj3r0HO5NNEnJ+zQ2KHUeWkTBRio0/SVoL5vtvQ/rRwbpHC0b57jnn62 ie/WIDau9RZQAUzs52XCwcmfAZtuwZQ3Lq5Pb5m42Y1EyDQcMEFp/PZXhWLswUJ20r9J gtTrljJJhpxLEsV7xmz+h2zdsbEeruI/k2/5nOpUWfidQxRisGDCAPhGtfVvAWydEmkI rTAFNMHMs9tVwc0H6cuj+02Ef2Hf6Wb/6CJOXd/DfVxov1mCqDVwKNYvCKVsLSfeXHXD surRuE8z9VRR+dnUCSF7ZGbgZandusDAnmsZs6XSJE91TqaUvgMJAHKhsc8dQVcCcY3Z o2Dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=k7nJecALQ2Ni1zTRFHD69B1x9Bb6JcxzQGgr7FGpduw=; b=JSP0DWcVMhbw7fqoENKZhNCZq0Uv+ssMiQy+Ak8FSCF3Wa6GxBN3gNB69BiEEqclOy YjZ6dJKhgY4Izhtu6QIsDEZ8Z0dJjrYC3c+u5pyBPFpw9/RovIOPotT4t4hj8r7calBO G4Bte2/yh1DhkBjpcF5d6IN0gA97t4fClTCPahMRdtYAo+v7ggBYtK9/X/7KtvUXMVav BroQ3trqdODeKwOcpYZ5ug3s1Iu8nSr8ehcHF9ryM3VC/f9i+j5tLX2KUmb//c65FE5y n0gdv/WRegU71yt5Eapgo7tLyEFRcM8qikHsJ4whJ/9lvbMszRbtxP7vkt8IFNIZT9aK 2JtQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b24-v6si1453162pff.192.2018.07.05.12.09.39; Thu, 05 Jul 2018 12:09:53 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754044AbeGETIe (ORCPT + 99 others); Thu, 5 Jul 2018 15:08:34 -0400 Received: from mail-qt0-f196.google.com ([209.85.216.196]:41748 "EHLO mail-qt0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753752AbeGETId (ORCPT ); Thu, 5 Jul 2018 15:08:33 -0400 Received: by mail-qt0-f196.google.com with SMTP id y20-v6so8029880qto.8 for ; Thu, 05 Jul 2018 12:08:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=k7nJecALQ2Ni1zTRFHD69B1x9Bb6JcxzQGgr7FGpduw=; b=G9fEjFVAh2TA33JfNY1ZU+3vhjONRMZbg6d3BeLG39gmIXxeYnvDd/1CYCTNz6fKem nOQdnDu2XU1q/l6Z0mvlEdnoC9O+bCjEHVdBfvebdFj6zf9iq1Dfyj1JeOUGvBwCpFUJ +v/SHQwCDpb9Y2IQpKc1WzkOBwctTqUS7IIdrbIe1qvA1ar4axMaOM+D+WhUk2kr16S0 QTO/8MLyDXxJrAXvMTNFxdpL0yobL2P1teg6d1tuNIvShoDOFXvG26C4ZqaFr7dbbqwx YS7Lk+Bq52WdFxxhiHYN8oOtQ9brBUteppYexN8FVabnZm9PYBZ7yeV+6vaFxlqp072k vdSg== X-Gm-Message-State: APt69E1lwakmdIrgWChpRvHCHh7HyJirpzKf2Fhe0VtkE6eYV07m/K0J n4fYlbK4UpfTEA69WcF/Mb6QdQ== X-Received: by 2002:aed:2a33:: with SMTP id c48-v6mr6636058qtd.147.1530817712430; Thu, 05 Jul 2018 12:08:32 -0700 (PDT) Received: from ?IPv6:2601:602:9802:a8dc::f0c1? ([2601:602:9802:a8dc::f0c1]) by smtp.gmail.com with ESMTPSA id h195-v6sm4185525qke.58.2018.07.05.12.08.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Jul 2018 12:08:31 -0700 (PDT) Subject: Re: [PATCHv5 2/4] x86: Add build salt to the vDSO To: Andy Lutomirski Cc: 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 References: <20180703233430.14416-1-labbott@redhat.com> <20180703233430.14416-3-labbott@redhat.com> From: Laura Abbott Message-ID: <2abd8138-0f62-79a5-5a2c-8e08aee171b8@redhat.com> Date: Thu, 5 Jul 2018 12:08:28 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/05/2018 08:58 AM, Andy Lutomirski wrote: > 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. > I was intending this to go through kbuild tree. Can I take this as an Ack? >> 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 >>