[LTP] [PATCH v2] open08: calling tst_get_bad_addr from LTP API

Jan Stancek jstancek@redhat.com
Wed Jul 11 11:42:31 CEST 2018


----- Original Message -----
> From open(2) manual, pathname(unmapped_fname) points outside the
> accessible address space, then test will result in failure with EFAULT.
> 
> LTP tst_get_bad_addr() maps a contiguous virtual memory region by using
> PROT_NONE to provide page not be accessed too. Here we can take use of
> it to achieve the same purpose.
> 
> Also fix code comments to match open(2) maunal precisely.
> 
> Signed-off-by: Li Wang <liwang@redhat.com>

Pushed.

Thanks,
Jan


More information about the ltp mailing list