This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
Re: [PATCH] tilegx: provide a setxid.h to handle negative uids
On 5/17/2012 7:20 PM, Joseph S. Myers wrote:
> On Thu, 17 May 2012, Chris Metcalf wrote:
>
>> We observed a bug where setreuid(-1, -1) was becoming
>> setreuid(4294967295, 4294967295) instead, and therefore failing,
>> instead of doing nothing and returning success.
> For MIPS there was such an issue but it was concluded that it was a kernel
> bug and the kernel should properly extend syscall arguments passed from
> userspace; see the references in bug 4459. Is tilegx doing things
> differently from that?
I was able to slide the change to the tilegx kernel to use SYSCALL_WRAPPERS
under the wire and hit 3.4. I also tagged it for stable@vger.kernel.org.
Thanks again!
--
Chris Metcalf, Tilera Corp.
http://www.tilera.com