]> git.ipfire.org Git - people/ms/linux.git/commit
ARC: Fix signal frame management for SA_SIGINFO
authorChristian Ruppert <christian.ruppert@abilis.com>
Wed, 2 Oct 2013 09:13:38 +0000 (11:13 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Oct 2013 17:54:56 +0000 (10:54 -0700)
commita4e42e8bbdc9fb7482dd181c332ae668c15f1750
treeb01125ccad4931a2248ddc130abba480def10075
parent7e0e1ac946d1040f3c31ea5861da9aa5cb6d8b3b
ARC: Fix signal frame management for SA_SIGINFO

commit 10469350e345599dfef3fa78a7c19fb230e674c1 upstream.

Previously, when a signal was registered with SA_SIGINFO, parameters 2
and 3 of the signal handler were written to registers r1 and r2 before
the register set was saved. This led to corruption of these two
registers after returning from the signal handler (the wrong values were
restored).
With this patch, registers are now saved before any parameters are
passed, thus maintaining the processor state from before signal entry.

Signed-off-by: Christian Ruppert <christian.ruppert@abilis.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arc/kernel/signal.c