mcheck: Align struct hdr to MALLOC_ALIGNMENT bytes [BZ #28068]
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 12 Jul 2021 21:36:39 +0000 (14:36 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 13 Jul 2021 01:13:32 +0000 (18:13 -0700)
commit84ea6ea24bd5bef674ce16a2832dbbe4d514e6d9
tree4481eb56c43060ed63b8f4013e20f2169d32c0fe
parent72e84d1db22203e01a43268de71ea8669eca2863
mcheck: Align struct hdr to MALLOC_ALIGNMENT bytes [BZ #28068]

1. Align struct hdr to MALLOC_ALIGNMENT bytes so that malloc hooks in
libmcheck align memory to MALLOC_ALIGNMENT bytes.
2. Remove tst-mallocalign1 from tests-exclude-mcheck for i386 and x32.
3. Add tst-pvalloc-fortify and tst-reallocarray to tests-exclude-mcheck
since they use malloc_usable_size (see BZ #22057).

This fixed BZ #28068.

Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
malloc/Makefile
malloc/mcheck.c
sysdeps/i386/Makefile
sysdeps/x86_64/x32/Makefile