Bug 177862 - [ofed] [patch] Fix atomic bitstring operations in sys/ofed/include/linux/bitops.h
Summary: [ofed] [patch] Fix atomic bitstring operations in sys/ofed/include/linux/bito...
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-15 01:20 UTC by gelraen.ua
Modified: 2014-06-02 12:28 UTC (History)
0 users

See Also:


Attachments
file.diff (1.24 KB, patch)
2013-04-15 01:20 UTC, gelraen.ua
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description gelraen.ua 2013-04-15 01:20:00 UTC
test_and_{set,clear}_bit are currently broken as they do nothing if
bit > sizeof(long) * CHAR_BIT. Attached patch also changes int to
long in 3 previous macros, which could lead to inconsistent behavior
on non-little-endian architectures where sizeof(int) != sizeof(long).

Fix: Patch attached with submission follows:
Comment 1 gelraen.ua 2014-06-02 12:28:23 UTC
This was fixed in http://svnweb.freebsd.org/base?view=revision&revision=254120