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


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