From aa1feb8576da51d7aa25759bc0e26824e6020f74 Mon Sep 17 00:00:00 2001
From: Xiaotian Feng<dfeng@redhat.com>
Date: Mon, 29 Nov 2010 10:03:55 +0100
Subject: [PATCH] block: check for proper length of iov entries earlier in blk_rq_map_user_iov(), CVE-2010-4163
BugLink: http://bugs.launchpad.net/bugs/721504
CVE-2010-4163
commit 9284bcf checks for proper length of iov entries in
blk_rq_map_user_iov(). But if the map is unaligned, kernel
will break out the loop without checking for the proper length.
So we need to check the proper length before the unalign check.