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)
Dec 23 2023, 5:35 AM
Unknown Object (File)
Sep 6 2023, 10:50 PM
Unknown Object (File)
Sep 6 2023, 10:49 PM
Unknown Object (File)
Sep 3 2023, 6:57 PM
Unknown Object (File)
Sep 1 2023, 5:05 PM
Unknown Object (File)
Sep 1 2023, 4:47 PM
Unknown Object (File)
May 24 2023, 5:51 AM
Unknown Object (File)
Apr 6 2023, 3:49 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.