* [Qemu-devel] [Bug 629791] [NEW] sysret sets invalid ss
@ 2010-09-03 20:03 dascandy
2010-09-04 6:24 ` [Qemu-devel] [Bug 629791] " dascandy
2017-01-17 19:42 ` Thomas Huth
0 siblings, 2 replies; 3+ messages in thread
From: dascandy @ 2010-09-03 20:03 UTC (permalink / raw)
To: qemu-devel
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 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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Qemu-devel] [Bug 629791] Re: sysret sets invalid ss
2010-09-03 20:03 [Qemu-devel] [Bug 629791] [NEW] sysret sets invalid ss dascandy
@ 2010-09-04 6:24 ` dascandy
2017-01-17 19:42 ` Thomas Huth
1 sibling, 0 replies; 3+ messages in thread
From: dascandy @ 2010-09-04 6:24 UTC (permalink / raw)
To: qemu-devel
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Qemu-devel] [Bug 629791] Re: sysret sets invalid ss
2010-09-03 20:03 [Qemu-devel] [Bug 629791] [NEW] sysret sets invalid ss dascandy
2010-09-04 6:24 ` [Qemu-devel] [Bug 629791] " dascandy
@ 2017-01-17 19:42 ` Thomas Huth
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Huth @ 2017-01-17 19:42 UTC (permalink / raw)
To: qemu-devel
** Changed in: qemu
Status: New => Invalid
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/629791
Title:
sysret sets invalid ss
Status in QEMU:
Invalid
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/629791/+subscriptions
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-01-17 19:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-03 20:03 [Qemu-devel] [Bug 629791] [NEW] sysret sets invalid ss dascandy
2010-09-04 6:24 ` [Qemu-devel] [Bug 629791] " dascandy
2017-01-17 19:42 ` Thomas Huth
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.