Re: [PATCH, take4] FUTEX : new PRIVATE futexes

Nick Piggin
2007-04-11T09:40:39Z

Nick Piggin wrote:
> Pierre Peiffer wrote:
>
>> Nick Piggin a écrit :
>>
>>>
>>> But... that isn't there in mainline. Why is it in -mm?
>>
>>
>>
>> This was introduced by lguest code....
>> I did not follow exaclty why.
>
>
> OK, that's no problem, then it can remain exported but we just
> have to document and audit that callers must pass in an aligned
> address. We can also BUG_ON(address & ~PAGE_MASK); to handle
> the security aspect.

Err, duh no we can't because we don't know the size, which is the
whole point :P

Anyway.... just ensure callers have to fix alignment.

--
SUSE Labs, Novell Inc.