[Bug libc/25657] New: sigprocmask() and sigisemptyset() manipulate different amount of sigset_t bytes

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug libc/25657] New: sigprocmask() and sigisemptyset() manipulate different amount of sigset_t bytes

glaubitz at physik dot fu-berlin.de
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.
Reply | Threaded
Open this post in threaded view
|

[Bug libc/25657] sigprocmask() and sigisemptyset() manipulate different amount of sigset_t bytes

glaubitz at physik dot fu-berlin.de
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.
Reply | Threaded
Open this post in threaded view
|

[Bug libc/25657] sigprocmask() and sigisemptyset() manipulate different amount of sigset_t bytes

glaubitz at physik dot fu-berlin.de
In reply to this post by glaubitz at physik dot fu-berlin.de
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.
Reply | Threaded
Open this post in threaded view
|

[Bug libc/25657] sigprocmask() and sigisemptyset() manipulate different amount of sigset_t bytes

Sourceware - glibc-bugs mailing list
In reply to this post by glaubitz at physik dot fu-berlin.de
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.
Reply | Threaded
Open this post in threaded view
|

[Bug libc/25657] sigprocmask() and sigisemptyset() manipulate different amount of sigset_t bytes

Sourceware - glibc-bugs mailing list
In reply to this post by glaubitz at physik dot fu-berlin.de
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.