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)
commita3c195144e162097c42e4284323ed6d386de105d
treebeae07ac4a12e2bee76f3160a8f4b5725f8a00ad
parent7caf62de25554da3af00c92c11afa95dcc3592c4
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