From: Jens Axboe Date: Wed, 10 Nov 2010 13:36:25 +0000 (+0100) Subject: bio: take care not overflow page count when mapping/copying user data X-Git-Tag: v2.6.37-rc2~30^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb4644cac4a2797afc847e6c92736664d4b0ea34;p=pandora-kernel.git bio: take care not overflow page count when mapping/copying user data If the iovec is being set up in a way that causes uaddr + PAGE_SIZE to overflow, we could end up attempting to map a huge number of pages. Check for this invalid input type. Reported-by: Dan Rosenberg Cc: stable@kernel.org Signed-off-by: Jens Axboe --- Reading git-diff-tree failed