aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2012-11-11 09:08:32 +0100
committerMichael Kerrisk <mtk.manpages@gmail.com>2012-11-11 09:08:32 +0100
commit46fccf2d8ee8271f91da6422fe78e1f87f5c0540 (patch)
treefca480b861332c1413519c6c3039999b2ea076bf
parent1e4a9e188ae70c9953a5f1885ae92fbd70590035 (diff)
downloadman-pages-46fccf2d8ee8271f91da6422fe78e1f87f5c0540.tar.gz
io_getevents.2: io_getevents() may cause segfault when called with invalid ctx_id
For reference see: http://marc.info/?l=linux-aio&m=130089887002435&w=2 Signed-off-by: Cyril Hrubis <chrubis@suse.cz> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man2/io_getevents.27
1 files changed, 6 insertions, 1 deletions
diff --git a/man2/io_getevents.2 b/man2/io_getevents.2
index 3b6101f39e..d9fdfebd45 100644
--- a/man2/io_getevents.2
+++ b/man2/io_getevents.2
@@ -2,7 +2,7 @@
.\" This file is distributed according to the GNU General Public License.
.\" See the file COPYING in the top level source directory for details.
.\"
-.TH IO_GETEVENTS 2 2012-07-13 "Linux" "Linux Programmer's Manual"
+.TH IO_GETEVENTS 2 2012-11-11 "Linux" "Linux Programmer's Manual"
.SH NAME
io_getevents \- read asynchronous I/O events from the completion queue
.SH "SYNOPSIS"
@@ -92,6 +92,11 @@ then the return value follows the usual conventions for
indicating an error: \-1, with
.I errno
set to a (positive) value that indicates the error.
+.SH BUGS
+An invalid
+.IR ctx_id
+may cause a segmentation fault instead of genenerating the error
+.BR EINVAL .
.SH "SEE ALSO"
.PP
.BR io_cancel (2),