[LTP] [PATCH] Fix mmap01 testcase on hppa architecture

Jan Stancek jstancek@redhat.com
Tue Jun 13 13:18:35 CEST 2017



----- Original Message -----
> The mmap() syscall to map a file at any given page-aligned address (via the
> MAP_FIXED flag) can fail on the hppa architecture due to cache colouring
> requirements of the architecture.
> 
> This patch drops the MAP_FIXED flag and thus maps the file instead at
> some convenient address based on the hint as given by the addr
> parameter.

It looks like we don't need addr at all. Test is remapping part
of heap with MAP_FIXED, which looks risky. I'd drop that page
initialisation inside heap too. Now, without MAP_FIXED, it's
just completely unrelated page. What do you think?

Regards,
Jan



More information about the ltp mailing list