public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug nptl/28407] New: pthread_kill assumes that kill (getpid ()) is equivalent to tgkill (getpid (), gettid())
@ 2021-10-01 12:56 fweimer at redhat dot com
2021-10-01 12:57 ` [Bug nptl/28407] " fweimer at redhat dot com
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: fweimer at redhat dot com @ 2021-10-01 12:56 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=28407
Bug ID: 28407
Summary: pthread_kill assumes that kill (getpid ()) is
equivalent to tgkill (getpid (), gettid())
Product: glibc
Version: 2.34
Status: NEW
Severity: normal
Priority: P2
Component: nptl
Assignee: unassigned at sourceware dot org
Reporter: fweimer at redhat dot com
CC: drepper.fsp at gmail dot com
Target Milestone: ---
kill sends the signal to the process, tgkill sends it to the current thread. It
does more than merely avoiding the TID reuse raise.
--
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 nptl/28407] pthread_kill assumes that kill (getpid ()) is equivalent to tgkill (getpid (), gettid())
2021-10-01 12:56 [Bug nptl/28407] New: pthread_kill assumes that kill (getpid ()) is equivalent to tgkill (getpid (), gettid()) fweimer at redhat dot com
@ 2021-10-01 12:57 ` fweimer at redhat dot com
2021-10-01 13:18 ` mhofmann at redhat dot com
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: fweimer at redhat dot com @ 2021-10-01 12:57 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=28407
Florian Weimer <fweimer at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at sourceware dot org |fweimer at redhat dot com
Status|NEW |ASSIGNED
CC| |fweimer at redhat dot com
Flags| |security-
--
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 nptl/28407] pthread_kill assumes that kill (getpid ()) is equivalent to tgkill (getpid (), gettid())
2021-10-01 12:56 [Bug nptl/28407] New: pthread_kill assumes that kill (getpid ()) is equivalent to tgkill (getpid (), gettid()) fweimer at redhat dot com
2021-10-01 12:57 ` [Bug nptl/28407] " fweimer at redhat dot com
@ 2021-10-01 13:18 ` mhofmann at redhat dot com
2021-10-01 14:14 ` fweimer at redhat dot com
2021-10-21 13:30 ` fweimer at redhat dot com
3 siblings, 0 replies; 5+ messages in thread
From: mhofmann at redhat dot com @ 2021-10-01 13:18 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=28407
Michael Hofmann <mhofmann at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mhofmann at redhat 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 nptl/28407] pthread_kill assumes that kill (getpid ()) is equivalent to tgkill (getpid (), gettid())
2021-10-01 12:56 [Bug nptl/28407] New: pthread_kill assumes that kill (getpid ()) is equivalent to tgkill (getpid (), gettid()) fweimer at redhat dot com
2021-10-01 12:57 ` [Bug nptl/28407] " fweimer at redhat dot com
2021-10-01 13:18 ` mhofmann at redhat dot com
@ 2021-10-01 14:14 ` fweimer at redhat dot com
2021-10-21 13:30 ` fweimer at redhat dot com
3 siblings, 0 replies; 5+ messages in thread
From: fweimer at redhat dot com @ 2021-10-01 14:14 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=28407
--- Comment #1 from Florian Weimer <fweimer at redhat dot com> ---
Patch posted:
https://sourceware.org/pipermail/libc-alpha/2021-October/131610.html
--
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 nptl/28407] pthread_kill assumes that kill (getpid ()) is equivalent to tgkill (getpid (), gettid())
2021-10-01 12:56 [Bug nptl/28407] New: pthread_kill assumes that kill (getpid ()) is equivalent to tgkill (getpid (), gettid()) fweimer at redhat dot com
` (2 preceding siblings ...)
2021-10-01 14:14 ` fweimer at redhat dot com
@ 2021-10-21 13:30 ` fweimer at redhat dot com
3 siblings, 0 replies; 5+ messages in thread
From: fweimer at redhat dot com @ 2021-10-21 13:30 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=28407
Florian Weimer <fweimer at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |2.35
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from Florian Weimer <fweimer at redhat dot com> ---
Fixed for glibc 2.35 via:
commit eae81d70574e923ce3c59078b8df857ae192efa6
Author: Florian Weimer <fweimer@redhat.com>
Date: Fri Oct 1 18:16:41 2021 +0200
nptl: pthread_kill must send signals to a specific thread [BZ #28407]
The choice between the kill vs tgkill system calls is not just about
the TID reuse race, but also about whether the signal is sent to the
whole process (and any thread in it) or to a specific thread.
This was caught by the openposix test suite:
LTP: openposix test suite - FAIL: SIGUSR1 is member of new thread
pendingset.
<https://gitlab.com/cki-project/kernel-tests/-/issues/764>
Fixes commit 526c3cf11ee9367344b6b15d669e4c3cb461a2be ("nptl: Fix race
between pthread_kill and thread exit (bug 12889)").
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@redhat.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
end of thread, other threads:[~2021-10-21 13:30 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-01 12:56 [Bug nptl/28407] New: pthread_kill assumes that kill (getpid ()) is equivalent to tgkill (getpid (), gettid()) fweimer at redhat dot com
2021-10-01 12:57 ` [Bug nptl/28407] " fweimer at redhat dot com
2021-10-01 13:18 ` mhofmann at redhat dot com
2021-10-01 14:14 ` fweimer at redhat dot com
2021-10-21 13:30 ` fweimer at redhat dot com
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).