[RTEMS Project] #4031: i386: ISR can overwrite its own stack during system initialization (cloned)

RTEMS trac trac at rtems.org
Wed Jul 29 09:39:18 UTC 2020


#4031: i386: ISR can overwrite its own stack during system initialization (cloned)
------------------------+----------------------------------------
 Reporter:  Jan Sommer  |       Owner:  Jan Sommer <jan.sommer@…>
     Type:  defect      |      Status:  closed
 Priority:  normal      |   Milestone:  6.1
Component:  arch/i386   |     Version:  6
 Severity:  major       |  Resolution:  fixed
 Keywords:              |  Blocked By:
 Blocking:              |
------------------------+----------------------------------------
Changes (by Jan Sommer <jan.sommer@…>):

 * owner:  (none) => Jan Sommer <jan.sommer@…>
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"21c7e3a41f1590b18c2c3f883e2b63e36cc409aa/rtems"
 21c7e3a/rtems]:
 {{{
 #!CommitTicketReference repository="rtems"
 revision="21c7e3a41f1590b18c2c3f883e2b63e36cc409aa"
 i386: Fix possible race condition on first context restore

 Make sure that the esp is restored before the eflags register.

 When the init task is initially restored, system interrupts are activated
 when the
 eflags register is loaded.
 If the esp register still points to an address in the interrupt stack
 area (from early system initlization) the ISR might overwrite its own
 stack.

 Closes #4031
 }}}

--
Ticket URL: <http://devel.rtems.org/ticket/4031#comment:1>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list