Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

race condition of APs #131

Open
CorruptedByCPU opened this issue Dec 9, 2022 · 0 comments
Open

race condition of APs #131

CorruptedByCPU opened this issue Dec 9, 2022 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@CorruptedByCPU
Copy link
Owner

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 CorruptedByCPU added bug Something isn't working good first issue Good for newcomers labels Dec 9, 2022
@CorruptedByCPU CorruptedByCPU pinned this issue Dec 9, 2022
@CorruptedByCPU CorruptedByCPU unpinned this issue Dec 9, 2022
@CorruptedByCPU CorruptedByCPU pinned this issue Dec 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant