summaryrefslogtreecommitdiff
path: root/malloc/tst-alloc_buffer.c
diff options
context:
space:
mode:
authorArjun Shankar <arjun@redhat.com>2025-11-13 21:26:08 +0100
committerArjun Shankar <arjun@redhat.com>2025-11-18 14:28:42 +0100
commite53d85947f1e407bad864247f657ae202affb7f6 (patch)
treec8673f1954ece165a57b5cb18c801ade220e029c /malloc/tst-alloc_buffer.c
parentb9579342c68baf0beacfb4e93b9a6a325d3f9527 (diff)
malloc: Simplify tst-free-errno munmap failure test
The Linux specific test-case in tst-free-errno was backing up malloc metadata for a large mmap'd block, overwriting the block with its own mmap, then restoring malloc metadata and calling free to force an munmap failure. However, the backed up pages containing metadata can occasionally be overlapped by the overwriting mmap, leading to a metadata corruption. This commit replaces this Linux specific test case with a simpler, generic, three block allocation, expecting the kernel to coalesce the VMAs, then cause a fragmentation to trigger the same failure. Reviewed-by: Florian Weimer <fweimer@redhat.com>
Diffstat (limited to 'malloc/tst-alloc_buffer.c')
0 files changed, 0 insertions, 0 deletions