This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/11842] compat_siginfo_from_siginfo and siginfo_from_compat_siginfo are wrong
- From: "pedro at codesourcery dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 6 Aug 2010 13:31:27 -0000
- Subject: [Bug gdb/11842] compat_siginfo_from_siginfo and siginfo_from_compat_siginfo are wrong
- References: <20100726093712.11842.jan.kratochvil@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From pedro at codesourcery dot com 2010-08-06 13:31 -------
Yeah, though in practice si_addr ends up at the same address as si_pid to it is
already copied. Note that that's driver code. Who's to say what random drivers
do? I'm thinking that we only need to be as thorough/good as
arch/x86/ia32/ia32_signal.c:{copy_siginfo_to_user32,copy_siginfo_from_user32},
and that also has a catch-all si_code < 0 branch.
(I see that in our version, the "to->si_code == SI_TIMER" branch is
unreacheable, as SI_TIMER is < 0. whoops.)
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11842
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.