public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/25657] New: sigprocmask() and sigisemptyset() manipulate different amount of sigset_t bytes
@ 2020-03-11 19:22 gzachos.cse at gmail dot com
  2020-03-11 19:23 ` [Bug libc/25657] " gzachos.cse at gmail dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: gzachos.cse at gmail dot com @ 2020-03-11 19:22 UTC (permalink / raw)
  To: glibc-bugs

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

            Bug ID: 25657
           Summary: sigprocmask() and sigisemptyset() manipulate different
                    amount of sigset_t bytes
           Product: glibc
           Version: 2.27
            Status: UNCONFIRMED
          Keywords: glibc_2.27, glibc_2.31
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: gzachos.cse at gmail dot com
                CC: adhemerval.zanella at linaro dot org, drepper.fsp at gmail dot com
  Target Milestone: ---

Size of sigset_t is 128 bytes (array of _SIGSET_NWORDS unsigned long ints).
Functions sigemptyset(), sigfillset() and sigismember() access all the 128
bytes of sigset_t, but using sigprocmask to store the current value of the
signal mask in a sigset_t variable, results in writing only the first 64 bits
[= sizeof(unsigned long int)]. Consequently, the result of function
sigisemptyset() depends on the contents of the remaining (_SIGSET_NWORDS - 1)
unsigned long ints.

In addition, pthread_sigmask() is also affected, as it is implemented in the
same way as sigprocmask().

In the following URL you can find more details about how to reproduce, actual
results, system details (including glibc version) etc.:
https://unix.stackexchange.com/questions/572172/is-sigprocmask-not-working-correctly

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

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

* [Bug libc/25657] sigprocmask() and sigisemptyset() manipulate different amount of sigset_t bytes
  2020-03-11 19:22 [Bug libc/25657] New: sigprocmask() and sigisemptyset() manipulate different amount of sigset_t bytes gzachos.cse at gmail dot com
@ 2020-03-11 19:23 ` gzachos.cse at gmail dot com
  2020-03-11 21:38 ` adhemerval.zanella at linaro dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: gzachos.cse at gmail dot com @ 2020-03-11 19:23 UTC (permalink / raw)
  To: glibc-bugs

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

George Zachos <gzachos.cse at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gzachos.cse at gmail dot com

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

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

* [Bug libc/25657] sigprocmask() and sigisemptyset() manipulate different amount of sigset_t bytes
  2020-03-11 19:22 [Bug libc/25657] New: sigprocmask() and sigisemptyset() manipulate different amount of sigset_t bytes gzachos.cse at gmail dot com
  2020-03-11 19:23 ` [Bug libc/25657] " gzachos.cse at gmail dot com
@ 2020-03-11 21:38 ` adhemerval.zanella at linaro dot org
  2020-04-21 12:06 ` fw at deneb dot enyo.de
  2020-04-21 18:12 ` adhemerval.zanella at linaro dot org
  3 siblings, 0 replies; 5+ messages in thread
From: adhemerval.zanella at linaro dot org @ 2020-03-11 21:38 UTC (permalink / raw)
  To: glibc-bugs

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

Adhemerval Zanella <adhemerval.zanella at linaro dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at sourceware dot org   |adhemerval.zanella at linaro dot o
                   |                            |rg

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

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

* [Bug libc/25657] sigprocmask() and sigisemptyset() manipulate different amount of sigset_t bytes
  2020-03-11 19:22 [Bug libc/25657] New: sigprocmask() and sigisemptyset() manipulate different amount of sigset_t bytes gzachos.cse at gmail dot com
  2020-03-11 19:23 ` [Bug libc/25657] " gzachos.cse at gmail dot com
  2020-03-11 21:38 ` adhemerval.zanella at linaro dot org
@ 2020-04-21 12:06 ` fw at deneb dot enyo.de
  2020-04-21 18:12 ` adhemerval.zanella at linaro dot org
  3 siblings, 0 replies; 5+ messages in thread
From: fw at deneb dot enyo.de @ 2020-04-21 12:06 UTC (permalink / raw)
  To: glibc-bugs

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

Florian Weimer <fw at deneb dot enyo.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-
                 CC|                            |fw at deneb dot enyo.de

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

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

* [Bug libc/25657] sigprocmask() and sigisemptyset() manipulate different amount of sigset_t bytes
  2020-03-11 19:22 [Bug libc/25657] New: sigprocmask() and sigisemptyset() manipulate different amount of sigset_t bytes gzachos.cse at gmail dot com
                   ` (2 preceding siblings ...)
  2020-04-21 12:06 ` fw at deneb dot enyo.de
@ 2020-04-21 18:12 ` adhemerval.zanella at linaro dot org
  3 siblings, 0 replies; 5+ messages in thread
From: adhemerval.zanella at linaro dot org @ 2020-04-21 18:12 UTC (permalink / raw)
  To: glibc-bugs

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

Adhemerval Zanella <adhemerval.zanella at linaro dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |2.32
         Resolution|---                         |FIXED
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from Adhemerval Zanella <adhemerval.zanella at linaro dot org> ---
Fixed on 2.32 (566e10aa7292bacd74d229ca6f2cd9e8c8ba8748).

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

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

end of thread, other threads:[~2020-04-21 18:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-11 19:22 [Bug libc/25657] New: sigprocmask() and sigisemptyset() manipulate different amount of sigset_t bytes gzachos.cse at gmail dot com
2020-03-11 19:23 ` [Bug libc/25657] " gzachos.cse at gmail dot com
2020-03-11 21:38 ` adhemerval.zanella at linaro dot org
2020-04-21 12:06 ` fw at deneb dot enyo.de
2020-04-21 18:12 ` adhemerval.zanella at linaro dot org

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