]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 9 Dec 2010 21:26:30 +0000 (13:26 -0800)
commit6e1fc7a18ebfa14bac5a1566651ee6474cbb9af4
tree18e93049863554d1cd2fc42e2c083bda229de8e5
parent239023a9d11fa1be4fec0adc4d9b840c4b815775
block: check for proper length of iov entries in blk_rq_map_user_iov()

commit 9284bcf4e335e5f18a8bc7b26461c33ab60d0689 upstream.

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

Reported-by: Dan Rosenberg <drosenberg@vsecurity.com>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
block/blk-map.c