1
0
Files
linux/fs
Al Viro 1da92779e2 aio: sanitize the limit checking in io_submit(2)
as it is, the logics in native io_submit(2) is "if asked for
more than LONG_MAX/sizeof(pointer) iocbs to submit, don't
bother with more than LONG_MAX/sizeof(pointer)" (i.e.
512M requests on 32bit and 1E requests on 64bit) while
compat io_submit(2) goes with "stop after the first
PAGE_SIZE/sizeof(pointer) iocbs", i.e. 1K or so.  Which is
	* inconsistent
	* *way* too much in native case
	* possibly too little in compat one
and
	* wrong anyway, since the natural point where we
ought to stop bothering is ctx->nr_events

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2018-05-29 23:20:17 -04:00
..
2018-04-20 09:59:33 -07:00
2018-05-21 14:30:07 -04:00
2018-05-21 14:30:08 -04:00
2018-03-14 13:31:23 +01:00
2018-03-27 13:18:09 -04:00
2018-04-20 17:18:36 -07:00
2018-05-21 14:30:09 -04:00
2018-04-11 10:28:39 -07:00
2018-05-26 09:16:44 +02:00
2018-04-11 10:28:37 -07:00
2018-04-20 17:18:35 -07:00
2018-04-11 10:28:39 -07:00
2018-01-29 07:27:24 -08:00
2018-02-15 15:34:42 -05:00
2018-05-26 09:16:44 +02:00
2018-05-26 09:16:44 +02:00