Received: by 10.192.165.148 with SMTP id m20csp2742480imm; Sun, 6 May 2018 23:44:41 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoDfSgdYhl7HvHFPog71deOlm6oXQCvPBIR7Wf24EUm6vTk02msHkGtRsUzOlx0k5aDecFM X-Received: by 2002:a63:6185:: with SMTP id v127-v6mr29001641pgb.441.1525675481474; Sun, 06 May 2018 23:44:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525675481; cv=none; d=google.com; s=arc-20160816; b=eWIZHsoe9trSqNPitD/a0vF9Djvex+LgktqnRiwMFTbn5ZedhSobZkjUb8PKRPNfNf o3sPOZVG5V2BcRuOoePXnOeKvb/RQLRYt+QEusDwe+X7pDhluLiBNQVTrdIiq4a3cbKy GUVcWUjI6KC68QVDT5eC/tH8HyeBqgoCO58mKpGkUN8TLNZzgli5CDuFbUKkC5xJnH7+ LNjxS470c7q2H+taabTCr33fo+UBFUhEl2mOv/mng1EcqdontqhvjG24MyPo9aQEPGup Gd4GWcQ4E/02SE63b1S8Ep8CXdZe0w84hXHGjEQcs1x0m6csI2jWvrfqg4R7+5uhh7yT efEw== 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:dkim-filter :arc-authentication-results; bh=257+gycaKEE9butQ3fRLCUyXewZ/BGEUVGKbtUBFGk0=; b=Ds7mi7bgseUXdG/uBhu+znj3ssmT8n7VVOG3/J0NUO8VLScYBg9X4Fo/2bRDkhgNl7 ynCQJmVnEpdxasE9PViQlU01ipfdvMf1+VJNMSFDG6clwsZAp+xCdTgfwY2c4pzoIsMI C2gRShB+p8ixdTBzqWnQEm3qUl+s7E1MCdGTnzwsyGcKQVZG3Xa2uCGCcUdU0RoUXHrh P6YfslilsaZ59g4WR/qkVmq0kNiCiwoPCzui9BnVeqmP42TacucWivNCjgJBM+fVdU+8 vf8lcEePAmvQ20ZNjRld0341ayuaMrb/mVeuAFy4Ev2GUmj8O1Kx6B/XjG8l6glt93cP 7PjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=2eBsSwEn; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x4-v6si9463490pgr.301.2018.05.06.23.44.27; Sun, 06 May 2018 23:44:41 -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=@nifty.com header.s=dec2015msa header.b=2eBsSwEn; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751963AbeEGGnw (ORCPT + 99 others); Mon, 7 May 2018 02:43:52 -0400 Received: from conssluserg-01.nifty.com ([210.131.2.80]:44633 "EHLO conssluserg-01.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750980AbeEGGns (ORCPT ); Mon, 7 May 2018 02:43:48 -0400 Received: from mail-vk0-f46.google.com (mail-vk0-f46.google.com [209.85.213.46]) (authenticated) by conssluserg-01.nifty.com with ESMTP id w476hbkE021691; Mon, 7 May 2018 15:43:38 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com w476hbkE021691 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1525675418; bh=257+gycaKEE9butQ3fRLCUyXewZ/BGEUVGKbtUBFGk0=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=2eBsSwEnWVvl5ZbvJ8JTHvrFSToF0m/R8zwUkZ9CJnIy/X0qo93h2BYge6EhqnMd5 5vV0H/3rQefddr+oiafuvQMyFQd6oEQ2tRICjxGJbkZuDYYmFTG/V5E3tTC9vcJL+K s0DTJQrM72Q6wjeZ8XT8Sxmzfha1O2EfSUJjGuhd4qrN1AAjPZij3ZeWLqFFbw/trg 4/QGMNwzAImyGbRy9LmwD0MLSvFm+vnuJQTgye2Uw7fgpYSKdu6BMZMd/y+CSRv22U /6Zt/fK249GgJpU8k8bfmFk25quI2u2QYG1PukMnIayz/0J/fd/sJJPpgyPqOgV20B Obo6FZTIfYsEA== X-Nifty-SrcIP: [209.85.213.46] Received: by mail-vk0-f46.google.com with SMTP id m144-v6so16764133vke.4; Sun, 06 May 2018 23:43:38 -0700 (PDT) X-Gm-Message-State: ALQs6tAPllEGvLhEcE3IX9638Tiuavz2WIQlDKRLDRq8ynSDJCeSaoa7 dD6v/TIiowyN9l4XmhPS/tLNaelwY5yugIwdQpo= X-Received: by 2002:a1f:8e4c:: with SMTP id q73-v6mr30055758vkd.65.1525675417438; Sun, 06 May 2018 23:43:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.85.216 with HTTP; Sun, 6 May 2018 23:42:57 -0700 (PDT) In-Reply-To: <20180329180112.11055-4-labbott@redhat.com> References: <20180329180112.11055-1-labbott@redhat.com> <20180329180112.11055-4-labbott@redhat.com> From: Masahiro Yamada Date: Mon, 7 May 2018 15:42:57 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFCv2 PATCH 3/3] x86/vdso: Add build salt to the vDSO To: Laura Abbott Cc: Andy Lutomirski , mjw@fedoraproject.org, "H . J . Lu" , Linus Torvalds , X86 ML , Linux Kernel Mailing List , Nick Clifton , Cary Coutant , Linux Kbuild mailing list 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 2018-03-30 3:01 GMT+09:00 Laura Abbott : > The vDSO is linked separately from the kernel and modules. Ensure it picks > up the comment section, if available. > > Signed-off-by: Laura Abbott > --- > v2: Updated name > --- > arch/x86/entry/vdso/vdso-layout.lds.S | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/arch/x86/entry/vdso/vdso-layout.lds.S b/arch/x86/entry/vdso/vdso-layout.lds.S > index acfd5ba7d943..7c78dd39aae8 100644 > --- a/arch/x86/entry/vdso/vdso-layout.lds.S > +++ b/arch/x86/entry/vdso/vdso-layout.lds.S > @@ -1,5 +1,6 @@ > /* SPDX-License-Identifier: GPL-2.0 */ > #include > +#include > > /* > * Linker script for vDSO. This is an ELF shared object prelinked to > @@ -95,6 +96,8 @@ SECTIONS > .altinstructions : { *(.altinstructions) } :text > .altinstr_replacement : { *(.altinstr_replacement) } :text > > + BUILD_ID_SALT > + > /DISCARD/ : { > *(.discard) > *(.discard.*) > -- > 2.16.2 > For consistency, I think '-T scripts/build-salt.lds' should be passed to cmd_vdso in arch/x86/entry/vdso/Makefile. -- Best Regards Masahiro Yamada