Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4749774imm; Mon, 11 Jun 2018 18:44:09 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJp4jzk5bjk2JsmIOx3ELH/Ji9rxxdCxuhkSEEpx5dImW0qCqSV6TEqMuhn1envAM2SoOZ+ X-Received: by 2002:a65:43c9:: with SMTP id n9-v6mr1311601pgp.399.1528767849599; Mon, 11 Jun 2018 18:44:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528767849; cv=none; d=google.com; s=arc-20160816; b=G8ZEPN4Ky0XGC/ESdzAreT3eHuieMJCX34QlzdU6dht9hH33I55SpV5Hfv73ycw3QP ogtUbEGRsLignEfjOv9B463/+8Nj8Mjz49rJDvRYV+fNpcBuiRi82RmViz/DhzPYPPDx lPzj/TIV1d4R/uFQ52g+UpkAJsEjE0LANLvthLApZr95jViHiIQO8YkZIOwBy7t4OCLR 2N+PLQJ+nAg30U8kuaZ05k17gVU9VTnbXhY4S+XKXpg3s9rcvTqTw347SQAOyjGtdJ13 xWK9TU8Jd85kWeD+UdiKSKdCNnAUyFNnXAfNmlVk/XeqDUoVNJwkIjXcAO6PEmp/Vmzh 2iGQ== 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 :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=1SluO0I9LboLAni0Ve/jBpQHgARmV2Y0yfL+OTjvxow=; b=JV0kTUKKO6LuEGb+5Ofuj3bROORrSzfR7oe5YHBmSNS8j/eG9jNSl5DzznV1rAfGTt Hm80HlbrLfNNBX8ongJy9fGI2BsAoYvL5qFZVpcvUqJDyZQfF4HIhSjVzA2VRvdsdyHU U+nSh/ofmLjF0eV54V4pDTl0etW+2Yx5p/yMtIOaWp40EczzDHtX7mooUVt1bCDqajua +vrWb5rKfZpb4nfm0KP1QLoX+SYbtzm7BcWpf4xsnzG5sT+2n6wF0h+NaCVUwi8Jmbl8 EOmq6C8BIh4xma8bI3S3p4kLWAdjEZ3Bozaonvm8HACwCKIt6cGZyYrIeDPJzLLyJIcu b74g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=QkRGqBzT; 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 61-v6si12463246plz.290.2018.06.11.18.43.43; Mon, 11 Jun 2018 18:44:09 -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=@linux-foundation.org header.s=google header.b=QkRGqBzT; 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 S934680AbeFLBaG (ORCPT + 99 others); Mon, 11 Jun 2018 21:30:06 -0400 Received: from mail-io0-f193.google.com ([209.85.223.193]:33075 "EHLO mail-io0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933350AbeFLBaE (ORCPT ); Mon, 11 Jun 2018 21:30:04 -0400 Received: by mail-io0-f193.google.com with SMTP id d185-v6so26193607ioe.0; Mon, 11 Jun 2018 18:30:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1SluO0I9LboLAni0Ve/jBpQHgARmV2Y0yfL+OTjvxow=; b=QkRGqBzTpXB5MMGRneex2VIuzgFD2GxgBZTTPGivDwYyc0ygj7ZQFSTVJ60q3bc0r1 UQ1Q7BP+FX1DOYbVI11TOnYtLWNxkpXNtH8wMpvqxEqs5U20Mnn0B9uohLI2c+JzTjao 6fwL9nms3O0thlS9i2sRII4qJG2L7dg8kOB1Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1SluO0I9LboLAni0Ve/jBpQHgARmV2Y0yfL+OTjvxow=; b=VujW2NnMepOQrStWtfEIN830OJk9GzmEBn2kvYkr5UnosJWJM42CIJtFPeEVmxpqqG iMG8yNd0vUAK5jXMSxpwzmK4mKrd2dNTNVU5aruRHccWRpFG4Dk/Y4RlnbuBSrAjsrBs tqeDwQfe3aLzkGCFa3a8GXbHfaQSKVmA3x7N2FzAuIse8cQNwpZDZGdOdRU4pe5gM+WM fAdbavsqeSzTxF0PkdVojVZTBGwPE2FOkUN7pNmLmwmYcuKWSX+5gjTwB7Dm5uBMO9Pl cZssQ7EBsGGhNR2Boxkr0Ls6Shk18AzYQ0td4PyAJhKon/q01PEOqrTvVLHfe1ZZ+CnT bB3A== X-Gm-Message-State: APt69E05Vv3cj0jlkCF32nwAV/bgUZJ6xaTUr5CF0KslauO4t6KW2OD6 YmLPucNQcxZ79CDH/SaIBYoGyxfeKR3klOZzOGY= X-Received: by 2002:a6b:f90b:: with SMTP id j11-v6mr1525242iog.238.1528767003771; Mon, 11 Jun 2018 18:30:03 -0700 (PDT) MIME-Version: 1.0 References: <20180612003224.3658-1-labbott@redhat.com> In-Reply-To: <20180612003224.3658-1-labbott@redhat.com> From: Linus Torvalds Date: Mon, 11 Jun 2018 18:29:53 -0700 Message-ID: Subject: Re: [PATCHv4 0/3] Salted build ids via linker sections To: Laura Abbott Cc: Andrew Lutomirski , mjw@fedoraproject.org, "H.J. Lu" , Masahiro Yamada , "the arch/x86 maintainers" , Linux Kernel Mailing List , nickc@redhat.com, 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 On Mon, Jun 11, 2018 at 5:32 PM Laura Abbott wrote: > > v4 takes Linus' suggestion of using linker fill to insert the build id. Heh. I was hoping somebody would come up with a way to avoid my crazy "put a LONG into an aligned section to cause alignment filling" thing. Because somebody will ask "what the heck is the meaning of that LONG(0xffaa5500) thing"? But since I couldn't come up with anything better myself, I guess I can't complain. > This is pretty small but I also know people can be picky so I'm open to opinions or suggestions here. I'm not sure anybody will care about 32 bytes. Although maybe it could be made to be just 8 bytes (four bytes to force padding, four bytes of padding) and put somewhere where you'll have more padding anyway due to being followed by a PAGE_ALIGNED section or something? I don't think we care. Anyway, I'll pull this if somebody sends it to me, it seems to be fairly minimally invasive and apparently fixes an issue for distros. Linus