From: chrubis@suse.cz
To: DAN LI <li.dan@cn.fujitsu.com>
Cc: LTP list <ltp-list@lists.sourceforge.net>
Subject: Re: [LTP] [PATCH v2] mmap/mmap13.c: new case to test SIGBUS error of mmap
Date: Mon, 24 Jun 2013 17:42:32 +0200 [thread overview]
Message-ID: <20130624154231.GA2808@rei> (raw)
In-Reply-To: <51C7FD6D.4010904@cn.fujitsu.com>
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.dan@cn.fujitsu.com>
> ---
> 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
chrubis@suse.cz
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
next parent reply other threads:[~2013-06-24 15:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <51C7FD6D.4010904@cn.fujitsu.com>
2013-06-24 15:42 ` chrubis [this message]
[not found] ` <990668294.1913615.1372679398858.JavaMail.root@redhat.com>
2013-07-01 12:09 ` [LTP] [PATCH v2] mmap/mmap13.c: new case to test SIGBUS error of mmap chrubis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130624154231.GA2808@rei \
--to=chrubis@suse.cz \
--cc=li.dan@cn.fujitsu.com \
--cc=ltp-list@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.