aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/ia32/ia32_signal.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/ia32/ia32_signal.c')
-rw-r--r--arch/x86/ia32/ia32_signal.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/arch/x86/ia32/ia32_signal.c b/arch/x86/ia32/ia32_signal.c
index 25d80f3faf2e..bc09ed2a8b97 100644
--- a/arch/x86/ia32/ia32_signal.c
+++ b/arch/x86/ia32/ia32_signal.c
@@ -37,6 +37,7 @@
37int copy_siginfo_to_user32(compat_siginfo_t __user *to, siginfo_t *from) 37int copy_siginfo_to_user32(compat_siginfo_t __user *to, siginfo_t *from)
38{ 38{
39 int err = 0; 39 int err = 0;
40 bool ia32 = !is_ia32_task();
40 41
41 if (!access_ok(VERIFY_WRITE, to, sizeof(compat_siginfo_t))) 42 if (!access_ok(VERIFY_WRITE, to, sizeof(compat_siginfo_t)))
42 return -EFAULT; 43 return -EFAULT;
@@ -66,8 +67,13 @@ int copy_siginfo_to_user32(compat_siginfo_t __user *to, siginfo_t *from)
66 case __SI_FAULT >> 16: 67 case __SI_FAULT >> 16:
67 break; 68 break;
68 case __SI_CHLD >> 16: 69 case __SI_CHLD >> 16:
69 put_user_ex(from->si_utime, &to->si_utime); 70 if (ia32) {
70 put_user_ex(from->si_stime, &to->si_stime); 71 put_user_ex(from->si_utime, &to->si_utime);
72 put_user_ex(from->si_stime, &to->si_stime);
73 } else {
74 put_user_ex(from->si_utime, &to->_sifields._sigchld_x32._utime);
75 put_user_ex(from->si_stime, &to->_sifields._sigchld_x32._stime);
76 }
71 put_user_ex(from->si_status, &to->si_status); 77 put_user_ex(from->si_status, &to->si_status);
72 /* FALL THROUGH */ 78 /* FALL THROUGH */
73 default: 79 default: