Files
linux/drivers
Al Viro 4d0dd4350a sg_start_req(): make sure that there's not too many elements in iovec
commit 451a2886b6 upstream.

unfortunately, allowing an arbitrary 16bit value means a possibility of
overflow in the calculation of total number of pages in bio_map_user_iov() -
we rely on there being no more than PAGE_SIZE members of sum in the
first loop there.  If that sum wraps around, we end up allocating
too small array of pointers to pages and it's easy to overflow it in
the second loop.

X-Coverup: TINC (and there's no lumber cartel either)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
[bwh: s/MAX_UIOVEC/UIO_MAXIOV/. This was fixed upstream by commit
 fdc81f45e9 ("sg_start_req(): use import_iovec()"), but we don't have
  that function.]
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-08-16 20:51:41 -07:00
..
2013-12-08 07:29:25 -08:00
2013-05-17 14:31:05 -04:00
2015-08-16 20:51:39 -07:00
2014-04-14 06:42:18 -07:00
2015-08-16 20:51:37 -07:00
2015-05-06 21:56:25 +02:00