Skip to content
Commit 4adce1bf authored by Tulio Magno Quites Machado Filho's avatar Tulio Magno Quites Machado Filho Committed by Mike Frysinger
Browse files

powerpc: Fix write-after-destroy in lock elision [BZ #20822]

The update of *adapt_count after the release of the lock causes a race
condition when thread A unlocks, thread B continues and destroys the
mutex, and thread A writes to *adapt_count.

(cherry picked from commit e9a96ea1)
(with changes from commit eb1321f2)

(cherry picked from commit 2762a714)
parent 5a855ded
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment