Received: from [140.186.70.92] (port=59528 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Orcak-0006V5-A5 for qemu-devel@nongnu.org; Fri, 03 Sep 2010 16:10:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Orcaj-0003Cz-2X for qemu-devel@nongnu.org; Fri, 03 Sep 2010 16:10:30 -0400 Received: from adelie.canonical.com ([91.189.90.139]:43620) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Orcai-0003Ch-S4 for qemu-devel@nongnu.org; Fri, 03 Sep 2010 16:10:29 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by adelie.canonical.com with esmtp (Exim 4.69 #1 (Debian)) id 1Orcah-0006su-Az for ; Fri, 03 Sep 2010 21:10:27 +0100 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 4EF872E8061 for ; Fri, 3 Sep 2010 21:10:27 +0100 (BST) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Fri, 03 Sep 2010 20:03:17 -0000 From: dascandy <629791@bugs.launchpad.net> Sender: bounces@canonical.com References: <20100903200317.22391.99418.malonedeb@palladium.canonical.com> Message-Id: <20100903200317.22391.99418.malonedeb@palladium.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 629791] [NEW] sysret sets invalid ss Reply-To: Bug 629791 <629791@bugs.launchpad.net> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Public bug reported: I'm developing an OS. I use only sysret to enter user space. When an interrupt occurred, it would GPF on iretq'ing from it. On investigating, the cs on the stack is 0x2b (valid and correct). The ss on the stack is 0x20, which has a rpl of 0 which is incorrect. iretq checks that and gpf's. Making the irq handler manually modify it to 0x23 fixes it locally. This happens on the non-kvm'ed qemu. I haven't tried the kvm'ed one. Qemu version 0.12.5. I haven't tried with the current development version either. ** Affects: qemu Importance: Undecided Status: New ** Tags: dpl ss sysret -- = sysret sets invalid ss https://bugs.launchpad.net/bugs/629791 You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. Status in QEMU: New Bug description: I'm developing an OS. I use only sysret to enter user space. When an interr= upt occurred, it would GPF on iretq'ing from it. On investigating, the cs o= n the stack is 0x2b (valid and correct). The ss on the stack is 0x20, which= has a rpl of 0 which is incorrect. iretq checks that and gpf's. Making the= irq handler manually modify it to 0x23 fixes it locally. This happens on the non-kvm'ed qemu. I haven't tried the kvm'ed one. Qemu v= ersion 0.12.5. I haven't tried with the current development version either.