[LTP] mremap07.c: New test for mremap() with MREMAP_DONTUNMAP
Andrea Cervesato
andrea.cervesato@suse.com
Fri Apr 17 10:00:23 CEST 2026
> SAFE_MUNMAP does not clear the pointer. If setup() fails on a subsequent
> iteration before SAFE_MMAP reassigns fault_addr, cleanup() will
> double-munmap the stale pointer. Add fault_addr = NULL; after the
> SAFE_MUNMAP call.
The SAFE_MUNMAP() call already set the pointer to NULL, it didn't catch
this error. I will fix it in the agent config.
--
Andrea Cervesato
SUSE QE Automation Engineer Linux
andrea.cervesato@suse.com
More information about the ltp
mailing list