From: Heiko Carstens Date: Mon, 22 Oct 2012 13:49:02 +0000 (+0200) Subject: s390/gup: add missing TASK_SIZE check to get_user_pages_fast() X-Git-Tag: v3.7-rc6~12^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d55c4c613fc4d4ad2ba0fc6fa2b57176d420f7e4;p=pandora-kernel.git s390/gup: add missing TASK_SIZE check to get_user_pages_fast() When walking page tables we need to make sure that everything is within bounds of the ASCE limit of the task's address space. Otherwise we might calculate e.g. a pud pointer which is not within a pud and dereference it. So check against TASK_SIZE (which is the ASCE limit) before walking page tables. Reviewed-by: Gerald Schaefer Cc: stable@vger.kernel.org Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky --- Reading git-diff-tree failed