Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp179671imm; Tue, 3 Jul 2018 16:36:30 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcRllA78cGvim4ua0jbrufauKFRZ0cq5JmHwWvfXShKFGj6f/CccIAhJ1C49VU/mQ0Q/xps X-Received: by 2002:a63:b705:: with SMTP id t5-v6mr18683652pgf.45.1530660990484; Tue, 03 Jul 2018 16:36:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530660990; cv=none; d=google.com; s=arc-20160816; b=PF/e77l5UEQnv8ni0UuYj2FVCpOrynxTI3rNcKH1w4IrYaKnh2CzsQL8tNpJ3CeTnj 7OKGyt5bNeTeSuaoqIlWe6htys49uhLHCLsFrdo1gaFYMI0BodMZf7VOHyyzGAf+Qbk6 K9lmywnNApF6gnz03kzB7sAFQX/9bk850q0UkxeDv3kz3+6cBVnCAHK8wwuFvvOD4HsM fJB/4uvGss/FtVU9JtzGiSTVeSpYynSGRIG61rtrGS3y6RqkNQ8wlqVuFUm+fAzekh+0 AXluZg9dXjdzUune3PaM2etrektH1P6CHio3QLgRIyp55u0oqxWweKI9oAc1Hr4AYV5d 7YDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=PPKzxzbXZeTzzpbPbKd1oISc49HTYwkroXCel3beca4=; b=e6hH7wJqhl+sPg4np3mE+iT/eQcLtePiSyC4yP1OzpQFrKEQRDsCnh4kfQ0/eBJL1k IPr8S5oSTXdAwAPLVCQWNdItZDaaa48t8+8otX4C+oKOM1NOxfKQEwOiIRBtGb/QE68Y 2wXuVpMDJQrVrcGyREEWukedw7aNeM2eJghKT4U287tQ5vHx1rQE/RDb4HGITqkSBy/I ZLrSIHPVYdj7KiRKU/nRk90xe3R2kfX8U5frkvWmgZP2iPBjLOAVyUD3uNq2UbXDHSLa wxyrvOxG1IV5iie9eM+vvIMBVZoTKIk2MyACTHmCmLNKpzcNXO3q7/AHUEvddyv4BUp9 6RpA== 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 g67-v6si2181914plb.73.2018.07.03.16.36.16; Tue, 03 Jul 2018 16:36:30 -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 S1753537AbeGCXeo (ORCPT + 99 others); Tue, 3 Jul 2018 19:34:44 -0400 Received: from mail-oi0-f66.google.com ([209.85.218.66]:40211 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753493AbeGCXel (ORCPT ); Tue, 3 Jul 2018 19:34:41 -0400 Received: by mail-oi0-f66.google.com with SMTP id w126-v6so7222964oie.7 for ; Tue, 03 Jul 2018 16:34:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=PPKzxzbXZeTzzpbPbKd1oISc49HTYwkroXCel3beca4=; b=ODOIqz4e/raHhKGDPm3sYhfF/086i7s/JOO98yEC0xJGKJwseM6y6/kM3oYfRvRZtG RAYmeZI+ZqewO/2+T2KHwlNYyouKK6MUYscJJmlsekBCaB44lUCDFXSBrMQJkgM5geaE JfDcRJwLoC20+YzqUN3/z6+0wqgrwdQLSi/OVXkdkQbQvbDRDJJSwA8cAeP6XLwHSLrc IDvxEPZ+5h/693/zkP6Ypy6pksRfWxdPBkeA5GwVB/OdPX7lVWJlWsikfTeAATdvokGG e55yGO5DpBAPNm0ewsBlTe0FwNPX0lvDNtxcyU1vklB3mx1rZCiXcOXfpPK//vdcQS1a ISJg== X-Gm-Message-State: APt69E3DWmRF5DE1Dg4t08/l7F6s2Mkj68GFhyT/865cQBcTm6KYmYka fwKyj4YkflEl0IMRQqpoLZoROQ== X-Received: by 2002:aca:4286:: with SMTP id p128-v6mr21394232oia.242.1530660880792; Tue, 03 Jul 2018 16:34:40 -0700 (PDT) Received: from labbott-redhat.redhat.com ([2601:602:9802:a8dc::f0c1]) by smtp.gmail.com with ESMTPSA id h22-v6sm1828702otc.25.2018.07.03.16.34.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 03 Jul 2018 16:34:39 -0700 (PDT) From: Laura Abbott To: Andy Lutomirski , mjw@fedoraproject.org, "H . J . Lu" , Masahiro Yamada Cc: Laura Abbott , Linus Torvalds , X86 ML , linux-kernel@vger.kernel.org, Nick Clifton , Cary Coutant , linux-kbuild@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Michael Ellerman , Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org Subject: [PATCHv5 2/4] x86: Add build salt to the vDSO Date: Tue, 3 Jul 2018 16:34:28 -0700 Message-Id: <20180703233430.14416-3-labbott@redhat.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180703233430.14416-1-labbott@redhat.com> References: <20180703233430.14416-1-labbott@redhat.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The vDSO needs to have a unique build id in a similar manner to the kernel and modules. Use the build salt macro. 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