Received: by 10.223.185.111 with SMTP id b44csp425006wrg; Fri, 9 Mar 2018 07:15:57 -0800 (PST) X-Google-Smtp-Source: AG47ELty5GAXZy3RbTfBk2Qpe4Oey0mXj/eGKwJiVGfRDxr1Ww4r2yFJaiifmzTOKZExtScLgm4W X-Received: by 2002:a17:902:33c2:: with SMTP id b60-v6mr28706952plc.222.1520608557821; Fri, 09 Mar 2018 07:15:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520608557; cv=none; d=google.com; s=arc-20160816; b=GRF+Dvw865k3CPQ9S5vYOenLPsrP3v1SmSm5OmMAP7HLgRfm5AJjLiVrnHIpTp6gdw A4z6JRZdVO95kUB7flwVqiQdBJgjDsMXYq/zmJKuW1D81gTgLVYd5TDk/aVIWiBjY8V1 uKPuPfF8Afm7JUNr0FOwBOt0Ljf9gCKosws5JfjJwrrTaI5zQIAFomG+q7W5mapbf0CJ 0OTNDzhf/k89+chr+CUQmKYiOvElOdbW8YBO15pVF3oWq3k6/igPj0bY4Nthfz3DNYmm Qdxehn//v0Q4Ot+49/vT5k3/u5Jg0ZlQgC5hHeKYLw8VjBE7Pej89gb0qiDAGppesDfT rmmw== 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:arc-authentication-results; bh=Mfh+ZfDiVtzgd5WBEUrvVtEebF8XQt8cmebld6Yhgt8=; b=nU3ag4gzVrpOfWGA69jgeRzo6UpQbXl9MYH/y3YECyvMhF3pcFOuZewVRz9T0INrv6 +RxkYCtF9sE8P63xK7EYFaW3kEu8s/YA2LMTwmjLDy6Yqq8jStiOUyA/3/5iuKb7XTJn NNT0/ndP8AXbjSN3yDgqg0VzEF221uECBK2bS9O6wGoYUNTZFIlZSDFpHROi0vcWck7z 9+Nj0F7lDK1SqkeMovkM7+52pWx3Ph4INkdwY/ZtDnPIq9qMneoFkn+WKE31gYHURk9y bCnIyVHkzOE4aytPeaSsYwCu18xDvz7ff7Cd+Mzs3ZGvHS3zkfkJb2IEsb9vf+4SBi+e ByxQ== 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 34-v6si1009971plc.368.2018.03.09.07.15.42; Fri, 09 Mar 2018 07:15:57 -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 S932129AbeCIPOq (ORCPT + 99 others); Fri, 9 Mar 2018 10:14:46 -0500 Received: from mga05.intel.com ([192.55.52.43]:64452 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751096AbeCIPOp (ORCPT ); Fri, 9 Mar 2018 10:14:45 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Mar 2018 07:14:44 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,446,1515484800"; d="scan'208";a="23052795" Received: from tassilo.jf.intel.com (HELO tassilo.localdomain) ([10.7.201.133]) by fmsmga007.fm.intel.com with ESMTP; 09 Mar 2018 07:14:44 -0800 Received: by tassilo.localdomain (Postfix, from userid 1000) id CA101300B65; Fri, 9 Mar 2018 07:14:28 -0800 (PST) Date: Fri, 9 Mar 2018 07:14:28 -0800 From: Andi Kleen To: "Maciej S. Szmigiero" Cc: "Woodhouse, David" , Paul Turner , LKML , Linus Torvalds , Greg Kroah-Hartman , Tim Chen , Dave Hansen , tglx@linutronix.de, Kees Cook , Rik van Riel , Peter Zijlstra , Andy Lutomirski , Jiri Kosina , gnomes@lxorguk.ukuu.org.uk, x86@kernel.org, thomas.lendacky@amd.com, Josh Poimboeuf Subject: Re: x86/retpoline: Fill RSB on context switch for affected CPUs Message-ID: <20180309151428.GE22087@tassilo.jf.intel.com> References: <1515779365-9032-1-git-send-email-dwmw@amazon.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Shouldn't the RSB filling on context switch also be done on non-IBPB > CPUs to protect (retpolined) user space tasks from other user space > tasks? The comment is actually incorrect. There's no risk to hit user space addresses if we have KPTI and NX (which is fairly universal). It's mainly needed on Skylake era CPUs. Should fix the comment. I'll send a patch. -Andi