[PATCH] Fix wordsize-32 mmap offset for negative value (BZ#18877)
Dmitry V. Levin
ldv@altlinux.org
Thu Jan 28 19:43:00 GMT 2016
On Wed, Jan 20, 2016 at 09:44:26PM +0000, Joseph Myers wrote:
> I'm looking at failures of this new test for MIPS, but am puzzled by the
> descriptions of this issue in terms of things being incorrect and fixed
> without any statement of what is actually correct or why that is correct.
>
> The expectation in the test seems to be that negative offsets passed to
> mmap should be interpreted as large unsigned values. But I can't find
> anything in POSIX, or in the glibc manual, or in the Linux man-pages
> collection, to justify those semantics. So what is the basis for that
> interpretation as part of the glibc API (and for its being compatible with
> POSIX), rather than negative arguments being considered invalid?
Is there any 32-bit kernel currently supported by glibc where underlying
system call doesn't operate with 4K or pagesize units for offsets?
--
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20160128/dd03fa9a/attachment.sig>
More information about the Libc-alpha
mailing list