Mir

Potential race condition: clients_trying_to_acquire accessed without locking in BufferSwapperMulti::force_requests_to_complete()

Bug #1191689 reported by Daniel van Vugt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mir
Fix Released
Medium
Daniel van Vugt

Bug Description

This if statement looks like it should be protected by swapper_mutex ...

void mc::BufferSwapperMulti::force_requests_to_complete()
{
    if (in_use_by_client == swapper_size - 1 && clients_trying_to_acquire > 0)
    {

Related branches

summary: Potential race condition: clients_trying_to_acquire accessed without
- mutual exclusion in :BufferSwapperMulti::force_requests_to_complete()
+ locking :BufferSwapperMulti::force_requests_to_complete()
summary: Potential race condition: clients_trying_to_acquire accessed without
- locking :BufferSwapperMulti::force_requests_to_complete()
+ locking in BufferSwapperMulti::force_requests_to_complete()
Changed in mir:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Importance could be quite high if the race happens at a critical time. Not sure yet.

Changed in mir:
importance: Medium → Undecided
Changed in mir:
importance: Undecided → Medium
Changed in mir:
assignee: nobody → Daniel van Vugt (vanvugt)
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.