glibc/posix
Adhemerval Zanella d3573f61ac 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.
2015-08-28 10:42:07 -03:00
..
bits Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
rxspencer
sys Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
BOOST.tests
Depend
Makefile Fix wordsize-32 mmap offset for negative value (BZ#18877) 2015-08-28 10:42:07 -03:00
PCRE.tests
PTESTS
PTESTS2C.sed
TESTS
TESTS2C.sed
Versions Fix aio_* pread namespace (bug 18519). 2015-06-12 17:34:11 +00:00
_exit.c PLT avoidance for _exit in rtld. 2015-07-09 15:25:47 -07:00
alarm.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
annexc.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
bsd-getpgrp.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
bug-ga1.c
bug-ga2.c
bug-getopt1.c
bug-getopt2.c
bug-getopt3.c
bug-getopt4.c
bug-getopt5.c
bug-glob1.c
bug-glob2.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
bug-glob3.c
bug-regex1.c
bug-regex2.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
bug-regex3.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
bug-regex4.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
bug-regex5.c Add #include <stdint.h> for uint[32|64]_t usage (except installed headers). 2013-05-16 11:32:54 -05:00
bug-regex6.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
bug-regex7.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
bug-regex8.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
bug-regex9.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
bug-regex10.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
bug-regex11.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
bug-regex12.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
bug-regex13.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
bug-regex14.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
bug-regex15.c
bug-regex16.c
bug-regex17.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
bug-regex18.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
bug-regex19.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
bug-regex20.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
bug-regex21.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
bug-regex22.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
bug-regex23.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
bug-regex24.c
bug-regex25.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
bug-regex26.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
bug-regex27.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
bug-regex28.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
bug-regex29.c
bug-regex30.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
bug-regex31.c Fix warning in posix/bug-regex31.c. 2014-11-25 21:40:51 +00:00
bug-regex31.input
bug-regex32.c
bug-regex33.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
bug-regex34.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
bug-regex35.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
bug-regex36.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
confstr.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
cpio.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
environ.c
execl.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
execle.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
execlp.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
execv.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
execve.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
execvp.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
execvpe.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
fexecve.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
fnmatch.c Fix fnmatch strnlen namespace (bug 18470). 2015-06-03 13:58:58 +00:00
fnmatch.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
fnmatch_loop.c Fix BZ 18036 buffer overflow (read past end of buffer) in internal_fnmatch 2015-03-02 13:34:22 -08:00
fork.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
fpathconf.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
gai.conf [BZ #11438] 2012-09-28 10:15:05 -06:00
gai_strerror.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
get_child_max.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getaddrinfo.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getconf-speclist.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getconf.c Update copyright dates not handled by scripts/update-copyrights. 2015-01-02 16:54:45 +00:00
getegid.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
geteuid.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getgid.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getgroups.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getopt.c Fix open_memstream namespace (bug 18498). 2015-06-05 23:32:46 +00:00
getopt.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getopt1.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getopt_init.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getopt_int.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getpgid.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getpgrp.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getpid.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getppid.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getresgid.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getresuid.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getsid.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getuid.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
glob.c Fix getlogin_r namespace (bug 18527). 2015-06-12 20:02:30 +00:00
glob.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
glob64.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
globtest.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
globtest.sh Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
group_member.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
init-posix.c
nanosleep.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
pathconf.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
pause.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
posix-conf-vars.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
posix-conf-vars.list Use posix-conf-vars.list to generate spec array 2014-12-29 19:56:27 +05:30
posix-envs.def Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
posix_madvise.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
pread.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
pread64.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
ptestcases.h
pwrite.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
pwrite64.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
re_comp.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
regcomp.c Fix regcomp wcscoll, wcscmp namespace (bug 18497). 2015-06-09 21:07:30 +00:00
regex.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
regex.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
regex_internal.c Fix regex wcrtomb namespace (bug 18496). 2015-06-05 21:31:39 +00:00
regex_internal.h Fix regex wctype namespace (bug 18495). 2015-06-05 20:04:47 +00:00
regexbug1.c Fix -Wformat-security warnings in posix/regexbug1.c 2014-12-11 13:08:26 -08:00
regexec.c Fix regcomp wcscoll, wcscmp namespace (bug 18497). 2015-06-09 21:07:30 +00:00
runptests.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
runtests.c
sched.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
sched_cpualloc.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
sched_cpucount.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
sched_cpufree.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
sched_getaffinity.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
sched_getp.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
sched_gets.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
sched_primax.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
sched_primin.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
sched_rr_gi.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
sched_setaffinity.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
sched_setp.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
sched_sets.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
sched_yield.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
setgid.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
setpgid.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
setpgrp.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
setresgid.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
setresuid.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
setsid.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
setuid.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
sleep.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
spawn.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
spawn.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
spawn_faction_addclose.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
spawn_faction_adddup2.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
spawn_faction_addopen.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
spawn_faction_destroy.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
spawn_faction_init.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
spawn_int.h posix_spawn_file_actions_addopen needs to copy the path argument (BZ 17048) 2014-06-11 23:13:42 +02:00
spawnattr_destroy.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
spawnattr_getdefault.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
spawnattr_getflags.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
spawnattr_getpgroup.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
spawnattr_getschedparam.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
spawnattr_getschedpolicy.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
spawnattr_getsigmask.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
spawnattr_init.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
spawnattr_setdefault.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
spawnattr_setflags.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
spawnattr_setpgroup.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
spawnattr_setschedparam.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
spawnattr_setschedpolicy.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
spawnattr_setsigmask.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
spawni.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
spawnp.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
sysconf.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tar.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
test-vfork.c Use (void) in no-arguments function definitions. 2013-06-08 00:22:23 +00:00
testcases.h
testfnm.c
times.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
transbug.c Fix executable mode. 2013-06-06 02:15:33 +02:00
tst-boost.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-chmod.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-cpucount.c
tst-cpuset.c
tst-dir.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-exec-static.c Support run tst-exec and tst-spawn directly 2013-01-10 14:14:55 -08:00
tst-exec.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-execl1.c
tst-execl2.c
tst-execle1.c
tst-execle2.c
tst-execlp1.c
tst-execlp2.c
tst-execv1.c
tst-execv2.c
tst-execve1.c
tst-execve2.c
tst-execvp1.c
tst-execvp2.c
tst-execvp3.c
tst-execvp4.c
tst-fnmatch.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-fnmatch.input Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-fnmatch2.c
tst-fnmatch3.c Fix BZ 18036 buffer overflow (read past end of buffer) in internal_fnmatch 2015-03-02 13:34:22 -08:00
tst-fork.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-getaddrinfo.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-getaddrinfo2.c
tst-getaddrinfo3.c
tst-getaddrinfo4.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-getaddrinfo5.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-getconf.sh fix non-portable `echo -n` usage 2015-08-09 04:19:12 -04:00
tst-getopt_long1.c Fix warning in posix/tst-getopt_long1.c. 2014-12-02 22:03:59 +00:00
tst-gnuglob.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-mmap-offset.c Fix wordsize-32 mmap offset for negative value (BZ#18877) 2015-08-28 10:42:07 -03:00
tst-mmap.c Modify several tests to use test-skeleton.c 2014-11-05 15:24:08 +05:30
tst-nanosleep.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-nice.c Fix BZ #18086 -- nice resets errno to 0. 2015-08-11 23:40:00 -07:00
tst-pathconf.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-pcre.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-preadwrite.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-preadwrite64.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-regex.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-regex2.c
tst-regexloc.c Modify several tests to use test-skeleton.c 2015-08-06 02:59:04 -04:00
tst-rfc3484-2.c Fix qsort_r namespace (bug 17571). 2014-11-12 22:33:41 +00:00
tst-rfc3484-3.c Fix qsort_r namespace (bug 17571). 2014-11-12 22:33:41 +00:00
tst-rfc3484.c Fix qsort_r namespace (bug 17571). 2014-11-12 22:33:41 +00:00
tst-rxspencer-no-utf8.c Split up rules for tests using mtrace and something else. 2014-02-14 13:45:14 +00:00
tst-rxspencer.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-spawn-static.c Support run tst-exec and tst-spawn directly 2013-01-10 14:14:55 -08:00
tst-spawn.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-sysconf.c Hurd: Update posix_opt.h 2012-05-10 15:57:27 -07:00
tst-truncate.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-truncate64.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-vfork1.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-vfork2.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-vfork3.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-waitid.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tstgetopt.c
uname-values.h NaCl: Provide non-default values for uname. 2015-05-12 10:54:47 -07:00
uname.c NaCl: Provide non-default values for uname. 2015-05-12 10:54:47 -07:00
unistd.h Restore _POSIX2_C_VERSION definition (bug 438). 2015-05-22 17:14:04 +00:00
vfork.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
wait.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
wait.h
wait3.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
wait4.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
waitid.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
waitpid.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
wordexp-test.c Avoid SIGFPE in wordexp [BZ #18100] 2015-03-23 16:12:38 +01:00
wordexp-tst.sh Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
wordexp.c Avoid SIGFPE in wordexp [BZ #18100] 2015-03-23 16:12:38 +01:00
wordexp.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00