Received: by 10.213.65.68 with SMTP id h4csp1825021imn; Thu, 29 Mar 2018 11:43:48 -0700 (PDT) X-Google-Smtp-Source: AIpwx48616oSmCr9pv7KQ3GCFGUFCwU5LS6ZBmYhHj++3bJ/+92EXcjqjWWl6YRn5ecKdESNjh+x X-Received: by 10.101.97.169 with SMTP id i9mr6256595pgv.31.1522349028881; Thu, 29 Mar 2018 11:43:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522349028; cv=none; d=google.com; s=arc-20160816; b=Z0yT0rVPtRi0j2c6Ew5sRePudJpOOF/Yq1gOlxq/x77hkivJjUgYdT0UrqtNZqN80k +3zUydgn1mMrawONvnh+z8MBFeUaH3VdJyz7rRMi4Fq993PM96Sniq690i0V0Wn9dNeT IQbusF0cqEZ3JtuxalXq4RcIKogfRlpH1icuyW4wH/UKGXQ6ffRd8qH2djf8rfsTy30O DiEUjdq0RM+ImeCHOX0A/F+T4tkqauqIVQcsWl05ZWMZkyPHwaRUQAb1xhDWnSxyyonq 8lMW/tqwU8qd53dL872A/M8XW7H3LD3ct05Knj4oN97saPkthOUBD3VH4evsMXKZcWiD LB9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=QuxFrsSDOrnhZ/yKUfjSn2S9Ab2yP2G1Y+pOvKoz/YA=; b=wNbznp7hTCsIIfCWLKRbNAPv+PhiyD5zBjyBgrCSjlNkSeAewI56gL1f4Dza6trKuz bFIEbJ+Xf8q6OfwdQ76U+S5uYDWaLDeKB8dGn1UbVc+qqKke9MGNZXcyD3Ulsf2l/0Ec LlzlGH/klEG6fN/GQeWiKt0sxPdIJcP1esYzi66swUdiS/gmRmsI+QEYsKK2dQzRCoDE aeu6MUHoMx0+Vhvndftg9DR1fum+GdaqzNeENUcETwNa+IQf+x85KcTA0DsgdU2MYgb6 rtxR3aIAsG2x+62Odz68irz7C0yVGMRbJpbCQT+x0ql2Gy9X9jNe3vfeYrG/KJKSnm5K NYSA== 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 a21si4321165pgd.793.2018.03.29.11.43.35; Thu, 29 Mar 2018 11:43: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 S1751859AbeC2SBT (ORCPT + 99 others); Thu, 29 Mar 2018 14:01:19 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:45698 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750866AbeC2SBS (ORCPT ); Thu, 29 Mar 2018 14:01:18 -0400 Received: by mail-pf0-f194.google.com with SMTP id l27so3750918pfk.12 for ; Thu, 29 Mar 2018 11:01:17 -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; bh=QuxFrsSDOrnhZ/yKUfjSn2S9Ab2yP2G1Y+pOvKoz/YA=; b=qA/Z1yq2hLbUjdzBq9kou9pfGElaVzM9EHICgXzK5sfo2elm7ydArUK38vCD87SHFc 0by9daQAx9K+cRMSMgUnW60o/hGYx+MrwouYdP0tf3Y8o646kONFc/lA7Cj20nU/4+rk m6lDO0YhBXuMrVtFVML5yhQ2yBK2qSAG2sPtqA/fPSeSYWSkDPDOrPqzzSaHMWBQ8Ci/ GSkGszTfCAa+FVIe6wBOkWFUo2xDAC//TkYUY346ygSOwLDO0yq9dzGZO2Rl4q7fZR7Y 2xVst1HU/O9RJ3P+lSd2yUYIw5UobqC8IknsD/CcUP4Aq6diF7oU8ZrNb1ZVimo/4eM8 N/+Q== X-Gm-Message-State: AElRT7GEQokiQ4YUVL4oUILUL4nOb4N+J/D5k0zZRiNIqoH42s8CYejY YaxNJM2M06j6DScJhZJqTIvQ8Q== X-Received: by 10.99.127.9 with SMTP id a9mr6243748pgd.168.1522346477180; Thu, 29 Mar 2018 11:01:17 -0700 (PDT) Received: from localhost.localdomain.utopia.net ([2601:602:9802:a8dc::19fb]) by smtp.gmail.com with ESMTPSA id m21sm4762432pgn.0.2018.03.29.11.01.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 29 Mar 2018 11:01:16 -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 Subject: [RFCv2 PATCH 0/3] Salted build ids via linker sections Date: Thu, 29 Mar 2018 11:01:09 -0700 Message-Id: <20180329180112.11055-1-labbott@redhat.com> X-Mailer: git-send-email 2.16.2 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, This is v2 of my proposal to allow unique build-ids in the kernel. from last time: "" 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) 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 v2 cleans up the naming to be consistent and also switches to a config option vs. an environment variable. I've seen some sporadic failures about missing the generated header so I think I'm still missing a dependency somewhere. I'm still mostly looking for feedback whether this would be acceptable for merging or if we should just persue a --build-id-salt in binutils. 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 +++ init/Kconfig | 8 ++++++++ scripts/.gitignore | 1 + scripts/Makefile | 2 +- scripts/build-salt.lds.S | 5 +++++ scripts/gensalt | 21 +++++++++++++++++++++ scripts/link-vmlinux.sh | 3 ++- 8 files changed, 52 insertions(+), 4 deletions(-) create mode 100644 scripts/build-salt.lds.S create mode 100755 scripts/gensalt -- 2.16.2