From: Frederic Weisbecker Date: Mon, 16 Nov 2009 14:42:18 +0000 (+0100) Subject: x86: Add missing might_fault() checks to copy_{to,from}_user() X-Git-Tag: v2.6.33-rc1~396^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c93ca00eeeb774c7dd666cc7286a9e90c53e998;p=pandora-kernel.git x86: Add missing might_fault() checks to copy_{to,from}_user() On x86-64, copy_[to|from]_user() rely on assembly routines that never call might_fault(), making us missing various lockdep checks. This doesn't apply to __copy_from,to_user() that explicitly handle these calls, neither is it a problem in x86-32 where copy_to,from_user() rely on the "__" prefixed versions that also call might_fault(). Signed-off-by: Frederic Weisbecker Cc: Arjan van de Ven Cc: Linus Torvalds Cc: Nick Piggin Cc: Peter Zijlstra LKML-Reference: <1258382538-30979-1-git-send-email-fweisbec@gmail.com> [ v2: fix module export ] Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed