Skip to content

Unsoundness in the Sync implementation of Service #211

@sosthene-nitrokey

Description

@sosthene-nitrokey

The stores backed by Littlefs are often not Send (because the Littlefs bindings are not either), so the thread-safety of trussed probably depends on the thread-safety of the store, but there is an unconditional implementation: 

unsafe impl<P: Platform, D: Dispatch> Send for Service<P, D> {}

This implementation should be conditional of the !Send implementation of Platform.

Metadata

Metadata

Assignees

No one assigned

    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