Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp979772imm; Thu, 5 Jul 2018 12:21:27 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfO221k+CxXJ6cibtXieH03fqj2veTRWkfiWfLNKERGXNXU0xKcHapmcJG76L+2F1joxCMt X-Received: by 2002:a63:8dca:: with SMTP id z193-v6mr6856532pgd.228.1530818487449; Thu, 05 Jul 2018 12:21:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530818487; cv=none; d=google.com; s=arc-20160816; b=vmp/krbTsyabHzC/FRW6YvYkVgt/2nD7pSZFx4W2t1YDSVutAXyXbT5rAw/ae4of9C 8V87ShYCx3G5Aa5VvQsxrFD7ItGpTNqpprog1euEx5vwoQuo6N88Zr/2AOdFWGKPNZlC qSxKXjiV0JPk5LKt0+Do1WD2PV91LM7uOybMkee+p7IYKEGR0tiAFDOLsK447SVz3I/h VGWmtn28o/kA/5BVqoxebQc6Vhg34SOhjRJXWpjfnBS4rCIKW+/NHL6ybJNQ5TEZ4wVL eohqo7TaXMxQCx2mslqHK1lDWpFa5yye2fpbtd11oH+W9YjAZR2w1r1EOc/PzqMcxUTe vhag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=9iFPdkpqz6OKKB7zkn4shqcYtK+7CI/1F4tW+6bjexg=; b=aXAq0DnNUgzBPtLReHPg91mQuJyW9WLZQVmoV2pvT74cGtU5OpeCWrAeVdeS9frpiQ AS83QzCunCUvr1XQB73mzMhM0fTue/oFsxleIcN53N5Iug9NHYPKjiHTrVJ5wybUDOX5 xYxmgf5zm4IxaZofVeO3F2URqNU4BkhbCF0+RN6tVVttd16+HkkRatGilGaHbKPc4Gwg IVg8paiz89vtB60SDDoC5ibh8h219N3c81Lz7v1GHZ4VFVJ0YgGRCLd8IiM+OdE7h6r7 c0NDjOoIWJeCwLex4Nel/2jPft+nSfTAtO7LTU8CZlKdl1lsrFj+m9fua+xsZePFx0yK /zDw== 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 x22-v6si6523230pll.24.2018.07.05.12.21.11; Thu, 05 Jul 2018 12:21:27 -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 S1754080AbeGETUd (ORCPT + 99 others); Thu, 5 Jul 2018 15:20:33 -0400 Received: from mail-qt0-f193.google.com ([209.85.216.193]:45910 "EHLO mail-qt0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753844AbeGETUb (ORCPT ); Thu, 5 Jul 2018 15:20:31 -0400 Received: by mail-qt0-f193.google.com with SMTP id y5-v6so8052998qti.12 for ; Thu, 05 Jul 2018 12:20:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=9iFPdkpqz6OKKB7zkn4shqcYtK+7CI/1F4tW+6bjexg=; b=kd1Ivb+NYaN0CDMTun2yzEr14oeUw8WEFcvP2owLyiEiUQBS/d5i0XgXGDmMJOAB3z Mp/O8eZ6HIraW45l9glJfSXRsOoB/ld3B1o+hrQvBgowG+etf3owyuFOGmX5i8GHQ7c0 3Gq6UHri3Je9lKy3YBl3zXWyq/j0dqOetL1SnFZ4ERY1OkSK6cglgR7GlVCe12jVqRyz MBaobvg3FFQjwRXj49Bt2SAUblpZc+9bGGGkgKUfeRnQecmSbdSBqyMz1dSfQeWzuAEt nMOgYqyq021goo+M3rLQSNTbzprCTmWvhN6wTD0FT9tKsWLKS2uOvpYIwPoMS4MWPuMI nLCw== X-Gm-Message-State: APt69E0O2VtRROA9L4FvVSwCCrKCNmqnkuVpEPCWE3GFz4fq6mn0XITe HgMDeWB5E4lEBwk3GVXsWKt9NA== X-Received: by 2002:aed:3848:: with SMTP id j66-v6mr6618183qte.218.1530818430873; Thu, 05 Jul 2018 12:20:30 -0700 (PDT) Received: from ?IPv6:2601:602:9802:a8dc::f0c1? ([2601:602:9802:a8dc::f0c1]) by smtp.gmail.com with ESMTPSA id h195-v6sm4204024qke.58.2018.07.05.12.20.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Jul 2018 12:20:29 -0700 (PDT) Subject: Re: [PATCHv5 1/4] kbuild: Add build salt to the kernel and modules To: Masahiro Yamada 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 References: <20180703233430.14416-1-labbott@redhat.com> <20180703233430.14416-2-labbott@redhat.com> From: Laura Abbott Message-ID: <5e3ce0f4-0c4b-e0aa-2b21-9bf4b5bce9e2@redhat.com> Date: Thu, 5 Jul 2018 12:20:27 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/03/2018 08:59 PM, Masahiro Yamada wrote: > 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? > Sure, seems to work fine. Thanks, Laura