This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/22457] Generic preadv/pwritev incorrectly calls __posix_memalign
- From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Fri, 24 Nov 2017 14:16:54 +0000
- Subject: [Bug libc/22457] Generic preadv/pwritev incorrectly calls __posix_memalign
- Auto-submitted: auto-generated
- References: <bug-22457-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=22457
--- Comment #2 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via c45d78aac47db08bc8ea7641c5330cccaecd3ddb (commit)
from 3ffc4cc1ad37fb36e419c9a3a72e1916d7d893d3 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=c45d78aac47db08bc8ea7641c5330cccaecd3ddb
commit c45d78aac47db08bc8ea7641c5330cccaecd3ddb
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Wed Nov 22 18:02:20 2017 -0200
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.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 7 +++++++
sysdeps/posix/preadv_common.c | 8 +++++---
sysdeps/posix/pwritev_common.c | 8 +++++---
3 files changed, 17 insertions(+), 6 deletions(-)
--
You are receiving this mail because:
You are on the CC list for the bug.