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: "jan dot kratochvil at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 6 Aug 2010 12:41:06 -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 jan dot kratochvil at redhat dot com 2010-08-06 12:41 -------
I find the conditional `to->si_code < 0' wrong there.
See for example:
drivers/usb/core/devio.c
sinfo.si_code = SI_ASYNCIO;
sinfo.si_addr = as->userurb;
include/asm-generic/siginfo.h
#define SI_ASYNCIO -4 /* sent by AIO completion */
But you do not convert si_addr here.
Moreover when you start converting more fields you cannot - as they share the
same places in the union.
One has to probably investigate all the kernel points generating siginfo. :-/
--
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.