Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1535419imm; Wed, 23 May 2018 18:47:02 -0700 (PDT) X-Google-Smtp-Source: AB8JxZonFFihQQTwrG/WSc4XVm7YlW7fu5ZULN+gJW/AiYuBe95r7ego3W8bE06r915pOQx5Lvvp X-Received: by 2002:a62:8d51:: with SMTP id z78-v6mr5097419pfd.69.1527126422766; Wed, 23 May 2018 18:47:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527126422; cv=none; d=google.com; s=arc-20160816; b=lk1HDRxYu0pnQJeUnvnFsdvpqK2pMhZwK7ljFtZm6lKe9vB+GETXxhoPyBsCHzK1Fi d0Yjqw+hwwEs9KtP1qFVDJNRRiRsmQqYCVIXv+sf5U8hbiOs+CB/xmUgeqdTyDggYzYy 5OnJVyygEfd5zI558Ab0p2yU+n9sYMP7Qk49nJFrqa6FKvWeIy09H+O/pmrEXugzd220 0ihdOVqixLkkOecLbiK6YowhvDJeBy88jgo+r6ZQoMWsUCpthhrKB/ZSJavOw4BrjKJC H6IxeJPccW/xfLGCM3hegNfi/eWZdmjzn4l28t0UVPvQbItgHCy0h8xyf6+sBtrkqUUl 0IRQ== 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=Tgfqb0YAgYGUqsRe8eWSiUirzEX8EWMj2FDCXl2xZBI=; b=uVZX9DmJGlfy1dT11HKo8oeqVJbsqaegj+SIiJpCRhweBR2OKOu2BxRzw0e7zg2hIO 1248tyvn+Ivr1iW26i2bWdIqiYgxBvSqlIeMbrs0nh75h848XieFiZu9NvHoMkD/A5ml TEUeSvUjdDCWqT3kWsv8UJRxHq/fF7iwIc8DOvXDvLOjLYcjPB0tvtB4Gzrzp+c/jzOA y6RCqHJ57biWqW1fFsHeXupqGxM9FN/xSZKR+HaMWBujvcjgYtpUW7XVsIcolYx3S0HO SX6Mlk0RAJoVlYuxiRE2HLe0mM6CTsUrKMgzfYoviPYRquSFIcnOLzK/OTQ4dIFzcYTt aMBg== 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 r11-v6si15658761pgp.235.2018.05.23.18.46.47; Wed, 23 May 2018 18:47:02 -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 S935367AbeEXBgP (ORCPT + 99 others); Wed, 23 May 2018 21:36:15 -0400 Received: from mail-ot0-f195.google.com ([74.125.82.195]:45399 "EHLO mail-ot0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935109AbeEXBgM (ORCPT ); Wed, 23 May 2018 21:36:12 -0400 Received: by mail-ot0-f195.google.com with SMTP id 15-v6so27515066otn.12 for ; Wed, 23 May 2018 18:36:12 -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=Tgfqb0YAgYGUqsRe8eWSiUirzEX8EWMj2FDCXl2xZBI=; b=ALPG4pWpZQzLUP7z7fMo2+/8KZDuSqYHNDIvPxat8IM0G7Uy6+Bp0E7OVzb3M9T+WC JaQtinuetg77HJcaYwhzyaQvPYUDlsZP2DtAgrA6el4+p9f2sRX2k0Psp8CFYByonJ68 n3MXNohnoZnUQPDDGoLppP98hVCnnHASKcb1KC/Lz1btCVqOewhQeQjPezSKmPikbIIG q89rj4aX2Ss8vx0ZwtuZtYfMVTmtIXWmkZa5s4nYkMpQPL1+Zr8fH00qQkJhHXRM2zD0 5ut95OzVdPhdyMk5TJo11ZyWuh+wFTcNmwvht94O4xIytDmUVIhewT2HPqi3fYfMuf7A MlHg== X-Gm-Message-State: ALKqPwd2ymW/GRaGJFUJiyyQRcS0hdVm9tWaTK7mOUNV2ROuTQowL/g3 n/8ozkAyZMj7pMNR88eq2ZNbNg== X-Received: by 2002:a9d:2b5c:: with SMTP id f28-v6mr3126956otd.317.1527125771956; Wed, 23 May 2018 18:36:11 -0700 (PDT) Received: from ?IPv6:2601:602:9802:a8dc::d2dd? ([2601:602:9802:a8dc::d2dd]) by smtp.gmail.com with ESMTPSA id h125-v6sm13571042oic.54.2018.05.23.18.36.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 May 2018 18:36:10 -0700 (PDT) Subject: Re: [PATCHv3 2/2] x86/vdso: Add build salt to the vDSO To: Linus Torvalds , Andy Lutomirski Cc: Andrew Lutomirski , mjw@fedoraproject.org, "H.J. Lu" , Masahiro Yamada , the arch/x86 maintainers , Linux Kernel Mailing List , nickc@redhat.com, ccoutant@gmail.com, Linux Kbuild mailing list References: <20180523001939.9431-1-labbott@redhat.com> <20180523001939.9431-3-labbott@redhat.com> <15dcff14-ea1b-18c8-4cd1-06586cf6f05b@redhat.com> <195C83C0-067C-4B55-89BD-9CF3155C6E69@amacapital.net> From: Laura Abbott Message-ID: <6b4c2c4f-00db-22b7-db3a-a1e76899c6d0@redhat.com> Date: Wed, 23 May 2018 18:36:08 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/23/2018 05:06 PM, Linus Torvalds wrote: > > > On Wed, May 23, 2018, 17:01 Andy Lutomirski > wrote: > > > I don’t know whether I’m missing something obvious, but can’t this be in C? > > > Yes, but I thought Laura wanted to limit it to linker file tricks (this thread has gone on for so long that I've forgotten the details of why). > >        Linus > > So we have to update the kernel and every module and the easiest way to do that was the linker script. I was assuming I'd just use the same approach for the vDSO but you're right that there's no reason we can't apply a different technique. I notice there's already a vdso-note.S which adds LINUX_VERSION_CODE as a note. This doesn't include the extra version so it doesn't quite meet our needs. There's no reason why we can't throw something else in there for good measure. Thanks, Laura