This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/11842] compat_siginfo_from_siginfo and siginfo_from_compat_siginfo are wrong


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]