Skip to content
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

core/mbox: fix race condition #18955

Merged
merged 1 commit into from
Nov 23, 2022
Merged

Commits on Nov 22, 2022

  1. core/mbox: fix race condition

    The mbox code contains a race condition in `mbox_put()`: When it
    waits for a slot in the queue to become available, it is woken up with
    IRQs enabled. It disables IRQs again as first thing, but by then
    another thread may already have preempted the running thread and filled
    the queue back up. In this case, a message in the queue would be
    silently overwritten.
    maribu committed Nov 22, 2022
    Configuration menu
    Copy the full SHA
    42b9334 View commit details
    Browse the repository at this point in the history