Skip to content

CAGE_MAP missing concurrent access protection #1050

@rennergade

Description

@rennergade

src/cage/src/cage.rs:265-273

Comments document an RwLock for concurrent access control, but CAGE_MAP is a bare static mut Vec<Option<Arc<Cage>>>. No lock exists. Concurrent Option::take and Arc::clone from different threads is a data race.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions