[RTEMS Project] #4030: i386: ISR can overwrite its own stack during system initialization
RTEMS trac
trac at rtems.org
Wed Jul 29 09:41:18 UTC 2020
#4030: i386: ISR can overwrite its own stack during system initialization
------------------------+----------------------------------------
Reporter: Jan Sommer | Owner: Jan Sommer <jan.sommer@…>
Type: defect | Status: closed
Priority: normal | Milestone: 5.1
Component: arch/i386 | Version: 5
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:"849d741832cd61c31c438b9b15c2cb43235719fe/rtems"
849d7418/rtems]:
{{{
#!CommitTicketReference repository="rtems"
revision="849d741832cd61c31c438b9b15c2cb43235719fe"
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 #4030
}}}
--
Ticket URL: <http://devel.rtems.org/ticket/4030#comment:1>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list