From c45d78aac47db08bc8ea7641c5330cccaecd3ddb Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Wed, 22 Nov 2017 18:02:20 -0200 Subject: 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. --- ChangeLog | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index e60983a50f..6791c51308 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2017-11-24 Adhemerval Zanella + + [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-22 Mike FABIAN [BZ #22469] -- cgit v1.2.3