public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/9813] pselect implementation (when not implemneted by the kernel) agriviates the race
       [not found] <bug-9813-131@http.sourceware.org/bugzilla/>
@ 2012-02-19 22:07 ` mtk.manpages at gmail dot com
  2012-12-19 10:43 ` schwab@linux-m68k.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 10+ messages in thread
From: mtk.manpages at gmail dot com @ 2012-02-19 22:07 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=9813

Michael Kerrisk <mtk.manpages at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mtk.manpages at gmail dot
                   |                            |com

--- Comment #4 from Michael Kerrisk <mtk.manpages at gmail dot com> 2012-02-19 22:06:49 UTC ---
Shachar, I suspect that it's not worth trying to make the fix you suggest. The
fix will only appear in modern glibc, and any modern system will have a
kernel-supported. The fundamental problem can't be remedied: the idea to add a
userspace implementation of pselect() was extremely muddleheaded, and worsens
portability problems for applications. The portability question goes from being
"do I have pselect() or not?" to "do I have a pselect() or not, and if I do, is
it one that works?"; the last part of the second question can only be verified
with a check of the kernel (and glibc) versions.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- 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/9813] pselect implementation (when not implemneted by the kernel) agriviates the race
       [not found] <bug-9813-131@http.sourceware.org/bugzilla/>
  2012-02-19 22:07 ` [Bug libc/9813] pselect implementation (when not implemneted by the kernel) agriviates the race mtk.manpages at gmail dot com
@ 2012-12-19 10:43 ` schwab@linux-m68k.org
  2013-10-13  8:28 ` neleai at seznam dot cz
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 10+ messages in thread
From: schwab@linux-m68k.org @ 2012-12-19 10:43 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=9813

Andreas Schwab <schwab@linux-m68k.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|drepper.fsp at gmail dot    |unassigned at sourceware
                   |com                         |dot org

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- 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/9813] pselect implementation (when not implemneted by the kernel) agriviates the race
       [not found] <bug-9813-131@http.sourceware.org/bugzilla/>
  2012-02-19 22:07 ` [Bug libc/9813] pselect implementation (when not implemneted by the kernel) agriviates the race mtk.manpages at gmail dot com
  2012-12-19 10:43 ` schwab@linux-m68k.org
@ 2013-10-13  8:28 ` neleai at seznam dot cz
  2013-10-14 14:24 ` jsm28 at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 10+ messages in thread
From: neleai at seznam dot cz @ 2013-10-13  8:28 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=9813

Ondrej Bilka <neleai at seznam dot cz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |neleai at seznam dot cz
         Resolution|---                         |FIXED

--- Comment #5 from Ondrej Bilka <neleai at seznam dot cz> ---
As according to http://lwn.net/Articles/176911/ pselect apperared at 2.6.16 and
required kernel version is 2.6.16 this patch is moot now.

-- 
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/9813] pselect implementation (when not implemneted by the kernel) agriviates the race
       [not found] <bug-9813-131@http.sourceware.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2013-10-13  8:28 ` neleai at seznam dot cz
@ 2013-10-14 14:24 ` jsm28 at gcc dot gnu.org
  2013-10-14 14:39   ` Ondřej Bílka
  2013-10-14 14:39 ` neleai at seznam dot cz
  2014-07-01 20:59 ` fweimer at redhat dot com
  5 siblings, 1 reply; 10+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2013-10-14 14:24 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=9813

Joseph Myers <jsm28 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--- Comment #6 from Joseph Myers <jsm28 at gcc dot gnu.org> ---
On various architectures, pselect was only added in later kernel versions. 
Please carefully check *all* kernel-features.h files in glibc, or kernel
sources of appropriate versions for *all* architectures, before making
assertions about syscall availability.  News sources likely to focus mainly on
x86 are not sufficient.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Bug libc/9813] pselect implementation (when not implemneted by the kernel) agriviates the race
  2013-10-14 14:24 ` jsm28 at gcc dot gnu.org
@ 2013-10-14 14:39   ` Ondřej Bílka
  0 siblings, 0 replies; 10+ messages in thread
From: Ondřej Bílka @ 2013-10-14 14:39 UTC (permalink / raw)
  To: jsm28 at gcc dot gnu.org; +Cc: glibc-bugs

On Mon, Oct 14, 2013 at 02:24:37PM +0000, jsm28 at gcc dot gnu.org wrote:
> https://sourceware.org/bugzilla/show_bug.cgi?id=9813
> 
> Joseph Myers <jsm28 at gcc dot gnu.org> changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>              Status|RESOLVED                    |REOPENED
>          Resolution|FIXED                       |---
> 
> --- Comment #6 from Joseph Myers <jsm28 at gcc dot gnu.org> ---
> On various architectures, pselect was only added in later kernel versions. 
> Please carefully check *all* kernel-features.h files in glibc, or kernel
> sources of appropriate versions for *all* architectures, before making
> assertions about syscall availability.  News sources likely to focus mainly on
> x86 are not sufficient.
 
