glibc/sysdeps/posix
Adhemerval Zanella c45d78aac4 posix: Fix generic p{read,write}v buffer allocation (BZ#22457)
As described in BZ#22457 an interpose malloc can free an invalid
pointer for fallback preadv implementation.  Fortunately this is
just and issue on microblaze-linux-gnu running kernels older than
3.15.  This patch fixes it by calling mmap/unmap instead of
posix_memalign/ free.

Checked on microblaze-linux-gnu check with run-built-tests=no and
by using the sysdeps/posix implementation on x86_64-linux-gnu (just
for sanity test where it shown no regression).

	[BZ #22457]
	* sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
	posix_memalign/free.
	* sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
2017-11-24 12:16:15 -02:00
..
alarm.c
clock_getres.c
clock.c
closedir.c Consolidate non cancellable close call 2017-08-18 18:38:55 -03:00
ctermid.c
cuserid.c
dirfd.c hurd: Fix dirfd symbol exposition from ftw 2017-09-28 00:49:05 +02:00
dirstream.h
dl-fileid.h
dup2.c
dup.c
euidaccess.c
fdopendir.c
flock.c
fpathconf.c
gai_strerror-strs.h
gai_strerror.c
getaddrinfo.c Hide internal idna functions [BZ #18822] 2017-10-01 17:33:22 -07:00
getcwd.c Consolidate non cancellable close call 2017-08-18 18:38:55 -03:00
getdtsz.c
gethostname.c Clean pthread functions namespaces for C11 threads 2017-06-23 17:38:17 -03:00
getpagesize.c
gettimeofday.c
isatty.c
isfdtype.c
killpg.c
libc_fatal.c Consolidate non cancellable open call 2017-08-17 16:50:35 -03:00
Makefile
mkfifo.c
mkfifoat.c
nice.c
open64.c
opendir.c dirent: Remove internal_function attribute 2017-08-31 16:02:40 +02:00
pathconf.c
pause.c hurd: Fix libc link 2017-09-03 04:36:29 +02:00
posix_fallocate64.c
posix_fallocate.c
pread64.c Add missing libc_hidden_weak/def calls 2017-09-17 21:57:39 +02:00
pread.c
preadv2.c hurd: Fix p{read,write}{,v64}v2.c build 2017-09-03 03:03:40 +02:00
preadv64.c
preadv64v2.c hurd: Fix p{read,write}{,v64}v2.c build 2017-09-03 03:03:40 +02:00
preadv_common.c posix: Fix generic p{read,write}v buffer allocation (BZ#22457) 2017-11-24 12:16:15 -02:00
preadv.c
profil.c
pwrite64.c
pwrite.c
pwritev2.c hurd: Fix p{read,write}{,v64}v2.c build 2017-09-03 03:03:40 +02:00
pwritev64.c
pwritev64v2.c hurd: Fix p{read,write}{,v64}v2.c build 2017-09-03 03:03:40 +02:00
pwritev_common.c posix: Fix generic p{read,write}v buffer allocation (BZ#22457) 2017-11-24 12:16:15 -02:00
pwritev.c
raise.c
readdir_r.c
readdir.c
readv.c Hide __readv and __writev [BZ #18822] 2017-10-01 15:54:10 -07:00
remove.c
rename.c
rewinddir.c
seekdir.c
shm_open.c Add missing include for pthread_setcancelstate 2017-08-03 00:30:22 +02:00
shm_unlink.c
shm-directory.c
shm-directory.h
sigblock.c Hide internal signal functions [BZ #18822] 2017-10-01 16:04:41 -07:00
sigignore.c
sigintr.c
signal.c
sigpause.c Cleanup sigpause implementation 2017-11-15 15:45:39 -02:00
sigset.c
sigsetmask.c
sigsuspend.c
sigwait.c
sleep.c
spawni.c Consolidate non cancellable close call 2017-08-18 18:38:55 -03:00
sprofil.c
Subdirs
sysconf.c sysconf: Fix missing definition of UIO_MAXIOV on Linux [BZ #22321] 2017-10-20 04:10:15 +02:00
system.c hurd: Fix libc link 2017-09-03 04:36:29 +02:00
sysv_signal.c
telldir.c
tempname.c
time.c
timespec_get.c
truncate.c
ttyname_r.c posix: Remove internal_function attribute 2017-08-31 18:52:00 +02:00
ttyname.c posix: Remove internal_function attribute 2017-08-31 18:52:00 +02:00
ulimit.c
usleep.c
utime.c
utimes.c
wait3.c
wait.c
waitid.c
writev.c Hide __readv and __writev [BZ #18822] 2017-10-01 15:54:10 -07:00