-
Notifications
You must be signed in to change notification settings - Fork 57
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
Memory unsafety: data races in darwin.c #106
Comments
tmfink
changed the title
Data race in darwin.c get_mem_info()
Memory unsoundness: data races in darwin.c
Apr 21, 2022
tmfink
changed the title
Memory unsoundness: data races in darwin.c
Memory unsafety: data races in darwin.c
Apr 21, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've found the following data races in
darwin.c
:static unsigned long long size
is a mutable global that is read/modified without any synchronization.sys-info-rs/c/darwin.c
Line 109 in 1c119b3
mem_info()
. Multiple Rust threads could racily write to the global variablesize
.static int skipvfs
is mutable global that is racily initizialized inmakevfslist()
.sys-info-rs/c/darwin.c
Line 20 in 1c119b3
disk_info()
is a public Rust function that can be directly called from safe Rust codeThe text was updated successfully, but these errors were encountered: