Cyjon icon indicating copy to clipboard operation
Cyjon copied to clipboard

race condition of APs

Open CorruptedByCPU opened this issue 3 years ago • 0 comments

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:

	; [...]

CorruptedByCPU avatar Dec 09 '22 07:12 CorruptedByCPU