Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp770113imm; Fri, 14 Sep 2018 06:10:20 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY/eovVyFfkktyFwhjTS0MXUYOJI6zJUahBgRVyOnWHSEFjF8ZT6TEhbAim1MC1pha4cJv4 X-Received: by 2002:a63:ea0c:: with SMTP id c12-v6mr11801695pgi.158.1536930620200; Fri, 14 Sep 2018 06:10:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536930620; cv=none; d=google.com; s=arc-20160816; b=vtGlNXF0jWQkCvX7wSXmd18p6PA10tyZHF7WrUT+rSJT0GbnaWs4SfI8uqUHVPR/8H NegRd8iG7viSmwtWkPp6BHoq0VyUzCO35sAVbhFeDR1PY0Jvtovyg7z6owKgWfNRdtzd /jx1yeS8fIDkxzkJiT5qYUIK9xIFvwHO5TOXKA9OH8EVW7/jrulPXaGyFWctPM/Qp3x2 kbpeo7NP0v6qb4JeiS+hyFoZkl2zJxb+h/Sw/w+cgbaOtK+0cgMxrH8nXnnz+J6/Tqai ZDFL/6yXJ+K/PKef4SCrY2855iODH53cPZzJbAN0TS+/S0ye+bchmI0uZwmHsUptnrks rexQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=NF29tKOzYCiURtg4l6vs2wbn0JpKa4nWYshkG8p/AJs=; b=zfgsipG2NGxowQuvaZ8pLW/EMANZU6eA2F0AvLJjqoJkCMnStBmzzPuk0rKEcWnnkj /oZk6fyR/elSSlEaWzUoENLTeRs0ZgcBjdRfoRSdN8glwJufu9QK+0mcypTGC4bG1anZ VoEpANkHLss8FKFY87WKUmIRCnH3NLc57u/hG6Cpr1+LqBToreNLmdZIq4chX4lb8jnw zW8SUfWMTNbu/NJedT6HqnnTBywgSxee8tum8bRqX5ilYA2TH+GfGlBdJBMYJLYNp5va c28NwQV8LT9m5l33Z4ztlu/isqIBoKVeXlUJDAi1/zerD7d7U0ujeveKRkNNFrRTyW3O w8Pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=T1xFGiNm; 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 e7-v6si6837001pgc.233.2018.09.14.06.10.04; Fri, 14 Sep 2018 06:10:20 -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=fail header.i=@infradead.org header.s=merlin.20170209 header.b=T1xFGiNm; 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 S1728054AbeINSYQ (ORCPT + 99 others); Fri, 14 Sep 2018 14:24:16 -0400 Received: from merlin.infradead.org ([205.233.59.134]:41142 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726905AbeINSYQ (ORCPT ); Fri, 14 Sep 2018 14:24:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=NF29tKOzYCiURtg4l6vs2wbn0JpKa4nWYshkG8p/AJs=; b=T1xFGiNm/wC6y9OWIc0HMg4HG wJcVuJ5hFiP+bE/ICETitQQhwEn3W1YbOqi/0wqLNJROb0B7r3mjQmM7xgI5AX/Gq3iXBRo9Fy+Hw 2Nh++CEGikarvaha1glOPx/DjcktyX4s5nkSp4kL/eHratF31cjZxvjSJrvNQkJ4t+PldqwRY1tKG zHUVEmGjDstjClLZGsuPfxt5pb/SZhXkKUMPmnUtNLzgrnFRP3EEs7Nh3epW+JzyvEt22sqXQewbf //VeT3PARv0WINsYt+3FJo0xukJqWtby9A1gj1CVtghrQ8SLqZhOG+pbI7argCvwmA5GqHDgvV1St 5DgV/aK1g==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1g0nqk-0002ah-0s; Fri, 14 Sep 2018 13:09:30 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id DA74A202B2E3B; Fri, 14 Sep 2018 15:09:27 +0200 (CEST) Date: Fri, 14 Sep 2018 15:09:27 +0200 From: Peter Zijlstra To: Florian Weimer Cc: Thomas Gleixner , LKML , Andy Lutomirski , x86@kernel.org, Matt Rickard , Stephen Boyd , John Stultz , "K. Y. Srinivasan" , Vitaly Kuznetsov , devel@linuxdriverproject.org, virtualization@lists.linux-foundation.org, Paolo Bonzini , Arnd Bergmann , Juergen Gross Subject: Re: [patch 00/11] x86/vdso: Cleanups, simmplifications and CLOCK_TAI support Message-ID: <20180914130927.GK24124@hirez.programming.kicks-ass.net> References: <20180914125006.349747096@linutronix.de> <2f723b28-8f81-4b02-861c-42f756a8825a@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2f723b28-8f81-4b02-861c-42f756a8825a@redhat.com> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 14, 2018 at 02:56:46PM +0200, Florian Weimer wrote: > On 09/14/2018 02:50 PM, Thomas Gleixner wrote: > > Matt attempted to add CLOCK_TAI support to the VDSO clock_gettime() > > implementation, which extended the clockid switch case and added yet > > another slightly different copy of the same code. > > > > Especially the extended switch case is problematic as the compiler tends to > > generate a jump table which then requires to use retpolines. > > Does vDSO code really have to use retpolines? It's in userspace, after all. Userspace is equally susceptible to spectre-v2. Ideally we'd recompile world with retpoline, but given the amount of inline asm in say things like openssl and similar projects, validating that there are indeed no indirect calls/jumps left is nontrivial. There are currently pending patches to otherwise address user-user spectre-v2 attacks.