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

task: fix some safety issues #616

Merged
merged 1 commit into from
Feb 14, 2025
Merged

Conversation

msft-jlange
Copy link
Collaborator

Starting the scheduler is an unsafe operation because it relies on there not being a current task, which is a guarantee the compiler cannot make on its own.

Also, a function that returns a pointer is not necessarily unsafe. The operation of using the pointer is where the code becomes unsafe.

Starting the scheduler is an unsafe operation because it relies on there
not being a current task, which is a guarantee the compiler cannot make
on its own.

Also, a function that returns a pointer is not necessarily unsafe.  The
operation of using the pointer is where the code becomes unsafe.

Signed-off-by: Jon Lange <jlange@microsoft.com>
@joergroedel joergroedel merged commit db1f38b into coconut-svsm:main Feb 14, 2025
4 checks passed
@msft-jlange msft-jlange deleted the task_safety branch February 14, 2025 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants