[BUG] Eviction re-homing search in prvSelectHighestPriorityTask can prune eligible cores for the evicted task

Abierto
#1,506 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 3 días

@StitchLilo626 ya está trabajando en esto.

Desde el 21/10/2026.

  • #1523 de @StitchLilo626 — abierto

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
22/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
c

Línea de trabajo

The bug is in the eviction re-homing search inside prvSelectHighestPriorityTask(), which runs after a task is evicted from a core and checks pxPreviousTCB against core affinity. Start by reading that search and the affinity-mask check it uses, and confirm which mask it tests against. No reproduction harness is attached, so you would need to build one first. Done means the search considers every core allowed by the evicted task's own mask, with a test showing the evicted task is re-homed.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Describe the bug

The eviction re-homing path in prvSelectHighestPriorityTask() (the pxPreviousTCB re-homing search after a task is evicted from a core) skips cores on which the incoming task may run, based on a premise that does not hold for the evicted task's own new affinity mask. The evicted task can be left without a re-homing core even though one is eligible.

Impact

Bounded unfairness - the evicted task runs at a later selection. No hang, no corruption, no starvation of the kind reported in #1504.

Expected behavior

The re-homing search should consider all cores eligible under the evicted task's mask.

Additional context

Filed for tracking; low priority. Root-cause analysis and a reproduction harness are available on request.

Lenguaje dominante
C
Estrellas
4.6k
Forks
1.6k
Merge medio
2 d 22 h
PR fusionados (30 d)
4

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de FreeRTOS/FreeRTOS-Kernel

Todos los issues de FreeRTOS/FreeRTOS-Kernel

Issues similares

Más issues de C

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.