Cyjon
Cyjon copied to clipboard
race condition of APs
occurs: spontaneously, when more than 1 cpu core is used
find why task_ap_address[ cpu_id ] doesn't contain task pointer at kernel_task it might be race condition at AP initialization -_- bypass created. is safe for system
kernel_task:
; [...]
; bug, AP doesn't have information about currently executed task?
test r10, r10
jnz .ok
; set initial task as closed
mov r10, qword [r8 + KERNEL_STRUCTURE.task_queue_address]
.ok:
; [...]