Page MenuHomeFreeBSD

Fix bad arithmetic in umtx_key_get() to compute object offset.
ClosedPublic

Authored by ed on Aug 3 2015, 9:29 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sep 25 2024, 9:06 AM
Unknown Object (File)
Sep 24 2024, 8:06 PM
Unknown Object (File)
Sep 24 2024, 5:40 AM
Unknown Object (File)
Sep 24 2024, 1:11 AM
Unknown Object (File)
Sep 23 2024, 4:50 AM
Unknown Object (File)
Sep 22 2024, 11:45 PM
Unknown Object (File)
Sep 22 2024, 6:43 AM
Unknown Object (File)
Sep 21 2024, 11:58 PM
Subscribers

Details

Summary

It looks like umtx_key_get() has the addition and subtraction the wrong
way around, meaning that it fails to match in certain cases. This causes
the cloudlibc unit tests to deadlock in certain cases.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ed retitled this revision from to Fix bad arithmetic in umtx_key_get() to compute object offset..
ed updated this object.
ed edited the test plan for this revision. (Show Details)
ed added reviewers: kib, jhb.
kib edited edge metadata.
This revision is now accepted and ready to land.Aug 4 2015, 4:41 AM
This revision was automatically updated to reflect the committed changes.