hermit-os / hermit-os/kernel

`CoreLocal` is not interrupt safe

Open
#961 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
1.5k
Forks
132
Avg merge
1d 14h
Merged PRs (30d)
39

Description

Probably a rare edge-case, but the new `CoreLocal` design around a `Cell` is not perfectly sound, as it is possible to call `get` multiple times. This gives an opportunity for races, as accesses to the cell are not atomic and an modifications of the contained value could be interrupted.

It is probably sufficient to replace it with an interrupt safe version.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.