All of lore.kernel.org
 help / color / mirror / Atom feed
* do_iret bug in xen
@ 2007-11-27 18:59 Ashish Bijlani
  2007-11-27 19:16 ` Daniel Stodden
  0 siblings, 1 reply; 10+ messages in thread
From: Ashish Bijlani @ 2007-11-27 18:59 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 554 bytes --]

"do_iret" (slow iret via hyercall) can introduce a race condition as
"current" can change during the execution of the function. all hypercalls
run with "sti" on, so an interrupt on a processor causing the control to
enter in "__enter_scheduler" after reading current can change the current
process on that processor.

code excerpt

"
    struct iret_context iret_saved;
    struct vcpu *v = current;

    if ( unlikely(copy_from_user(&iret_saved, (void *)regs->rsp,
                                 sizeof(iret_saved))) )
    {

"

Any thoughts on this?

[-- Attachment #1.2: Type: text/html, Size: 881 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-11-28  1:37 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <E1Ix7Vw-000810-RL@host-192-168-0-1-bcn-london>
2007-11-27 21:50 ` do_iret bug in xen Andres Lagar-Cavilla
2007-11-27 22:41   ` Ashish Bijlani
2007-11-27 23:17     ` Ian Campbell
2007-11-27 23:30       ` Ashish Bijlani
2007-11-28  0:51         ` Daniel Stodden
2007-11-28  1:15           ` Ashish Bijlani
2007-11-28  1:37             ` Daniel Stodden
2007-11-27 18:59 Ashish Bijlani
2007-11-27 19:16 ` Daniel Stodden
2007-11-27 19:28   ` Ashish Bijlani

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.