Received: from [140.186.70.92] (port=45955 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OrmGn-00064o-BM for qemu-devel@nongnu.org; Sat, 04 Sep 2010 02:30:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OrmGl-0006LH-NR for qemu-devel@nongnu.org; Sat, 04 Sep 2010 02:30:32 -0400 Received: from adelie.canonical.com ([91.189.90.139]:51607) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OrmGl-0006L7-IN for qemu-devel@nongnu.org; Sat, 04 Sep 2010 02:30:31 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by adelie.canonical.com with esmtp (Exim 4.69 #1 (Debian)) id 1OrmGk-0001oh-9U for ; Sat, 04 Sep 2010 07:30:30 +0100 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 42FBF2E8065 for ; Sat, 4 Sep 2010 07:30:30 +0100 (BST) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Sat, 04 Sep 2010 06:24:36 -0000 From: dascandy <629791@bugs.launchpad.net> Sender: bounces@canonical.com References: <20100903200317.22391.99418.malonedeb@palladium.canonical.com> Message-Id: <20100904062437.31262.73299.malone@soybean.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 629791] Re: 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 Minor update, I found that I made a mistake with the value in STAR. I loaded 0x18 into the top 16 bits, so the bug is not that SS is 0x20 (which I thought to be wrong but was my own mistake). Why does it set CS=3D0x2b from that value & run? -- = 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.