Re: add io_getevents() BUGS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Cyril,

On Wed, Mar 23, 2011 at 8:14 PM, Cyril Hrubis <chrubis@xxxxxxx> wrote:
> Hi!
> The io_getevents() may cause segfault when called with invalid ctx_id.
>
> For reference see: http://marc.info/?l=linux-aio&m=130089887002435&w=2
>
> The attached patch adds BUGS paragraph into corresponding manpage.

I've applied a slightly different version of this patch, as below. Thanks

Cheers,

Michael

PS In general, inline patches are easier tor me to process.

--- a/man2/io_getevents.2
+++ b/man2/io_getevents.2
@@ -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),



-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface"; http://man7.org/tlpi/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux