[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [Bug 629791] Re: sysret sets invalid ss
From: |
dascandy |
Subject: |
[Qemu-devel] [Bug 629791] Re: sysret sets invalid ss |
Date: |
Sat, 04 Sep 2010 06:24:36 -0000 |
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=0x2b 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 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.
- [Qemu-devel] [PATCH v2 00/19] Monitor: split HMP and QMP dispatch tables, Luiz Capitulino, 2010/09/30
- [Qemu-devel] [PATCH 01/19] Monitor: Introduce search_dispatch_table(), Luiz Capitulino, 2010/09/30
- [Qemu-devel] [PATCH 02/19] QMP: handle_qmp_command(): Move 'cmd' sanity check, Luiz Capitulino, 2010/09/30
- [Qemu-devel] [PATCH 03/19] QMP: Don't use do_info(), Luiz Capitulino, 2010/09/30
- [Qemu-devel] [PATCH 04/19] Monitor: Drop QMP bits from do_info(), Luiz Capitulino, 2010/09/30
- [Qemu-devel] [PATCH 05/19] Monitor: Drop is_async_return(), Luiz Capitulino, 2010/09/30
- [Qemu-devel] [PATCH 06/19] Monitor: Convert do_info() back to HMP, Luiz Capitulino, 2010/09/30
- [Qemu-devel] [PATCH 07/19] Monitor: Introduce the qmp-commands.hx file, Luiz Capitulino, 2010/09/30
- [Qemu-devel] [PATCH 09/19] QMP: Introduce command dispatch table, Luiz Capitulino, 2010/09/30
- [Qemu-devel] [PATCH 08/19] QMP: Introduce qmp_find_cmd(), Luiz Capitulino, 2010/09/30
- [Qemu-devel] [PATCH 10/19] QMP: Introduce query commands dispatch table, Luiz Capitulino, 2010/09/30