Find file History
Adhemerval Zanella
Adhemerval Zanella posix: Fix posix_spawn invalid memory access
Current Linux posix_spawn spawn do not test if the pid argument is
valid before trying to update it for success case.  This patch fixes
it.

Tested on x86_64 and i686.

	* sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix invalid memory
	access where posix_spawn success and pid argument is null.
	* posix/tst-spawn.c (do_test): Add posix_spawn null pid argument for
	success case.
Latest commit 2a69f85 Mar 20, 2016
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
bits Update copyright dates with scripts/update-copyrights. Jan 4, 2016
rxspencer [BZ 697] Jan 8, 2009
sys Update copyright dates with scripts/update-copyrights. Jan 4, 2016
BOOST.tests Update. Dec 27, 2003
Depend New file, libio needs localedata for tests. Jul 29, 2000
Makefile posix: New Linux posix_spawn{p} implementation Mar 7, 2016
PCRE.tests Update. Nov 25, 2004
PTESTS Update. Nov 26, 2003
PTESTS2C.sed Update. Nov 13, 2003
TESTS Update. Jan 18, 2000
TESTS2C.sed 1997-05-03 00:53 Ulrich Drepper <drepper@cygnus.com> May 3, 1997
Versions Fix aio_* pread namespace (bug 18519). Jun 12, 2015
_exit.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
alarm.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
annexc.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
bsd-getpgrp.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
bug-ga1.c * posix/bug-ga1.c: Include <string.h> for memset prototype. Feb 21, 2004
bug-ga2.c Update. Feb 23, 2004
bug-getopt1.c Add tests for recent getopt changes. Apr 8, 2010
bug-getopt2.c Add tests for recent getopt changes. Apr 8, 2010
bug-getopt3.c Add tests for recent getopt changes. Apr 8, 2010
bug-getopt4.c Add tests for recent getopt changes. Apr 8, 2010
bug-getopt5.c Add tests for recent getopt changes. Apr 8, 2010
bug-glob1.c Update. Oct 1, 2004
bug-glob2.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
bug-glob3.c Add test for last glob bug. Mar 24, 2010
bug-regex1.c Include <wchar.h> for fwide. Feb 7, 2001
bug-regex10.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
bug-regex11.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
bug-regex12.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
bug-regex13.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
bug-regex14.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
bug-regex15.c 2002-12-13 Roland McGrath <roland@redhat.com> Dec 13, 2002
bug-regex16.c Update. Jan 16, 2003
bug-regex17.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
bug-regex18.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
bug-regex19.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
bug-regex2.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
bug-regex20.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
bug-regex21.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
bug-regex22.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
bug-regex23.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
bug-regex24.c Update. Nov 15, 2004
bug-regex25.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
bug-regex26.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
bug-regex27.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
bug-regex28.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
bug-regex29.c Add missing stdio.h include. Nov 15, 2009
bug-regex3.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
bug-regex30.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
bug-regex31.c Fix warning in posix/bug-regex31.c. Nov 25, 2014
bug-regex31.input One more regex memory leak fixed. Oct 12, 2010
bug-regex32.c Fix unnecessary overallocation due to incomplete character May 28, 2011
bug-regex33.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
bug-regex34.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
bug-regex35.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
bug-regex36.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
bug-regex4.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
bug-regex5.c Add #include <stdint.h> for uint[32|64]_t usage (except installed hea… May 16, 2013
bug-regex6.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
bug-regex7.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
bug-regex8.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
bug-regex9.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
confstr.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
cpio.h Update copyright dates with scripts/update-copyrights. Jan 4, 2016
environ.c Moved to csu/errno-loc.c. Dec 14, 2005
execl.c posix: Remove dynamic memory allocation from execl{e,p} Mar 7, 2016
execle.c posix: Remove dynamic memory allocation from execl{e,p} Mar 7, 2016
execlp.c posix: Remove dynamic memory allocation from execl{e,p} Mar 7, 2016
execv.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
execve.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
execvp.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
execvpe.c posix: execvpe cleanup Mar 7, 2016
fexecve.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
fnmatch.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
fnmatch.h Update copyright dates with scripts/update-copyrights. Jan 4, 2016
fnmatch_loop.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
fork.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
fpathconf.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
gai.conf [BZ #11438] Sep 28, 2012
gai_strerror.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
get_child_max.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
getaddrinfo.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
getconf-speclist.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
getconf.c Update copyright dates not handled by scripts/update-copyrights. Jan 4, 2016
getegid.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
geteuid.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
getgid.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
getgroups.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
getopt.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
getopt.h Update copyright dates with scripts/update-copyrights. Jan 4, 2016
getopt1.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
getopt_init.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
getopt_int.h Update copyright dates with scripts/update-copyrights. Jan 4, 2016
getpgid.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
getpgrp.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
getpid.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
getppid.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
getresgid.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
getresuid.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
getsid.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
getuid.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
glob.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
glob.h Update copyright dates with scripts/update-copyrights. Jan 4, 2016
glob64.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
globtest.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
globtest.sh Make shebang interpreter directives consistent Jan 7, 2016
group_member.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
init-posix.c Moved to csu/errno-loc.c. Dec 14, 2005
nanosleep.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
pathconf.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
pause.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
posix-conf-vars.h Update copyright dates with scripts/update-copyrights. Jan 4, 2016
posix-conf-vars.list Use posix-conf-vars.list to generate spec array Dec 29, 2014
posix-envs.def Update copyright dates with scripts/update-copyrights. Jan 4, 2016
posix_madvise.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
pread.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
pread64.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
ptestcases.h Update. Nov 26, 2003
pwrite.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
pwrite64.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
re_comp.h Update copyright dates with scripts/update-copyrights. Jan 4, 2016
regcomp.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
regex.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
regex.h Update copyright dates with scripts/update-copyrights. Jan 4, 2016
regex_internal.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
regex_internal.h Update copyright dates with scripts/update-copyrights. Jan 4, 2016
regexbug1.c Fix -Wformat-security warnings in posix/regexbug1.c Dec 11, 2014
regexec.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
runptests.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
runtests.c * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to Jul 28, 2007
sched.h Update copyright dates with scripts/update-copyrights. Jan 4, 2016
sched_cpualloc.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
sched_cpucount.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
sched_cpufree.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
sched_getaffinity.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
sched_getp.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
sched_gets.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
sched_primax.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
sched_primin.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
sched_rr_gi.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
sched_setaffinity.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
sched_setp.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
sched_sets.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
sched_yield.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
setgid.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
setpgid.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
setpgrp.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
setresgid.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
setresuid.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
setsid.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
setuid.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
sleep.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
spawn.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
spawn.h Update copyright dates with scripts/update-copyrights. Jan 4, 2016
spawn_faction_addclose.c Improve file descriptor checks for posix_spawn actions [BZ #19505] Feb 19, 2016
spawn_faction_adddup2.c Improve file descriptor checks for posix_spawn actions [BZ #19505] Feb 19, 2016
spawn_faction_addopen.c Improve file descriptor checks for posix_spawn actions [BZ #19505] Feb 19, 2016
spawn_faction_destroy.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
spawn_faction_init.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
spawn_int.h Improve file descriptor checks for posix_spawn actions [BZ #19505] Feb 19, 2016
spawn_valid_fd.c Improve file descriptor checks for posix_spawn actions [BZ #19505] Feb 19, 2016
spawnattr_destroy.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
spawnattr_getdefault.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
spawnattr_getflags.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
spawnattr_getpgroup.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
spawnattr_getschedparam.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
spawnattr_getschedpolicy.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
spawnattr_getsigmask.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
spawnattr_init.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
spawnattr_setdefault.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
spawnattr_setflags.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
spawnattr_setpgroup.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
spawnattr_setschedparam.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
spawnattr_setschedpolicy.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
spawnattr_setsigmask.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
spawni.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
spawnp.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
sysconf.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
tar.h Update copyright dates with scripts/update-copyrights. Jan 4, 2016
test-vfork.c Use (void) in no-arguments function definitions. Jun 8, 2013
testcases.h Update. Jan 18, 2000
testfnm.c FIx handling of unterminated [ expression in fnmatch. Jan 14, 2011
times.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
transbug.c Fix executable mode. Jun 6, 2013
tst-boost.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
tst-chmod.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
tst-cpucount.c When iterating over CPU bitmask, don't try more than CPU_SETSIZE. Jun 16, 2009
tst-cpuset.c * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree. Jul 29, 2007
tst-dir.c Add missing inclusion of libc-internal.h. Feb 22, 2016
tst-exec-static.c Support run tst-exec and tst-spawn directly Jan 10, 2013
tst-exec.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
tst-execl1.c Test for exec function. Feb 23, 2005
tst-execl2.c Test for exec function. Feb 23, 2005
tst-execle1.c 2005-12-27 Roland McGrath <roland@redhat.com> Dec 27, 2005
tst-execle2.c 2005-12-27 Roland McGrath <roland@redhat.com> Dec 27, 2005
tst-execlp1.c Test for exec function. Feb 23, 2005
tst-execlp2.c Test for exec function. Feb 23, 2005
tst-execv1.c Test for exec function. Feb 23, 2005
tst-execv2.c Test for exec function. Feb 23, 2005
tst-execve1.c Test for exec function. Feb 23, 2005
tst-execve2.c Test for exec function. Feb 23, 2005
tst-execvp1.c posix: execvpe cleanup Mar 7, 2016
tst-execvp2.c posix: execvpe cleanup Mar 7, 2016
tst-execvp3.c posix: execvpe cleanup Mar 7, 2016
tst-execvp4.c posix: execvpe cleanup Mar 7, 2016
tst-execvpe1.c posix: execvpe cleanup Mar 7, 2016
tst-execvpe2.c posix: execvpe cleanup Mar 7, 2016
tst-execvpe3.c posix: execvpe cleanup Mar 7, 2016
tst-execvpe4.c posix: execvpe cleanup Mar 7, 2016
tst-execvpe5.c posix: Fix tst-execvpe5 for --enable-hardcoded-path-in-tests Mar 8, 2016
tst-execvpe6.c posix: execvpe cleanup Mar 7, 2016
tst-fnmatch.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
tst-fnmatch.input Update copyright dates with scripts/update-copyrights. Jan 4, 2016
tst-fnmatch2.c FIx handling of unterminated [ expression in fnmatch. Jan 14, 2011
tst-fnmatch3.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
tst-fork.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
tst-getaddrinfo.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
tst-getaddrinfo2.c Update. Oct 6, 2004
tst-getaddrinfo3.c * posix/Makefile (tests): Add tst-getaddrinfo3. Apr 30, 2006
tst-getaddrinfo4.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
tst-getaddrinfo5.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
tst-getconf.sh Make shebang interpreter directives consistent Jan 7, 2016
tst-getopt_long1.c Fix warning in posix/tst-getopt_long1.c. Dec 2, 2014
tst-gnuglob.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
tst-mmap-offset.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
tst-mmap.c Modify several tests to use test-skeleton.c Nov 5, 2014
tst-nanosleep.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
tst-nice.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
tst-pathconf.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
tst-pcre.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
tst-posix_spawn-fd.c Improve file descriptor checks for posix_spawn actions [BZ #19505] Feb 19, 2016
tst-preadwrite.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
tst-preadwrite64.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
tst-regex.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
tst-regex2.c Update. Dec 10, 2004
tst-regexloc.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
tst-rfc3484-2.c Fix qsort_r namespace (bug 17571). Nov 12, 2014
tst-rfc3484-3.c Fix qsort_r namespace (bug 17571). Nov 12, 2014
tst-rfc3484.c Fix qsort_r namespace (bug 17571). Nov 12, 2014
tst-rxspencer-no-utf8.c Split up rules for tests using mtrace and something else. Feb 14, 2014
tst-rxspencer.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
tst-spawn-static.c Support run tst-exec and tst-spawn directly Jan 10, 2013
tst-spawn.c posix: Fix posix_spawn invalid memory access Mar 20, 2016
tst-spawn2.c posix: New Linux posix_spawn{p} implementation Mar 7, 2016
tst-sysconf.c Hurd: Update posix_opt.h May 10, 2012
tst-truncate.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
tst-truncate64.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
tst-vfork1.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
tst-vfork2.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
tst-vfork3.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
tst-waitid.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
tstgetopt.c Update. Sep 6, 2000
uname-values.h Update copyright dates with scripts/update-copyrights. Jan 4, 2016
uname.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
unistd.h Update copyright dates with scripts/update-copyrights. Jan 4, 2016
vfork.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
wait.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
wait.h update from main archive 961126 Nov 27, 1996
wait3.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
wait4.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
waitid.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
waitpid.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
wordexp-test.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
wordexp-tst.sh Make shebang interpreter directives consistent Jan 7, 2016
wordexp.c Update copyright dates with scripts/update-copyrights. Jan 4, 2016
wordexp.h Update copyright dates with scripts/update-copyrights. Jan 4, 2016