From: Stuart MENEFY Date: Fri, 10 Oct 2008 18:49:30 +0000 (+0100) Subject: sh: __copy_user function can corrupt the stack in case of exception X-Git-Tag: v2.6.28-rc5~3^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d52013cbb3d39bde9f5a6023193058eeb112e98;p=pandora-kernel.git sh: __copy_user function can corrupt the stack in case of exception The __copy_user function can corrupt the stack in the case of a non-trivial length of data, and either of the first two move instructions cause an exception. This is because the fixup for these two instructions is mapped to the no_pop case, but these instructions execute after the stack is pushed. This change creates an explicit NO_POP exception mapping macro, and uses it for the two instructions executed in the trivial case where no stack pushes occur. More information at ST Linux bugzilla: https://bugzilla.stlinux.com/show_bug.cgi?id=4824 Signed-off-by: Dylan Reid Signed-off-by: Stuart Menefy Signed-off-by: Paul Mundt --- Reading git-diff-tree failed