]> git.karo-electronics.de Git - karo-tx-linux.git/commit
x86: Clear DF before calling signal handler
authorAurelien Jarno <aurelien@aurel32.net>
Sat, 8 Mar 2008 10:43:52 +0000 (11:43 +0100)
committerChris Wright <chrisw@sous-sol.org>
Mon, 24 Mar 2008 18:47:10 +0000 (11:47 -0700)
commitcc7571b226c93b032164ebb3ff3b365651c4652f
treef063eaded5a9544fd60d0b0e4a62d8f0e76c1ccf
parentb83b97b0e5185e2c9c80824e2dd880419c200c09
x86: Clear DF before calling signal handler

x86: Clear DF before calling signal handler

The Linux kernel currently does not clear the direction flag before
calling a signal handler, whereas the x86/x86-64 ABI requires that.
This become a real problem with gcc version 4.3, which assumes that
the direction flag is correctly cleared at the entry of a function.

This patches changes the setup_frame() functions to clear the
direction before entering the signal handler.

This is a backport of patch e40cd10ccff3d9fbffd57b93780bee4b7b9bff51
("x86: clear DF before calling signal handler") that has been applied
in 2.6.25-rc.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/ia32/ia32_signal.c
arch/x86/kernel/signal_32.c
arch/x86/kernel/signal_64.c