block: check for proper length of iov entries in blk_rq_map_user_iov()
authorJens Axboe <jaxboe@fusionio.com>
Fri, 29 Oct 2010 14:10:18 +0000 (08:10 -0600)
committerJens Axboe <jaxboe@fusionio.com>
Wed, 10 Nov 2010 13:40:42 +0000 (14:40 +0100)
commit9284bcf4e335e5f18a8bc7b26461c33ab60d0689
tree82860d516748327e9be4903e541479e7ac40e6a1
parent151f52f09c5728ecfdd0c289da1a4b30bb416f2c
block: check for proper length of iov entries in blk_rq_map_user_iov()

Ensure that we pass down properly validated iov segments before
calling into the mapping or copy functions.

Reported-by: Dan Rosenberg <drosenberg@vsecurity.com>
Cc: stable@kernel.org
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
block/blk-map.c