[Bug network/22927] New: crash in vn_gai_enqueue_request if requests_tail was NULL and pthread_create fails.

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

[Bug network/22927] New: crash in vn_gai_enqueue_request if requests_tail was NULL and pthread_create fails.

cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=22927

            Bug ID: 22927
           Summary: crash in vn_gai_enqueue_request if requests_tail was
                    NULL and pthread_create fails.
           Product: glibc
           Version: 2.29
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: network
          Assignee: unassigned at sourceware dot org
          Reporter: florin.popescu at gmail dot com
  Target Milestone: ---

At line 237 in gai_misc.c:

lastp = requests_tail;
if (requests_tail == NULL)
  requests = requests_tail = newp;
else ...

If requests_tail was NULL then lastp remains NULL.
Unfortunately if gai_create_helper_thread fails, lastp is de-referenced at line
267 which will cause a SIGSEGV.

Thank you,

Florin Popescu

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug network/22927] crash in vn_gai_enqueue_request if requests_tail was NULL and pthread_create fails.

cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=22927

Andreas Schwab <[hidden email]> changed:

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

--- Comment #2 from Andreas Schwab <[hidden email]> ---
Fixed in 2.29.

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug network/22927] crash in vn_gai_enqueue_request if requests_tail was NULL and pthread_create fails.

cvs-commit at gcc dot gnu.org
In reply to this post by cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=22927

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fweimer at redhat dot com
           See Also|                            |https://bugzilla.redhat.com
                   |                            |/show_bug.cgi?id=1646373

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug network/22927] crash in vn_gai_enqueue_request if requests_tail was NULL and pthread_create fails.

cvs-commit at gcc dot gnu.org
In reply to this post by cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=22927

--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  bd3b0fbae33a9a4cc5e2daf049443d5cf03d4251 (commit)
      from  fc1c7bdc6d61d7571b3a2ed0f718c98170bd9711 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=bd3b0fbae33a9a4cc5e2daf049443d5cf03d4251

commit bd3b0fbae33a9a4cc5e2daf049443d5cf03d4251
Author: Andreas Schwab <[hidden email]>
Date:   Mon Nov 5 12:47:30 2018 +0100

    libanl: properly cleanup if first helper thread creation failed (bug 22927)

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog         |    6 ++++++
 resolv/gai_misc.c |    7 +++++--
 2 files changed, 11 insertions(+), 2 deletions(-)

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug network/22927] crash in vn_gai_enqueue_request if requests_tail was NULL and pthread_create fails.

cvs-commit at gcc dot gnu.org
In reply to this post by cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=22927

--- Comment #3 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, release/2.28/master has been updated
       via  fc0e3393ff775aa795b523083bb0db7f18d3b91e (commit)
      from  65010329f2c596bdd1204c1c9c9baac0193637af (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=fc0e3393ff775aa795b523083bb0db7f18d3b91e

commit fc0e3393ff775aa795b523083bb0db7f18d3b91e
Author: Andreas Schwab <[hidden email]>
Date:   Tue Nov 6 16:12:07 2018 +0100

    libanl: properly cleanup if first helper thread creation failed (bug 22927)

    (cherry picked from commit bd3b0fbae33a9a4cc5e2daf049443d5cf03d4251)

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog         |    6 ++++++
 NEWS              |    1 +
 resolv/gai_misc.c |    7 +++++--
 3 files changed, 12 insertions(+), 2 deletions(-)

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug network/22927] crash in vn_gai_enqueue_request if requests_tail was NULL and pthread_create fails.

cvs-commit at gcc dot gnu.org
In reply to this post by cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=22927

--- Comment #4 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, release/2.26/master has been updated
       via  fcd86c62538b465eaf002b0ed8981d00e10b649f (commit)
      from  dc40423dba7208ded2ec293c9a2938269f944ee8 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=fcd86c62538b465eaf002b0ed8981d00e10b649f

commit fcd86c62538b465eaf002b0ed8981d00e10b649f
Author: Andreas Schwab <[hidden email]>
Date:   Tue Nov 6 17:12:07 2018 +0100

    libanl: properly cleanup if first helper thread creation failed (bug 22927)

    (cherry picked from commit bd3b0fbae33a9a4cc5e2daf049443d5cf03d4251)

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog         |    6 ++++++
 NEWS              |    1 +
 resolv/gai_misc.c |    7 +++++--
 3 files changed, 12 insertions(+), 2 deletions(-)

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug network/22927] crash in vn_gai_enqueue_request if requests_tail was NULL and pthread_create fails.

cvs-commit at gcc dot gnu.org
In reply to this post by cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=22927

--- Comment #5 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, release/2.27/master has been updated
       via  1050634904b77d8563ffb1e7039095155ed466ef (commit)
      from  d8eee5ef553350364eff1dce9d143fb845c60615 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=1050634904b77d8563ffb1e7039095155ed466ef

commit 1050634904b77d8563ffb1e7039095155ed466ef
Author: Andreas Schwab <[hidden email]>
Date:   Tue Nov 6 17:11:25 2018 +0100

    libanl: properly cleanup if first helper thread creation failed (bug 22927)

    (cherry picked from commit bd3b0fbae33a9a4cc5e2daf049443d5cf03d4251)

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog         |    6 ++++++
 NEWS              |    1 +
 resolv/gai_misc.c |    7 +++++--
 3 files changed, 12 insertions(+), 2 deletions(-)

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