PsCreateSystemThreadEx: OPTIONAL is on the wrong parameter
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 1/5
- Tempo stimato
- Meno di un'ora
- Idoneità per principianti
- 88/100
Direzione di ricerca
Leggi la dichiarazione di PsCreateSystemThreadEx in lib/xboxkrnl/xboxkrnl.h e confronta le sue annotazioni OPTIONAL con il comportamento del kernel descritto nell’issue. Aggiorna le annotazioni in modo che SystemRoutine sia obbligatorio e StartRoutine facoltativo; l’issue dice che nxdk passa entrambi in CreateThread in lib/winapi/thread.c. Il lavoro è completato quando la dichiarazione riflette questo contratto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
In lib/xboxkrnl/xboxkrnl.h, PsCreateSystemThreadEx marks SystemRoutine as OPTIONAL and StartRoutine as required. The kernel uses them the other way round:
- The new thread always starts by calling
SystemRoutine, so it must not be NULL. See for example nboxkrnl,src/ke/thread.cpp(call ecx // SystemRoutine should never return). StartRoutineandStartContextare only passed on toSystemRoutineas arguments, soStartRoutinemay be NULL when the system routine doesn't use it.
RadWolfie reported this in the xbox_kernel_test_suite (Cxbx-Reloaded/xbox_kernel_test_suite#130).
nxdk's own CreateThread (lib/winapi/thread.c) always passes both, so no existing nxdk caller is affected. Only the annotation is wrong:
IN PKSTART_ROUTINE StartRoutine OPTIONAL,
IN PVOID StartContext,
IN BOOLEAN CreateSuspended,
IN BOOLEAN DebuggerThread,
IN PKSYSTEM_ROUTINE SystemRoutine
- Lingua principale
- C
- Stelle
- 600
- Fork
- 97
- Merge medio
- 11h 48m
- PR unite (30g)
- 2
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di XboxDev/nxdk
-
Use faster memcpyAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 38/100
-
Tutorials creation requestAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 35/100
Tutte le issue di XboxDev/nxdk
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
libsndfile/libsndfile#1239 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100