Then patch in bugzilla is still valid. Could you review it and send to
libc-alpha?


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug libc/9813] pselect implementation (when not implemneted by the kernel) agriviates the race
       [not found] <bug-9813-131@http.sourceware.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2013-10-14 14:24 ` jsm28 at gcc dot gnu.org
@ 2013-10-14 14:39 ` neleai at seznam dot cz
  2014-07-01 20:59 ` fweimer at redhat dot com
  5 siblings, 0 replies; 10+ messages in thread
From: neleai at seznam dot cz @ 2013-10-14 14:39 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=9813

--- Comment #7 from Ondrej Bilka <neleai at seznam dot cz> ---
On Mon, Oct 14, 2013 at 02:24:37PM +0000, jsm28 at gcc dot gnu.org wrote:
> https://sourceware.org/bugzilla/show_bug.cgi?id=9813
> 
> Joseph Myers <jsm28 at gcc dot gnu.org> changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>              Status|RESOLVED                    |REOPENED
>          Resolution|FIXED                       |---
> 
> --- Comment #6 from Joseph Myers <jsm28 at gcc dot gnu.org> ---
> On various architectures, pselect was only added in later kernel versions. 
> Please carefully check *all* kernel-features.h files in glibc, or kernel
> sources of appropriate versions for *all* architectures, before making
> assertions about syscall availability.  News sources likely to focus mainly on
> x86 are not sufficient.

Then patch in bugzilla is still valid. Could you review it and send to
libc-alpha?

-- 
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/9813] pselect implementation (when not implemneted by the kernel) agriviates the race
       [not found] <bug-9813-131@http.sourceware.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2013-10-14 14:39 ` neleai at seznam dot cz
@ 2014-07-01 20:59 ` fweimer at redhat dot com
  5 siblings, 0 replies; 10+ messages in thread
From: fweimer at redhat dot com @ 2014-07-01 20:59 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=9813

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-

-- 
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/9813] pselect implementation (when not implemneted by the kernel) agriviates the race
  2009-02-04 10:05 [Bug libc/9813] New: " shachar at shemesh dot biz
  2009-02-04 10:36 ` [Bug libc/9813] " shachar at shemesh dot biz
  2009-02-04 10:42 ` shachar at shemesh dot biz
@ 2009-02-04 10:52 ` shachar at shemesh dot biz
  2 siblings, 0 replies; 10+ messages in thread
From: shachar at shemesh dot biz @ 2009-02-04 10:52 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From shachar at shemesh dot biz  2009-02-04 10:52 -------
Created an attachment (id=3712)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=3712&action=view)
Program demonstrating the problem

This program demonstrate the problem. Under a kernel with pselect support, it
prints:
sig_happened=1
sig_happened=1
sig_happened=1
sig_happened=1
sig_happened=1

And exits almost immediately.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=9813

------- 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/9813] pselect implementation (when not implemneted by the kernel) agriviates the race
  2009-02-04 10:05 [Bug libc/9813] New: " shachar at shemesh dot biz
  2009-02-04 10:36 ` [Bug libc/9813] " shachar at shemesh dot biz
@ 2009-02-04 10:42 ` shachar at shemesh dot biz
  2009-02-04 10:52 ` shachar at shemesh dot biz
  2 siblings, 0 replies; 10+ messages in thread
From: shachar at shemesh dot biz @ 2009-02-04 10:42 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From shachar at shemesh dot biz  2009-02-04 10:42 -------
Forgot to add - in the above patch, NSIG_LONGS is undefined. Here is its definition:

// Number of __vals in sigset_t that actually contain useful data
#define NSIG_LONGS (_NSIG/(8*sizeof(((sigset_t *)NULL)->__val[0])))

Shachar

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=9813

------- 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/9813] pselect implementation (when not implemneted by the kernel) agriviates the race
  2009-02-04 10:05 [Bug libc/9813] New: " shachar at shemesh dot biz
@ 2009-02-04 10:36 ` shachar at shemesh dot biz
  2009-02-04 10:42 ` shachar at shemesh dot biz
  2009-02-04 10:52 ` shachar at shemesh dot biz
  2 siblings, 0 replies; 10+ messages in thread
From: shachar at shemesh dot biz @ 2009-02-04 10:36 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From shachar at shemesh dot biz  2009-02-04 10:36 -------
Created an attachment (id=3710)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=3710&action=view)
Proposed patch to narrow the race window

Proposed patch to the problem

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=9813

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

end of thread, other threads:[~2014-07-01 20:59 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-9813-131@http.sourceware.org/bugzilla/>
2012-02-19 22:07 ` [Bug libc/9813] pselect implementation (when not implemneted by the kernel) agriviates the race mtk.manpages at gmail dot com
2012-12-19 10:43 ` schwab@linux-m68k.org
2013-10-13  8:28 ` neleai at seznam dot cz
2013-10-14 14:24 ` jsm28 at gcc dot gnu.org
2013-10-14 14:39   ` Ondřej Bílka
2013-10-14 14:39 ` neleai at seznam dot cz
2014-07-01 20:59 ` fweimer at redhat dot com
2009-02-04 10:05 [Bug libc/9813] New: " shachar at shemesh dot biz
2009-02-04 10:36 ` [Bug libc/9813] " shachar at shemesh dot biz
2009-02-04 10:42 ` shachar at shemesh dot biz
2009-02-04 10:52 ` shachar at shemesh dot biz

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