diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2015-08-27 16:44:04 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.com> | 2015-08-28 10:42:07 -0300 |
commit | d3573f61aca67a398de7eaa7593d3973cb5fd154 (patch) | |
tree | ae2d3f6feeb9c8109da990bbd9c93dcb0291e769 /ChangeLog | |
parent | 8c17cb1f6455c7a5fd6a1d05a2394129dbce012b (diff) | |
download | glibc-d3573f61aca67a398de7eaa7593d3973cb5fd154.tar.gz glibc-d3573f61aca67a398de7eaa7593d3973cb5fd154.tar.xz glibc-d3573f61aca67a398de7eaa7593d3973cb5fd154.zip |
Fix wordsize-32 mmap offset for negative value (BZ#18877)
This patch fixes the default wordsize-32 mmap implementation offset calculation for negative values. Current code uses signed shift operation to calculate the multiple size to use with syscall and it is implementation defined. Change it to use a division base on mmap page size (default being as before, 4096). Tested on armv7hf. [BZ #18877] * posix/Makefile (tests): Add tst-mmap-offset. * posix/tst-mmap.c: New file. * sysdeps/unix/sysv/linux/generic/wordsize-32/mmap.c (__mmap): Fix offset calculation for negative values.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 2f146bf8ce..287ab2db37 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2015-08-27 Adhemerval Zanella <adhemerval.zanella@linaro.org> + Dmitry V. Levin <ldv@altlinux.org> + + [BZ #18877] + * posix/Makefile (tests): Add tst-mmap-offset. + * posix/tst-mmap.c: New file. + * sysdeps/unix/sysv/linux/generic/wordsize-32/mmap.c (__mmap): Fix + offset calculation for negative values. + 2015-08-27 H.J. Lu <hongjiu.lu@intel.com> * sysdeps/i386/init-arch.h: New file. |