Fix all advisories to pass linter

Mostly related to the `affected_functions` field, which has changed a
few times.
This commit is contained in:
Tony Arcieri
2019-09-09 12:19:01 -07:00
parent 74ebe212dc
commit 01ac6725d5
19 changed files with 80 additions and 76 deletions

View File

@@ -9,10 +9,12 @@ Wrong memory orderings inside the RwLock implementation allow for two writers to
Only users of the RwLock implementation are affected. Users of Once (including users of lazy_static with the `spin_no_std` feature enabled) are NOT affected.
On strongly ordered CPU architectures like x86, the only real way that this would lead to a memory corruption is if the compiler reorders an access after the lock is yielded, which is possible but in practice unlikely. It is a more serious issue on weakly ordered architectures such as ARM which, except in the presence of certain instructions, allow the hardware to decide which accesses are seen at what times. Therefore on an ARM system it is likely that using the wrong memory ordering would result in a memory corruption, even if the compiler itself doesn't reorder the memory accesses in a buggy way.
The flaw was corrected by https://github.com/mvdnes/spin-rs/pull/66.
"""
patched_versions = [">= 0.5.2"]
url = "https://github.com/mvdnes/spin-rs/issues/65"
keywords = ["atomic", "ordering", "spin", "lock", "mutex", "rwlock"]
affected_functions = ["spin::RwLock::new"]
[affected.functions]
"spin::RwLock::new" = ["< 0.5.2"]