Received: by 10.223.176.5 with SMTP id f5csp681787wra; Fri, 9 Feb 2018 05:37:30 -0800 (PST) X-Google-Smtp-Source: AH8x225yAGSpNOipY6pdq6xHGsNo09KENDVNqyYQ/6v4mpXX5RpZlHG/LNg1wwCfgUX9Tb/qkG8K X-Received: by 10.99.95.15 with SMTP id t15mr1929079pgb.183.1518183449984; Fri, 09 Feb 2018 05:37:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518183449; cv=none; d=google.com; s=arc-20160816; b=fDkUC152Gru59rrsYizzFXkPD7Q6KXXIk+a9i9/HyPuUpyW4m9vOZ/eP/+ZH7jrgEf kSZGGJsavwFERUzod7FWCMyEn0/mF611vMl7nYVTIqp1vFetahBvfJNNuTAkd9QXCEaP eIDLaWjnideo9VxH04RsLwIxmp7HG1K6CTcwzIwBrBq2MfFgc+WZqJRVpCgNwFrQA4l3 PzrRvsZyc2NS2xGicHJNEruZD6VHPV9p7LC9PqRAcemjOyNofZgUxp7kpTZxMj/QuNXO grPHK9Inqd/TyPGUyxGXgHUxan3ffPPohpSV/araZgyvA8IDfU6eOLAoUJl/oGi5fcVn xcJw== 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:arc-authentication-results; bh=qcqKNoyd5djny+kaoYTMLjCAsRnB8p3C+jm90w4kPl0=; b=khN+IzBZ5eQyDCLK2m3/NSW9qkROT2jzPnX0lH5RBBaCO7Ae9MAhB+174g26k31RPe fsLejW4TIpPfHa9b5ZtU/K20Qs6exHlufZvc8S8n1T5NbfUghdp5hR5Wwi2XSnci0HoF SNj6oJQXF85oajvUru70z6jdkwOZtWcr7s5qmtcN8t2vYbiQYUHaKfzg3/J1J3AD6jwD Ks2S7oSGsNE/MLOJZP3+ni0aYX4tfbd/Zyr3jp/Wrw8RHrpsa5Aot+uXZ2oEQth/ye9A Wxpw5O0BXncaTCG4HHbPw5zNrQkAVjL/N8IDp4UX6RCwumark4GuR0u/VnMiOEXwzh9X bgMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@8bytes.org header.s=mail-1 header.b=nVQQq6Px; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h18si1648907pfi.167.2018.02.09.05.37.15; Fri, 09 Feb 2018 05:37:29 -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; dkim=fail (test mode) header.i=@8bytes.org header.s=mail-1 header.b=nVQQq6Px; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751307AbeBINfK (ORCPT + 99 others); Fri, 9 Feb 2018 08:35:10 -0500 Received: from 8bytes.org ([81.169.241.247]:47976 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751049AbeBINfJ (ORCPT ); Fri, 9 Feb 2018 08:35:09 -0500 Received: by theia.8bytes.org (Postfix, from userid 1000) id B973A3BF; Fri, 9 Feb 2018 14:35:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=8bytes.org; s=mail-1; t=1518183307; bh=2hxb/J4bqA2gyjMNoglSfzQMVb987L/ShqBtZNDOp4U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nVQQq6PxcsvMdUc3/LPP5qzdqk1JXTmRiTgTF/W4/Nc1jF/7YDvHZu6a52XBOmd2i 7W+xl1w3O4SIWI4xdfmViTURousmiKKcCDHErvogNtiPwpz7Fuzy+CkSt62zObsvPF dvCOQuvHwZwKIuHfFMxBd1v2xh+QZ15dDIP6ANCHERGSEGuNRWpm5DdpheUTrVRrFd 1A89KvKnrD/ju4Be7MlZsbDa/r352MiVOZXu7Tg2Lc79s1AKinhQhHDqH6C9DZmbvH 8raOIdu5iTCq4gTElzrQjP6J7aTMw/ObhRpQtmTaQCXQX48aWBS3NysKfJuprRts3b QswQYwrVtQpNw== Date: Fri, 9 Feb 2018 14:35:07 +0100 From: Joerg Roedel To: Juergen Gross Cc: Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , x86@kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Linus Torvalds , Andy Lutomirski , Dave Hansen , Josh Poimboeuf , Peter Zijlstra , Borislav Petkov , Jiri Kosina , Boris Ostrovsky , Brian Gerst , David Laight , Denys Vlasenko , Eduardo Valentin , Greg KH , Will Deacon , aliguori@amazon.com, daniel.gruss@iaik.tugraz.at, hughd@google.com, keescook@google.com, Andrea Arcangeli , Waiman Long , Pavel Machek , jroedel@suse.de Subject: Re: [PATCH 00/31 v2] PTI support for x86_32 Message-ID: <20180209133507.GD16484@8bytes.org> References: <1518168340-9392-1-git-send-email-joro@8bytes.org> <35f19c79-7277-3ad8-50bf-8def929377b6@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <35f19c79-7277-3ad8-50bf-8def929377b6@suse.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Juergen, On Fri, Feb 09, 2018 at 01:11:42PM +0100, Juergen Gross wrote: > On 09/02/18 10:25, Joerg Roedel wrote: > > XENPV is also untested from my side, but I added checks to > > not do the stack switches in the entry-code when XENPV is > > enabled, so hopefully it works. But someone should test it, > > of course. > > That's unfortunate. 32 bit XENPV kernel is vulnerable to Meltdown, too. > I'll have a look whether 32 bit XENPV is still working, though. > > Adding support for KPTI with Xen PV should probably be done later. :-) Not sure how much is missing to make it work there, one point is certainly to write the right stack into tss.sp0 for xenpv on 32bit. This write has a check to only happen for !xenpv. But let's first test the code as-is on XENPV and see if it still boots :) Thanks, Joerg