From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757261AbaGNWX3 (ORCPT ); Mon, 14 Jul 2014 18:23:29 -0400 Received: from terminus.zytor.com ([198.137.202.10]:47028 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750724AbaGNWX2 (ORCPT ); Mon, 14 Jul 2014 18:23:28 -0400 Message-ID: <53C45857.6050605@zytor.com> Date: Mon, 14 Jul 2014 15:23:19 -0700 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Andy Lutomirski CC: Konrad Rzeszutek Wilk , "linux-kernel@vger.kernel.org" Subject: Re: Is espfix64's double-fault thing OK on Xen? References: <53C40D83.3090501@zytor.com> In-Reply-To: X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/14/2014 02:35 PM, Andy Lutomirski wrote: > Presumably the problem is here: > > ENTRY(xen_iret) > pushq $0 > 1: jmp hypercall_iret > ENDPATCH(xen_iret) > > This seems rather unlikely to work on the espfix stack. > > Maybe espfix64 should be disabled when running on Xen and Xen should > implement its own espfix64 in the hypervisor. Perhaps the first question is: is espfix even necessary on Xen? How does the Xen PV IRET handle returning to a 16-bit stack segment? -hpa