From: Jan Beulich Date: Mon, 21 Oct 2013 08:44:37 +0000 (+0100) Subject: x86: Unify copy_to_user() and add size checking to it X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~37^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a3d9b0f3abbea957b829cdfff8169872c575642;p=pandora-kernel.git x86: Unify copy_to_user() and add size checking to it Similarly to copy_from_user(), where the range check is to protect against kernel memory corruption, copy_to_user() can benefit from such checking too: Here it protects against kernel information leaks. Signed-off-by: Jan Beulich Cc: Cc: Linus Torvalds Cc: Andrew Morton Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/5265059502000078000FC4F6@nat28.tlf.novell.com Signed-off-by: Ingo Molnar Cc: Arjan van de Ven --- Reading git-diff-tree failed