[RTEMS Project] #2173: Potential integer overflow problem in EDF scheduler

RTEMS trac trac at rtems.org
Mon Nov 24 07:28:07 UTC 2014


#2173: Potential integer overflow problem in EDF scheduler
-----------------------------+----------------------------
 Reporter:  sebastian.huber  |       Owner:  joel.sherrill
     Type:  defect           |      Status:  reopened
 Priority:  normal           |   Milestone:  4.11
Component:  cpukit           |     Version:  HEAD
 Severity:  normal           |  Resolution:
 Keywords:                   |
-----------------------------+----------------------------
Changes (by sebastian.huber):

 * status:  closed => reopened
 * resolution:  wontfix =>


Comment:

 Actually the Bugzilla to trac conversion seems to have a lot of errors.

 This was not a hardware problem.  This is still an open issue.

 Without much consideration I would fix it like this:

 1. Make the tick since boot uint64_t.

 2. Make the Thread_Control::current_priority and
 Thread_Control::real_priority int64_t (to support easy comparison
 operations for RB tree insert and search).

 3. Remove the Scheduler_Operations::priority_compare operation.

 With a system tick of 1ns the system can run 146years before something
 overflows.

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


More information about the bugs mailing list