Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp1541256img; Tue, 19 Mar 2019 09:48:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqzWM19oRyIQT/LmFnBYJsHCkEBs9VoO3pv/qI7IdM90PvsM70U0TSTHaRyubAJmSabMJOeH X-Received: by 2002:aa7:83ca:: with SMTP id j10mr25640983pfn.50.1553014108257; Tue, 19 Mar 2019 09:48:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553014108; cv=none; d=google.com; s=arc-20160816; b=xDxPSeNe7NJZgDy2uW4hBZwDq3JeuuVM95okTADz71mCU0mi1CBa3igIiix7I6iDTr nHCTytBWAcBdgToCE7oo7bbRGUDiWSHUaDtTtc5SR/0oPoVc9yVRUl2EIba8tRa+fA4O vxbkHWahcXXpxByTMy9lFFwwtoPlkD+tpRoGavrYFkOAQuWrDqnMVdyqnCUdvPicQtrD xg1iywjiko9gudHwLpmzggDUzyUMb4GTVtaVnh+/8jDyGz1+TUYRv58zS+3kmx0BCWeV VhsuHkMpH4s/1ea2tg4nBL69NAD2bEPy5DlFc16MhNDgrjHmcHZuhg8JUKe43NL70gWj C3Rg== 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:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=Ad1T1DEtgKe58lheD+su3NNbfBZqf2vzYPNAXjKbi6M=; b=dwOjIu8fGwkx23440d+OQjfF2VtwAJ7vvbdoiwWme4SH/t/zBsc9Frmr0VHaKNJcrm y5p0ZOtpCsHztl52MJOSPGhZZEzhukUKoM53CRFUdzpjrpCW2oSouw98hqjBV6r+mHLl ndXnNErqdcTy8bqMOsjenJuhoEJKujrmMItLc/LkQshQBSQXFBXM3NbJujNc8TA1ks+2 tzpNrmFOUKWM3d2QTI4qyGhX9WJ1mtOZagC6mJvEYTSeBXwB9TLo99B5izK1nHXS9I++ nu5P7OUt0eqWmvrAaKcilAW4TdmHAF0s+OzGtz24MzbaC0RefbyyQCKvu24/aoIH6OrV /zeA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n3si11513513pgv.458.2019.03.19.09.48.12; Tue, 19 Mar 2019 09:48:28 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727742AbfCSQrD (ORCPT + 99 others); Tue, 19 Mar 2019 12:47:03 -0400 Received: from www.llwyncelyn.cymru ([82.70.14.225]:37644 "EHLO fuzix.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726776AbfCSQrD (ORCPT ); Tue, 19 Mar 2019 12:47:03 -0400 Received: from alans-desktop (82-70-14-226.dsl.in-addr.zen.co.uk [82.70.14.226]) by fuzix.org (8.15.2/8.15.2) with ESMTP id x2JGkpEh026185; Tue, 19 Mar 2019 16:46:51 GMT Date: Tue, 19 Mar 2019 16:46:51 +0000 From: Alan Cox To: Alexander Pateenok Cc: Bartlomiej Zolnierkiewicz , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: Indirect call in vesafb driver Message-ID: <20190319164651.4ec9e3d1@alans-desktop> In-Reply-To: <20190313145418.bwta37cogo7a4qtt@K55DR> References: <20190313145418.bwta37cogo7a4qtt@K55DR> Organization: Intel Corporation X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 13 Mar 2019 17:54:18 +0300 Alexander Pateenok wrote: > Hi, > > There're several indirect calls in inline assembly in vesafb driver > (drivers/video/fbdev/vesafb.c), and these calls cannot be automatically > changed to retpolines. It's in vesafb_pan_display(): > > 73 __asm__ __volatile__( > 74 "call *(%%edi)" > > and in vesa_setpalette(): > > 113 __asm__ __volatile__( > 114 "call *(%%esi)" > > Is there need to use CALL_NOSPEC ? Vesafb is from the time on the dinosaurs but yes any vesa bios code will not be speculatively hardened. I'd also doubt anyone is actually using vesafb in the first place but it should use nospec Alan