From: <ch...@su...> - 2013-06-24 15:41:08
|
Hi! > Test SIGBUS error by accessing to a portion of the buffer that does not > correspond to the file. > > Signed-off-by: DAN LI <li...@cn...> > --- > 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 ch...@su... |