Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp350688imm; Tue, 3 Jul 2018 21:00:52 -0700 (PDT) X-Google-Smtp-Source: AAOMgpemsIIlGG1owAk60qOGFtsc4U4HFS5gBuge7UQB1gKIDuKNAgoCFt/omLXY34A3wqmsegMY X-Received: by 2002:a65:538e:: with SMTP id x14-v6mr387377pgq.388.1530676852534; Tue, 03 Jul 2018 21:00:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530676852; cv=none; d=google.com; s=arc-20160816; b=wkMGL88yObgOyc+nLtfEIIlKjvduWcuNq3e7DGVhjCeUhNgwiudi/lr993tGrFH2id Ix9Aoek4LgucVWPfS2Ph8DwyuvbnGKz4aZvcsfa053LXaSTTUss44mouzI3O3C9dnmme ko6AJKq7laKH+9IXG0P0iWIQ939AtLhgRO1wBQ5YwKiNOTMtVX0rh8jUMd1COVtpaCUC H7i+WUSBapz5CvIF7+MFwadNxnsuA2fQuXpticCWeHDl4m85EOa5Kckml2tRd+eN2y7e 5OO6BkEKCtvFyYr6mpub/zWH9HdXqOMOBaFXxkH3kerw5L4LXBYvTcws7z9VZbPqX07d X2Cg== 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=/oFkg9po2YzXABnXxKs2WPeVZbm3BxG6+TveezITLL0=; b=sPEYfmjfOJpRluNCAnWDpQVwlINXaB1ecLz+8lOrQx6yyG3UO4rj2+fJUl9EKhuY2o LXExZNR8wW1dRjXBIgc385rJKzhu5JZre1fMWbPYcap4i/2IkWeDIln8olVr4okNfawa 8HjGuSkgLwf+WHE3SXZyBWSq8slWSdfprezOqc+RSnbNu7GOYTzU24ziq4q5FkgjPI1t 6sK0W1RgjbWtXzRpP4WMa6aSMVcFec4JvvLznhy/uWvJEtCHxblYHSRR7EL2gHJ6PZfJ jH0h2rfyv/CaUmxvVVfekcB/99Fu68n0Tp2TFs2houFZLmqYMSPIfi1LK+zT7p4Kktl3 PCVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=peeqKYTg; 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 b5-v6si2620985pfo.54.2018.07.03.21.00.38; Tue, 03 Jul 2018 21:00:52 -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=peeqKYTg; 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 S933048AbeGDD7y (ORCPT + 99 others); Tue, 3 Jul 2018 23:59:54 -0400 Received: from conssluserg-02.nifty.com ([210.131.2.81]:38456 "EHLO conssluserg-02.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932471AbeGDD7x (ORCPT ); Tue, 3 Jul 2018 23:59:53 -0400 Received: from mail-ua0-f180.google.com (mail-ua0-f180.google.com [209.85.217.180]) (authenticated) by conssluserg-02.nifty.com with ESMTP id w643xfEu003499; Wed, 4 Jul 2018 12:59:41 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com w643xfEu003499 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1530676782; bh=/oFkg9po2YzXABnXxKs2WPeVZbm3BxG6+TveezITLL0=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=peeqKYTgtfdNUcQpQDaY77w/pM6nJeT/UAwq5IOuzGFL6XhQz89MyifIRA0fpMUDh o1z9IFlLznkViBzrNMHBOppxIhpE5EWXw4j0efr3UDUUjrAHnHldXoVE0v1fDU9ekS tAlBv5jrdKryfgssHYsZ9z7/0puQEA8Zg3ldXGFhfI/R+xtEMYTSwd8TP6KoINtJ9S wJoyG30OSvtFNl9DvM6MZ3SmezJ3Qfa5qqWi1MilkL3dVd5JAyLW/50/diXG1VPhHF ED0AEbvXMJ7yAgY0BrV0qP3sT1f6l3xKJyzKejlAZPLBimMi5ul0Uj4hA8MH7uXmxV 6fVC3L4dBFieA== X-Nifty-SrcIP: [209.85.217.180] Received: by mail-ua0-f180.google.com with SMTP id y8-v6so2610572uan.3; Tue, 03 Jul 2018 20:59:41 -0700 (PDT) X-Gm-Message-State: APt69E3ReijaRsU+li9ZqOz2RwYSq/2w5fGm+PEXNec6YW/oXn7dwTLN 3YQGxM0NThGJ6ecOwzSieofrsueJF+jsOTWb75c= X-Received: by 2002:ab0:e3:: with SMTP id 90-v6mr180982uaj.52.1530676780637; Tue, 03 Jul 2018 20:59:40 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ab0:3308:0:0:0:0:0 with HTTP; Tue, 3 Jul 2018 20:59:00 -0700 (PDT) In-Reply-To: <20180703233430.14416-2-labbott@redhat.com> References: <20180703233430.14416-1-labbott@redhat.com> <20180703233430.14416-2-labbott@redhat.com> From: Masahiro Yamada Date: Wed, 4 Jul 2018 12:59:00 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCHv5 1/4] kbuild: Add build salt to the kernel and modules To: Laura Abbott Cc: Andy Lutomirski , Mark Wielaard , "H . J . Lu" , Michael Ellerman , Catalin Marinas , Will Deacon , Linus Torvalds , X86 ML , Linux Kernel Mailing List , Nick Clifton , Cary Coutant , Linux Kbuild mailing list , linuxppc-dev , linux-arm-kernel 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 Hi. Thanks for the update. 2018-07-04 8:34 GMT+09:00 Laura Abbott : > > The build id generated from --build-id can be generated in several different > ways, with the default being the sha1 on the output of the linked file. For > distributions, it can be useful to make sure this ID is unique, even if the > actual file contents don't change. The easiest way to do this is to insert > a section with some data. > > Add an ELF note to both the kernel and module which contains some data based > off of a config option. > > Signed-off-by: Masahiro Yamada > Signed-off-by: Laura Abbott > --- > v5: I used S-o-b here since the majority of the code was written > already. I think Suggested-by is good enough. S-o-b is appended as a patch is passed from people to people. Anyway, this looks good except one bike-shed. > Please feel free to change the tag if you think it's not > appropriate. I also tweaked this to take an ascii string instead of just > a hex value since this makes things much easier on the distribution > side. > --- > diff --git a/init/Kconfig b/init/Kconfig > index 041f3a022122..8de789f40db9 100644 > --- a/init/Kconfig > +++ b/init/Kconfig > @@ -107,6 +107,15 @@ config LOCALVERSION_AUTO > > which is done within the script "scripts/setlocalversion".) > > +config BUILD_SALT > + string "Build ID Salt" > + default "Linux" How about empty string "" for default? -- Best Regards Masahiro Yamada