]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
In r218101 I have not changed properly the futex syscall definition.
authorDmitry Chagin <dchagin@FreeBSD.org>
Wed, 28 May 2014 05:57:35 +0000 (05:57 +0000)
committerDmitry Chagin <dchagin@FreeBSD.org>
Wed, 28 May 2014 05:57:35 +0000 (05:57 +0000)
commit32fd44657c2054987d4b7852a93f3a09cda3ecc6
tree4897e5d1af8f033da97c124fc760a5158aed6616
parent5930251a9d7fb9afa64fd2f0397e525628347f43
In r218101 I have not changed properly the futex syscall definition.
Some Linux futex ops atomically verifies that the futex address uaddr
(uval) contains the value val. Comparing signed uval and unsigned val
may lead to an unexpected result, mostly to a deadlock.

So copyin uaddr to an unsigned int to compare the parameters correctly.

While here change ktr records to print parameters in more readable format.

Tested by eadler@

MFC after: 3 days
sys/compat/linux/linux_futex.c