Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753089AbeADUFM (ORCPT + 1 other); Thu, 4 Jan 2018 15:05:12 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:55392 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752940AbeADUFL (ORCPT ); Thu, 4 Jan 2018 15:05:11 -0500 Date: Thu, 4 Jan 2018 21:05:15 +0100 From: Greg KH To: Tim Chen Cc: Thomas Gleixner , Andy Lutomirski , Linus Torvalds , Dave Hansen , Andrea Arcangeli , Andi Kleen , Arjan Van De Ven , linux-kernel@vger.kernel.org, David Woodhouse Subject: Re: [PATCH 5/7] x86: Use IBRS for firmware update path Message-ID: <20180104200515.GC30228@kroah.com> References: <8d3710432534b27d224283557c4629cd1aa5b0ea.1515086770.git.tim.c.chen@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8d3710432534b27d224283557c4629cd1aa5b0ea.1515086770.git.tim.c.chen@linux.intel.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Thu, Jan 04, 2018 at 09:56:46AM -0800, Tim Chen wrote: > From: David Woodhouse > > We are impervious to the indirect branch prediction attack with retpoline > but firmware won't be, so we still need to set IBRS to protect > firmware code execution when calling into firmware at runtime. Wait, what? Maybe it's just the wine from dinner talking, but if the firmware has issues, we have bigger things to worry about here, right? It already handed over the "chain of trust" to us, so we have already implicitly trusted that the firmware was correct here. So why do we need to do anything about firmware calls in this manner? Or am I totally missing something else here? thanks, greg k-h