]> git.baikalelectronics.ru Git - kernel.git/commit
sh: don't pass saved userspace state to exception handlers
authorBobby Bingham <koorogi@koorogi.info>
Thu, 3 Apr 2014 21:46:41 +0000 (14:46 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 3 Apr 2014 23:20:52 +0000 (16:20 -0700)
commit347532555aee31ae95f9adfa65bdfcbbdd8c1c5a
treebeae07ac4a12e2bee76f3160a8f4b5725f8a00ad
parentd38eb811c67d6420be5f9f7f165d36ea81722949
sh: don't pass saved userspace state to exception handlers

The compiler is permitted to generate code which overwrites the
parameters to a function.  If those parameters include the only saved
copy we have of userspace's registers, we're in trouble.

Signed-off-by: Bobby Bingham <koorogi@koorogi.info>
Cc: Paul Mundt <paul.mundt@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/sh/include/asm/traps_32.h
arch/sh/kernel/traps_32.c