Received: by 10.213.65.68 with SMTP id h4csp1125074imn; Mon, 26 Mar 2018 00:51:07 -0700 (PDT) X-Google-Smtp-Source: AG47ELsjevrG9O3RDkljcY96vpSTYMr2U29f1IRu6gTmXMkoG/jO4/eUgGXhtHNRz0yGVtxOIdeP X-Received: by 10.98.138.144 with SMTP id o16mr12841605pfk.216.1522050667740; Mon, 26 Mar 2018 00:51:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522050667; cv=none; d=google.com; s=arc-20160816; b=0u+gAKyJZwazUGjYSbN9z17qycxJCuMCs6tF1l/9x6Lsgbk30KH7c+txRkP6NR2tzA FM5K3KHtrdI4Uu0STyArGrtgKDbGnrZugiF/pF80K9GVxjbo0g/x9WP8/jRXlb+Lx1+K DQyivckOkAReUQkzSSve3dEQKMo9wWE8F1GmXCIhdIIj0nphQXCzxEq2SUbeBMVGkKxW NNwr2wpfn/KfMMJV3W2k/PfDKLcRKj0kh4L/6PArAKZZcc+Vu1Gx4MCt40O1RNYZTk8L 4u92hJcVCOI8byO+7dO3ynHXD1hJVlEwiEHRb7UQq1AZB3z2vdtdaDEi7l69nLUXOoGR hASA== 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=lRSFavYqYTl/F+7MsWNf6dQj57NZaj/kp6G71GfAeIE=; b=e23fxJco4y+JuxE0M0F+T4JuFvBQV9v8oACCuAV+FRwFJqo0ZPpIKHQ1yL+Cqb+tQc Gg2zzMUtjKEtypfLvfL86QntbeXQ0RZrX88cnnFIKJiDqwdfACuJ5DfFUjSy9PPbQraN 0U0WvRdQ/bIl2NAys2bJv+IBaQ+ANnn2SAmOoMOVHUdNVKlFrRDhEGhX51cvfRrgnqG6 Deikg2V3fyFFkPLbJoT+BHEszw+kPMwka3526WgWkQMelZWWw3zZTolPQMXFTJqXT/fj t68pmS4RWyrWhSW+fNUKpnUlG9l5VgQIrEdpBPw0BxA5KReRrC4xD5stX4hmr6bMtMJe b0Mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=xUqHvi4f; 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 i1si10122570pgp.542.2018.03.26.00.50.43; Mon, 26 Mar 2018 00:51:07 -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=xUqHvi4f; 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 S1751115AbeCZHtR (ORCPT + 99 others); Mon, 26 Mar 2018 03:49:17 -0400 Received: from conssluserg-06.nifty.com ([210.131.2.91]:32980 "EHLO conssluserg-06.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750955AbeCZHtQ (ORCPT ); Mon, 26 Mar 2018 03:49:16 -0400 Received: from mail-ua0-f172.google.com (mail-ua0-f172.google.com [209.85.217.172]) (authenticated) by conssluserg-06.nifty.com with ESMTP id w2Q7mqF3026208 for ; Mon, 26 Mar 2018 16:48:52 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com w2Q7mqF3026208 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1522050533; bh=lRSFavYqYTl/F+7MsWNf6dQj57NZaj/kp6G71GfAeIE=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=xUqHvi4fcleipZ11OFOum1c/MXO71m/aJxSl4zFsdlCBDmyI1QpJindbzplxrZrMm 8hEQ4cd20sHlu2YTmWNyjqSByvkz5YOTPhpm+KCLOcQyuW8aDYhVL7E7jLmvq30A5J S/K3RkWF82t0zYrw1i5pQoZk5YD3MoyUqk78PkbhafP+aNxR+5XphrfmjmPf01VLkv qViW8If9aq0cMlNM38CU1cZS5kEG3qnR9xhtKWVtveReTgc+7WHLFfrbmAO7aqBxDL fbu6vWhq7wZg11ncKM4tJnuwK4Q7pBgaE0amPWP/ViundrhKD6c0gej+eD4dFMJPpc vfdAqxbCrHCYw== X-Nifty-SrcIP: [209.85.217.172] Received: by mail-ua0-f172.google.com with SMTP id d1so11467698ual.13 for ; Mon, 26 Mar 2018 00:48:52 -0700 (PDT) X-Gm-Message-State: AElRT7Fgbrz/rsl0EuIWET9YSSb/Jqz++D0mBt29k4c8LGFHiAlRg0Jj KhoodUNARsmaKmX1dVFtJ+fJibLrD1kjMKKx8XQ= X-Received: by 10.176.20.112 with SMTP id c45mr25159846uae.82.1522050531495; Mon, 26 Mar 2018 00:48:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.29.150 with HTTP; Mon, 26 Mar 2018 00:48:11 -0700 (PDT) In-Reply-To: <20180321014635.29113-1-labbott@redhat.com> References: <20180321014635.29113-1-labbott@redhat.com> From: Masahiro Yamada Date: Mon, 26 Mar 2018 16:48:11 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH 0/3] Salted build ids via linker sections To: Laura Abbott Cc: Andy Lutomirski , mjw@fedoraproject.org, "H . J . Lu" , Linus Torvalds , X86 ML , Linux Kernel Mailing List , Nick Clifton , Cary Coutant 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-21 10:46 GMT+09:00 Laura Abbott : > Hi, > > This is a proposal that's come out of several discussion for Fedora but > may be of interest to other distributions. > > In Fedora, the debug information is packaged separately (foo-debuginfo) and > can be installed separately. There's been a long standing issue where only one > version of a debuginfo info package can be installed at a time. Mark Wielaard > made an effort for Fedora 27 to allow parallel installation of debuginfo (see > https://fedoraproject.org/wiki/Changes/ParallelInstallableDebuginfo for > more details) Is this a kernel-specific problem? IIUC, the URL above is discussing packages in general. Any executable from slightly different versions could result in identical ELF. If so, will you tweak link process of every package that needs parallel installation? > Part of the requirement to allow this to work is that build ids are > unique between builds. The existing upstream rpm implementation ensures > this by re-calculating the build-id using the version and release as a > seed. This doesn't work 100% for the kernel because of the vDSO which is > its own binary and doesn't get updated. After poking holes in a few of my > ideas, there was a discussion with some people from the binutils team about > adding --build-id-salt to let ld do the calculation debugedit is doing. There > was a counter proposal made about adding some extra information via a .comment > which will affect the build id calculation but just get stripped out. > > This is an implementation of the counter proposal. If an environment variable > is set, that value gets added as a .comment section to the necessary binaries. > This is RFC mostly to see if this approach is plausible enough to be merged or > if it's worth trying to update binutils with the --build-id-salt option. > I don't care about any names, I was pretty inconsistent. If people are > roughly satisifed with this I'll probably just change all the names to > build-salt or whatever gets bike shedded. > > Thanks, > Laura > > Laura Abbott (3): > kbuild: Introduce build-salt generated header > kbuild: Link with generated build-salt header > x86/vdso: Add build salt to the vDSO > > Makefile | 13 +++++++++++-- > arch/x86/entry/vdso/vdso-layout.lds.S | 3 +++ > scripts/.gitignore | 1 + > scripts/Makefile | 2 +- > scripts/build-id.lds.S | 5 +++++ > scripts/gencomment | 19 +++++++++++++++++++ > scripts/link-vmlinux.sh | 3 ++- > 7 files changed, 42 insertions(+), 4 deletions(-) > create mode 100644 scripts/build-id.lds.S > create mode 100755 scripts/gencomment > > -- > 2.16.2 > -- Best Regards Masahiro Yamada