Return-Path: Received: from mail-ot0-f194.google.com ([74.125.82.194]:40290 "EHLO mail-ot0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935347AbeEXBgM (ORCPT ); Wed, 23 May 2018 21:36:12 -0400 Received: by mail-ot0-f194.google.com with SMTP id n1-v6so5106otf.7 for ; Wed, 23 May 2018 18:36:12 -0700 (PDT) Subject: Re: [PATCHv3 2/2] x86/vdso: Add build salt to the vDSO 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 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-kbuild-owner@vger.kernel.org List-ID: 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 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