Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp1099125imm; Thu, 5 Jul 2018 14:49:56 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeyA8WAlV2UvIeouOwJgpnvj7/ZPmDugGlxi8bQ4/wCU/KcZz1Y3UIeLiiVDjPf0UitigZ2 X-Received: by 2002:a62:bd03:: with SMTP id a3-v6mr8022650pff.138.1530827396840; Thu, 05 Jul 2018 14:49:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530827396; cv=none; d=google.com; s=arc-20160816; b=cGMZHY6dwEBN9XhY4lcUtl+wBIl7q71lUz5cf+n+w7398pB+2I8O8G4K0ABzppOmqx C0axovFauV9eYLI+yU7nsL8RuzQvDP3mRypVaP2JL4hhMKde/yGbtZGfeiJ7Pq+fXFnY us/O5MRcGLYT+WAhizevmSs1MPJKvKSWkar3o28caP9rubTYeL0+yCBFdP4N81l42cRi vs/FJhW0c+C9d+ZPUaz67kZHqpr+q7xhoibJvsl9G1aYBX0jo1KkXeKlsbxpZMeDwEPD MD+4j8PpuJ73+mI8tmzw8Fk7V3Wt487qixdTccmkMpQIk58RfxC9mAPPBCg93awxUXHy uVUQ== 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=tFxV4PPFmb/gPG6xKyQ/s0ZOIKDBpGA5k4makDvd1pY=; b=bMyEkUaw1EQ45hbQ9j5+Qe6KQ0idDmbn23Re3WNX1qKqtI44WhAjM13yyjvjHIizBu enTI9lUYCtjMydMzcqBwbjyXsCrUMQyRblYTGHMm3qs8awUMCa7v0PDzYFdq9Wto2TM+ 1aXeoV7Atn1h7GMpuOQ/gq8o9HvME+reym8xa564IgXNVYwFClM7Mq8oqKBG26eYslcZ 3stDhalDrDHVMg93q17g8jfTuQwM9hIeoI1ugELeQSsPAFMNKTydQnn95VxWo+Cjc5gP 1p2brSDaw4qLQcx00LhCdSahNvkQrJLccy5gGm+O4LCqqNYoQWvIHioEYZwIyXkNipb2 1c6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Tee1yChx; 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 k38-v6si6615727pgm.335.2018.07.05.14.49.42; Thu, 05 Jul 2018 14:49:56 -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=Tee1yChx; 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 S1753928AbeGEVr1 (ORCPT + 99 others); Thu, 5 Jul 2018 17:47:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:52592 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753784AbeGEVq7 (ORCPT ); Thu, 5 Jul 2018 17:46:59 -0400 Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com [74.125.82.42]) (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 9C329240DF for ; Thu, 5 Jul 2018 21:46:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1530827217; bh=GqTVS/Rj2AmfOc2IqLNJTGOf8fAM1ND9ms3709b6ncw=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=Tee1yChxPjpTGlGvQf10j81CaUGcvz5NZsIDeNYkbEslMuQRJdTwd44TjeI/utUtz GKTN5o5T/O6gN+rYXVbGU0e9tFvU/Arazc81Ot4DY/NfHtDBR+E5thetnl2BWxtf9b SmvqQJqce9ZDFD+ZIhrPE7ei7EWdMcM8/eRU/C5g= Received: by mail-wm0-f42.google.com with SMTP id s14-v6so12666053wmc.1 for ; Thu, 05 Jul 2018 14:46:57 -0700 (PDT) X-Gm-Message-State: APt69E0Hwuv7vxfpORruNXeqasPwS1GIeonRk+q3GrjDBhs2J3JderSq o6ngiA2Pt3A8dRJs+DATfASqbyrMX4QcHcA6i02jMQ== X-Received: by 2002:a1c:34c9:: with SMTP id b192-v6mr5302813wma.21.1530827216016; Thu, 05 Jul 2018 14:46:56 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a1c:d548:0:0:0:0:0 with HTTP; Thu, 5 Jul 2018 14:46:35 -0700 (PDT) In-Reply-To: <2abd8138-0f62-79a5-5a2c-8e08aee171b8@redhat.com> References: <20180703233430.14416-1-labbott@redhat.com> <20180703233430.14416-3-labbott@redhat.com> <2abd8138-0f62-79a5-5a2c-8e08aee171b8@redhat.com> From: Andy Lutomirski Date: Thu, 5 Jul 2018 14:46:35 -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 Sure. On Thu, Jul 5, 2018 at 12:08 PM, Laura Abbott wrote: > 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 >>> >