]> 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)
committerAndi Kleen <ak@linux.intel.com>
Tue, 14 Dec 2010 22:40:00 +0000 (23:40 +0100)
commite978df456e01ff5412c29e6fef5dd47960867476
tree776bb1028368b1400d2d016913641bb055d78649
parent116ad352e4fefafd5d6abc819691e61603604bee
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>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
block/blk-map.c