[LTP] [PATCH 4/4] syscalls/mmap04: Rewrite the test using new LTP API
Avinesh Kumar
akumar@suse.de
Fri Sep 1 14:13:41 CEST 2023
Hi Cyril,
On Tuesday, August 29, 2023 3:33:46 PM IST Cyril Hrubis wrote:
> Hi!
> This is nearly identical to the mmap02.c and the same comments apply
> here.
>
> Also the test does not check the PROT_EXEC part at all. If we wanted to
> properly test PROT_EXEC we would have to copy a function code to the
> file first then execute it, something that mprotect04 does, but since
> that flag is already tested in mprotect04 it does not make that much
> sense to have it here as well.
Yes, I agree this test does not cover PROT_EXEC scenario. So, if this case is
covered in mprotect04, do you recommend dropping this test altogether from
here?
--
Regards,
Avinesh
More information about the ltp
mailing list