public inbox for glibc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug libc/1780] New: size of sigset_t in ucontext_t structure does not match linux kernel @ 2005-11-01 22:28 naveen dot neelakantam at intel dot com 2005-11-01 22:29 ` [Bug libc/1780] " naveen dot neelakantam at intel dot com ` (3 more replies) 0 siblings, 4 replies; 10+ messages in thread From: naveen dot neelakantam at intel dot com @ 2005-11-01 22:28 UTC (permalink / raw) To: glibc-bugs The size of sigset_t in the ucontext_t structure as defined in the linux kernel (I am using version 2.4.21-32.EL) does not match the size of the sigset_t in the ucontext_t structure defined in the glibc header files. The problem shows up in any user-level signal handler that cares to check. I've attached a simple testcase that demonstrates an implication of the problem. The kernel, by default, has the correct view. Thus, I am reporting the bug here. Credit goes to Gregory Lueck for finding the bug. Thanks, Naveen Neelakantam -- Summary: size of sigset_t in ucontext_t structure does not match linux kernel Product: glibc Version: unspecified Status: NEW Severity: normal Priority: P2 Component: libc AssignedTo: drepper at redhat dot com ReportedBy: naveen dot neelakantam at intel dot com CC: glibc-bugs at sources dot redhat dot com http://sourceware.org/bugzilla/show_bug.cgi?id=1780 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libc/1780] size of sigset_t in ucontext_t structure does not match linux kernel 2005-11-01 22:28 [Bug libc/1780] New: size of sigset_t in ucontext_t structure does not match linux kernel naveen dot neelakantam at intel dot com @ 2005-11-01 22:29 ` naveen dot neelakantam at intel dot com 2005-11-01 23:10 ` naveen dot neelakantam at intel dot com ` (2 subsequent siblings) 3 siblings, 0 replies; 10+ messages in thread From: naveen dot neelakantam at intel dot com @ 2005-11-01 22:29 UTC (permalink / raw) To: glibc-bugs ------- Additional Comments From naveen dot neelakantam at intel dot com 2005-11-01 22:29 ------- Created an attachment (id=736) --> (http://sourceware.org/bugzilla/attachment.cgi?id=736&action=view) Demonstrates symptom of sigset_t size bug -- http://sourceware.org/bugzilla/show_bug.cgi?id=1780 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libc/1780] size of sigset_t in ucontext_t structure does not match linux kernel 2005-11-01 22:28 [Bug libc/1780] New: size of sigset_t in ucontext_t structure does not match linux kernel naveen dot neelakantam at intel dot com 2005-11-01 22:29 ` [Bug libc/1780] " naveen dot neelakantam at intel dot com @ 2005-11-01 23:10 ` naveen dot neelakantam at intel dot com 2005-11-07 19:15 ` decimal at us dot ibm dot com 2005-12-16 22:29 ` decimal at us dot ibm dot com 3 siblings, 0 replies; 10+ messages in thread From: naveen dot neelakantam at intel dot com @ 2005-11-01 23:10 UTC (permalink / raw) To: glibc-bugs ------- Additional Comments From naveen dot neelakantam at intel dot com 2005-11-01 23:10 ------- Oh yeah, that's on i386 -- http://sourceware.org/bugzilla/show_bug.cgi?id=1780 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libc/1780] size of sigset_t in ucontext_t structure does not match linux kernel 2005-11-01 22:28 [Bug libc/1780] New: size of sigset_t in ucontext_t structure does not match linux kernel naveen dot neelakantam at intel dot com 2005-11-01 22:29 ` [Bug libc/1780] " naveen dot neelakantam at intel dot com 2005-11-01 23:10 ` naveen dot neelakantam at intel dot com @ 2005-11-07 19:15 ` decimal at us dot ibm dot com 2005-12-16 22:29 ` decimal at us dot ibm dot com 3 siblings, 0 replies; 10+ messages in thread From: decimal at us dot ibm dot com @ 2005-11-07 19:15 UTC (permalink / raw) To: glibc-bugs ------- Additional Comments From decimal at us dot ibm dot com 2005-11-07 19:15 ------- Looking... -- http://sourceware.org/bugzilla/show_bug.cgi?id=1780 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libc/1780] size of sigset_t in ucontext_t structure does not match linux kernel 2005-11-01 22:28 [Bug libc/1780] New: size of sigset_t in ucontext_t structure does not match linux kernel naveen dot neelakantam at intel dot com ` (2 preceding siblings ...) 2005-11-07 19:15 ` decimal at us dot ibm dot com @ 2005-12-16 22:29 ` decimal at us dot ibm dot com 3 siblings, 0 replies; 10+ messages in thread From: decimal at us dot ibm dot com @ 2005-12-16 22:29 UTC (permalink / raw) To: glibc-bugs ------- Additional Comments From decimal at us dot ibm dot com 2005-12-16 22:29 ------- I confirmed it on FC4. So what is the value supposed to be? Is &__fpregs_mem supposed to be the same as uc_mcontext.fpregs? (Been a while since I looked at an x86 problem.) If this is a size mismatch bewteen the kernel and glibc should glibc be responsible for reshaping the data? I guess I would have expected that responsibility to belong to the kernel. -- http://sourceware.org/bugzilla/show_bug.cgi?id=1780 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <20051101222806.1780.neelakan@uiuc.edu>]
* [Bug libc/1780] size of sigset_t in ucontext_t structure does not match linux kernel [not found] <20051101222806.1780.neelakan@uiuc.edu> @ 2005-12-22 20:20 ` neelakan at uiuc dot edu 2006-02-10 20:21 ` decimal at us dot ibm dot com 1 sibling, 0 replies; 10+ messages in thread From: neelakan at uiuc dot edu @ 2005-12-22 20:20 UTC (permalink / raw) To: glibc-bugs ------- Additional Comments From neelakan at uiuc dot edu 2005-12-22 20:20 ------- The kernel sets the value of uc_mcontext.fpregs to the correct address of the __fpregs_mem structure. A user-level program that checks the address of the __fpregs_mem structure should get the same value as contained in uc_mcontext.fpregs. The problem arises because of the way that the glibc header files define the size of the __sigset_t struct in ucontext_t (see /usr/include/sys/ucontext.h). The sigset_t struct should match the definition used by the kernel (which is "unsigned long[2]" if I remember correctly), but is instead defined as "usigned long int[32]" in the glibc header file /usr/include/bits/sigset.h. Does that answer your question? -- http://sourceware.org/bugzilla/show_bug.cgi?id=1780 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libc/1780] size of sigset_t in ucontext_t structure does not match linux kernel [not found] <20051101222806.1780.neelakan@uiuc.edu> 2005-12-22 20:20 ` neelakan at uiuc dot edu @ 2006-02-10 20:21 ` decimal at us dot ibm dot com 1 sibling, 0 replies; 10+ messages in thread From: decimal at us dot ibm dot com @ 2006-02-10 20:21 UTC (permalink / raw) To: glibc-bugs -- What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|drepper at redhat dot com |decimal at us dot ibm dot | |com Status|NEW |ASSIGNED http://sourceware.org/bugzilla/show_bug.cgi?id=1780 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <bug-1780-131@http.sourceware.org/bugzilla/>]
* [Bug libc/1780] size of sigset_t in ucontext_t structure does not match linux kernel [not found] <bug-1780-131@http.sourceware.org/bugzilla/> @ 2013-10-12 17:02 ` neleai at seznam dot cz 2013-10-14 23:06 ` bugdal at aerifal dot cx 2013-10-15 6:13 ` neleai at seznam dot cz 2 siblings, 0 replies; 10+ messages in thread From: neleai at seznam dot cz @ 2013-10-12 17:02 UTC (permalink / raw) To: glibc-bugs https://sourceware.org/bugzilla/show_bug.cgi?id=1780 Ondrej Bilka <neleai at seznam dot cz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEW CC| |neleai at seznam dot cz -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libc/1780] size of sigset_t in ucontext_t structure does not match linux kernel [not found] <bug-1780-131@http.sourceware.org/bugzilla/> 2013-10-12 17:02 ` neleai at seznam dot cz @ 2013-10-14 23:06 ` bugdal at aerifal dot cx 2013-10-15 6:13 ` neleai at seznam dot cz 2 siblings, 0 replies; 10+ messages in thread From: bugdal at aerifal dot cx @ 2013-10-14 23:06 UTC (permalink / raw) To: glibc-bugs https://sourceware.org/bugzilla/show_bug.cgi?id=1780 Rich Felker <bugdal at aerifal dot cx> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bugdal at aerifal dot cx --- Comment #6 from Rich Felker <bugdal at aerifal dot cx> --- I don't think this bug is valid; if it is, it's probably not fixable. The uc_sigmask member is required to have type sigset_t, both by POSIX and in order to be useful, (passing it to functions which take sigset_t pointers must work) so there's no way to change it. -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libc/1780] size of sigset_t in ucontext_t structure does not match linux kernel [not found] <bug-1780-131@http.sourceware.org/bugzilla/> 2013-10-12 17:02 ` neleai at seznam dot cz 2013-10-14 23:06 ` bugdal at aerifal dot cx @ 2013-10-15 6:13 ` neleai at seznam dot cz 2 siblings, 0 replies; 10+ messages in thread From: neleai at seznam dot cz @ 2013-10-15 6:13 UTC (permalink / raw) To: glibc-bugs https://sourceware.org/bugzilla/show_bug.cgi?id=1780 --- Comment #7 from Ondrej Bilka <neleai at seznam dot cz> --- As in other bug using kernel headers in user program is invalid, report that to kernel. -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2013-10-15 6:13 UTC | newest] Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2005-11-01 22:28 [Bug libc/1780] New: size of sigset_t in ucontext_t structure does not match linux kernel naveen dot neelakantam at intel dot com 2005-11-01 22:29 ` [Bug libc/1780] " naveen dot neelakantam at intel dot com 2005-11-01 23:10 ` naveen dot neelakantam at intel dot com 2005-11-07 19:15 ` decimal at us dot ibm dot com 2005-12-16 22:29 ` decimal at us dot ibm dot com [not found] <20051101222806.1780.neelakan@uiuc.edu> 2005-12-22 20:20 ` neelakan at uiuc dot edu 2006-02-10 20:21 ` decimal at us dot ibm dot com [not found] <bug-1780-131@http.sourceware.org/bugzilla/> 2013-10-12 17:02 ` neleai at seznam dot cz 2013-10-14 23:06 ` bugdal at aerifal dot cx 2013-10-15 6:13 ` neleai at seznam dot cz
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).