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

Aperta
#1,506 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 3 giorni

@StitchLilo626 ci sta già lavorando.

Dal 21/10/2026.

  • #1523 di @StitchLilo626 — aperta

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
22/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
c

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
C
Stelle
4.6k
Fork
1.6k
Merge medio
2g 22h
PR unite (30g)
4

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di FreeRTOS/FreeRTOS-Kernel

Tutte le issue di FreeRTOS/FreeRTOS-Kernel

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.