Hi!
> Test SIGBUS error by accessing to a portion of the buffer that does not
> correspond to the file.
> 
> Signed-off-by: DAN LI <[email protected]>
> ---
>  runtest/syscalls                        |   1 +
>  testcases/kernel/syscalls/mmap/mmap13.c | 152 
> ++++++++++++++++++++++++++++++++
>  2 files changed, 153 insertions(+)
>  create mode 100644 testcases/kernel/syscalls/mmap/mmap13.c

...

> +
> +             addr = mmap(0, page_sz * 2, PROT_READ | PROT_WRITE,
> +                         MAP_FILE | MAP_SHARED, fildes, 0);

The first parameter should really have been NULL, pushed with that
change, thanks.

-- 
Cyril Hrubis
[email protected]

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to