Received: by 10.223.176.46 with SMTP id f43csp2020566wra; Sun, 21 Jan 2018 09:23:34 -0800 (PST) X-Google-Smtp-Source: AH8x224D+/2Sdz7fcIrphhbYFFSjDQECqJbN4qIO2mYw+V1Kt7seQKquDE/MQfToYDaE/Ml+wVIf X-Received: by 10.101.93.142 with SMTP id f14mr4872660pgt.82.1516555414561; Sun, 21 Jan 2018 09:23:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516555414; cv=none; d=google.com; s=arc-20160816; b=Ir2n0koj8tRLQQQAkNEbWu46IvajjpnGf/j3h4GM4oMCLW7J3Q1t92XeenkDlZQWBq NnpAD6N9T3g9ZgtPGVGfbS/GAfpAKf4IOUjFwtz4twhDtVxWSazrnqrt0LQ0Kfo68PCU 34pI9Wu7EI+kOAyc9mI41/1fsKGipCofJNZZ1aSeQR4BEwhND6uXYwcejlrm2NYhd4FU tUfZZbYvEp92/qeaOMhmBCdnDMRuPnpc0OaUURQjvNYMofO+vG4XBc4eZIRxVtB75dTA Kg2e7emcv2IBND6X8n++eE9UOtZ0F0Mh+jEum1ssF3JacAFlnI+MXw2dbS/YPD8ccg3U 6SWA== 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:cc:references:to:subject:arc-authentication-results; bh=Baj6Jqg3/rAq/z6uKrkZR7zcVBKIow1BegbCyi94GKY=; b=zb8pjzbrMnplW1ypLuHlWvmME9JeCVQQjmob9MHXv+WQ38+NsA3U+g5iITm2geUKt3 T4rvf+5VJVLmmrh5Au9fcDWF6wkM/O0+LtJUMa17Ey9mbMCtz2DmDV9ervPqNBltNFBX mjsyp9aKrYBR7DrA+zNcY01spgg6AA0HUOrsYrbgsgxcNy4GgrLf2qmP3gOPjZVtorlF woG+82S1naSUIUyGAGbmCYIhdu/VByBIdySW4kRYSW9OmR066MBGIDLbEVsphVXtwPwE 5X1EXdHYYE7Y0lLNVVwhJn7VE5fbZXCfbRQLcYYHccE4pHX3gycW5rjqERC3+uldW0Nz SxOQ== 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 d8si13937869pfh.93.2018.01.21.09.23.19; Sun, 21 Jan 2018 09:23:34 -0800 (PST) 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 S1751157AbeAURW4 (ORCPT + 99 others); Sun, 21 Jan 2018 12:22:56 -0500 Received: from mga01.intel.com ([192.55.52.88]:36496 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750793AbeAURWy (ORCPT ); Sun, 21 Jan 2018 12:22:54 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Jan 2018 09:22:54 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,392,1511856000"; d="scan'208";a="21440665" Received: from mklimasz-mobl2.ger.corp.intel.com (HELO [10.254.70.138]) ([10.254.70.138]) by FMSMGA003.fm.intel.com with ESMTP; 21 Jan 2018 09:22:52 -0800 Subject: Re: [RFC 10/10] x86/enter: Use IBRS on syscall and interrupts To: Konrad Rzeszutek Wilk , KarimAllah Ahmed References: <1516476182-5153-1-git-send-email-karahmed@amazon.de> <1516476182-5153-11-git-send-email-karahmed@amazon.de> <20180121135029.GM10086@char.us.oracle.com> Cc: linux-kernel@vger.kernel.org, Andi Kleen , Andrea Arcangeli , Andy Lutomirski , Arjan van de Ven , Ashok Raj , Asit Mallick , Borislav Petkov , Dan Williams , David Woodhouse , Greg Kroah-Hartman , "H . Peter Anvin" , Ingo Molnar , Janakarajan Natarajan , Joerg Roedel , Jun Nakajima , Laura Abbott , Linus Torvalds , Masami Hiramatsu , Paolo Bonzini , Peter Zijlstra , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , Thomas Gleixner , Tim Chen , Tom Lendacky , kvm@vger.kernel.org, x86@kernel.org, Arjan Van De Ven From: Dave Hansen Message-ID: <83e4ab96-d511-2154-960d-06d8f4506b86@intel.com> Date: Sun, 21 Jan 2018 09:22:51 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <20180121135029.GM10086@char.us.oracle.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/21/2018 05:50 AM, Konrad Rzeszutek Wilk wrote: > On Sat, Jan 20, 2018 at 08:23:01PM +0100, KarimAllah Ahmed wrote: >> From: Tim Chen >> >> Stop Indirect Branch Speculation on every user space to kernel space >> transition and reenable it when returning to user space./ > > How about interrupts? This code covers all kernel entry/exit paths, including interrupts. Despite its name, "error_entry" is used by the interrupt path. > That is should .macro interrupt have the same treatment? It already does.