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>
This commit is contained in:
Michael Kerrisk 2012-11-11 09:08:32 +01:00
parent 1e4a9e188a
commit 46fccf2d8e
1 changed files with 6 additions and 1 deletions

View File

@ -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),