* Re: ia32 sigwait patch
@ 2004-03-03 23:06 Bjorn Helgaas
2004-03-03 23:28 ` Andi Kleen
0 siblings, 1 reply; 2+ messages in thread
From: Bjorn Helgaas @ 2004-03-03 23:06 UTC (permalink / raw)
To: linux-ia64
On Monday 23 February 2004 11:52 am, you wrote:
> ia32 rt_sigtimewait() fails when some of the arguments are NULL. The
> fix is attached.
Sorry for the delay in responding; I've been out of the office for
a while. I applied the patch (with the addition of a few spaces
in the ternary operator).
It looks to me like current 2.4 on x86_64 suffers from the same
problem with uts (sys_rt_sigtimedwait() gets a pointer to
uninitialized "t" when uts is NULL).
--- linux-2.4.21-4.EL/arch/ia64/ia32/ia32_signal.c.ori 2003-11-17 13:42:01.000000000 +0800
+++ linux-2.4.21-4.EL/arch/ia64/ia32/ia32_signal.c 2003-11-17 13:44:14.000000000 +0800
@@ -614,7 +614,7 @@
return -EFAULT;
}
set_fs(KERNEL_DS);
- ret = sys_rt_sigtimedwait(&s, &info, &t, sigsetsize);
+ ret = sys_rt_sigtimedwait(&s, uinfo? &info :NULL, uts? &t :NULL, sigsetsize);
set_fs(old_fs);
if (ret >= 0 && uinfo) {
if (copy_siginfo_to_user32(uinfo, &info))
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-03-03 23:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-03 23:06 ia32 sigwait patch Bjorn Helgaas
2004-03-03 23:28 ` Andi Kleen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox