Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp1221610imm; Thu, 5 Jul 2018 17:52:48 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdcOnbVml6DUwGIwjBSNC0mDnLvTxEVdp1E2cso21boLMaqr+0wUyYNk/ltuViHJfQ7eD5M X-Received: by 2002:a63:647:: with SMTP id 68-v6mr7532905pgg.205.1530838368856; Thu, 05 Jul 2018 17:52:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530838368; cv=none; d=google.com; s=arc-20160816; b=PaYbm0+havq19HTjzsTcEP7sQLxtsTdTmQK1eHxCyeK1iGEyDoo9fVa4jWOD6ZFdUj 2I+N3vyMGR+/cRvo28JpOHFKNiTqbxGjZshrQeNSEBQ4kTAJWPlCAjsXjkKlJbETyXSJ LvGrKl/VjABmuFw8DztQV0fKQf8vZx1ETy7wO1smqkTmyj0xLEoZUjUOYlGM3TSwPhh4 T6ZpdmRQx1Y8qJhyHdoDFA/x4hP8cQMOmbwLRlZxq20N09T4KUT8Ipd346UB68LkxmuA /aHTiQ3MIJHC9D20k+AfYvEp5kDqY+ySorXun0wRzD23AXloZ92yeH/huYSnaVUEOIKZ iGhg== 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=67hlObYZQvpyPrZPGFFFmsXvb23O2m/LLRXIOlSOTJM=; b=yZ0bo804cpPBjZgflHBk0lBXKQipA0X/e0a3lF+/JTmWh9+/vaLiERvn652hND9c5G ZaN6QFDsBvYviCsLUzH5Bu3aKYq0YfyZPZ2qyxar984RNMIj8YbesCZXu3mrvMAeUhls 8KGRzaPLmbZYUNc79mFm73zb+IbqglZxynstfdGGhpwgH3zic9CldvpePvUMsL08w9sz 6Op1OEupgReWQKlTL5YkY7QbXPlrFZRb4gLdooRHHYh8Nf2258fbKQJ1t9GhoKb8y5cQ ITdhaNgCesdI5kMwRr2eiM0kscp3Y3pelKnEYHzhHIHlOeCtqKT0Q1KhH1AKTh2flLEH AFEA== 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 f3-v6si6917243pld.513.2018.07.05.17.52.34; Thu, 05 Jul 2018 17:52:48 -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 S1753927AbeGFAuc (ORCPT + 99 others); Thu, 5 Jul 2018 20:50:32 -0400 Received: from mail-qt0-f194.google.com ([209.85.216.194]:41348 "EHLO mail-qt0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753661AbeGFAtx (ORCPT ); Thu, 5 Jul 2018 20:49:53 -0400 Received: by mail-qt0-f194.google.com with SMTP id y20-v6so8710580qto.8 for ; Thu, 05 Jul 2018 17:49:53 -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=67hlObYZQvpyPrZPGFFFmsXvb23O2m/LLRXIOlSOTJM=; b=Wr7neszQUrvdPPIJmUHzzlM8Ycs3jBHHyAW/q62Y22CVLbbpZuJcoR4wKuRgmlm+Ch PvOHwYs4c3jkhTDx8rb9zZHqGN03r2mduM8YJwn9uRtzfAfD41aka0sg18wRrjsuW2m9 AV1HnHC8ypD7Uw8Ga5ZUCWvq5g6TjOBR1k/M10Sx1hP1DCVd6l78IrCrUuRexrbWTnRs y/MDE1s8pHH2mbKp9OZY69gXS8bQsXaT/ZXWNPT967FALdMAJezcEPl2qocoEDDaooFF 3Ja/9i694VL5omTCbGiSCLR5tx6efa5uVIUge2M7379YcMUtvF3gDvBKGqWOoDzutoxU 2eOA== X-Gm-Message-State: APt69E1xS8m3BVcDWytJtnux89TPYji2PraOPV1RtRTupYLMzZjS5/uM u48v+4I7bPRG2+83tm4+CWFR3w== X-Received: by 2002:a0c:9351:: with SMTP id e17-v6mr6973648qve.4.1530838193023; Thu, 05 Jul 2018 17:49:53 -0700 (PDT) Received: from labbott-redhat.redhat.com ([2601:602:9802:a8dc::f0c1]) by smtp.gmail.com with ESMTPSA id q67-v6sm4675205qkb.16.2018.07.05.17.49.49 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 05 Jul 2018 17:49:50 -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: [PATCHv6 2/4] x86: Add build salt to the vDSO Date: Thu, 5 Jul 2018 17:49:38 -0700 Message-Id: <20180706004940.32587-3-labbott@redhat.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180706004940.32587-1-labbott@redhat.com> References: <20180706004940.32587-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. Acked-by: Andy Lutomirski Signed-off-by: Laura Abbott --- v6: Ack from Andy --- 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