Commit 619340ca authored by Anton Blanchard's avatar Anton Blanchard

ppc64: mask top 4 bytes of si_code

parent bed76b96
...@@ -455,7 +455,7 @@ handle_signal(unsigned long sig, siginfo_t *info, sigset_t *oldset, ...@@ -455,7 +455,7 @@ handle_signal(unsigned long sig, siginfo_t *info, sigset_t *oldset,
|| __put_user(&rt_sf->info, &rt_sf->pinfo) || __put_user(&rt_sf->info, &rt_sf->pinfo)
|| __put_user(&rt_sf->uc, &rt_sf->puc) || __put_user(&rt_sf->uc, &rt_sf->puc)
/* Put the siginfo */ /* Put the siginfo */
|| __copy_to_user(&rt_sf->info, info, sizeof(*info)) || copy_siginfo_to_user(&rt_sf->info, info)
/* Create the ucontext */ /* Create the ucontext */
|| __put_user(0, &rt_sf->uc.uc_flags) || __put_user(0, &rt_sf->uc.uc_flags)
|| __put_user(0, &rt_sf->uc.uc_link) || __put_user(0, &rt_sf->uc.uc_link)
......
...@@ -773,7 +773,8 @@ siginfo64to32(siginfo_t32 *d, siginfo_t *s) ...@@ -773,7 +773,8 @@ siginfo64to32(siginfo_t32 *d, siginfo_t *s)
memset (d, 0, sizeof(siginfo_t32)); memset (d, 0, sizeof(siginfo_t32));
d->si_signo = s->si_signo; d->si_signo = s->si_signo;
d->si_errno = s->si_errno; d->si_errno = s->si_errno;
d->si_code = s->si_code; /* XXX why dont we just implement copy_siginfo_to_user32? - Anton */
d->si_code = s->si_code & 0xffff;
if (s->si_signo >= SIGRTMIN) { if (s->si_signo >= SIGRTMIN) {
d->si_pid = s->si_pid; d->si_pid = s->si_pid;
d->si_uid = s->si_uid; d->si_uid = s->si_uid;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment