public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/11292] New: __init_cpu_features race
@ 2010-02-17 17:29 jan dot kratochvil at redhat dot com
2010-02-17 17:30 ` [Bug libc/11292] " jan dot kratochvil at redhat dot com
` (3 more replies)
0 siblings, 4 replies; 6+ messages in thread
From: jan dot kratochvil at redhat dot com @ 2010-02-17 17:29 UTC (permalink / raw)
To: glibc-bugs
ifunc resolver can be called from multiple threads at once.
./sysdeps/x86_64/multiarch/init-arch.c
struct cpu_features __cpu_features attribute_hidden;
__init_cpu_features:
__cpu_features.family += extended_family;
This is a race, __cpu_features is global and it has no locks being held.
--
Summary: __init_cpu_features race
Product: glibc
Version: unspecified
Status: NEW
Severity: minor
Priority: P3
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: jan dot kratochvil at redhat dot com
CC: glibc-bugs at sources dot redhat dot com
GCC host triplet: x86_64-unknown-linux-gnu
http://sourceware.org/bugzilla/show_bug.cgi?id=11292
------- 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] 6+ messages in thread
* [Bug libc/11292] __init_cpu_features race
2010-02-17 17:29 [Bug libc/11292] New: __init_cpu_features race jan dot kratochvil at redhat dot com
@ 2010-02-17 17:30 ` jan dot kratochvil at redhat dot com
2010-02-17 17:43 ` hjl dot tools at gmail dot com
` (2 subsequent siblings)
3 siblings, 0 replies; 6+ messages in thread
From: jan dot kratochvil at redhat dot com @ 2010-02-17 17:30 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From jan dot kratochvil at redhat dot com 2010-02-17 17:30 -------
Pointed out by Pedro Alves:
http://sourceware.org/ml/gdb-patches/2010-02/msg00420.html
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11292
------- 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] 6+ messages in thread
* [Bug libc/11292] __init_cpu_features race
2010-02-17 17:29 [Bug libc/11292] New: __init_cpu_features race jan dot kratochvil at redhat dot com
2010-02-17 17:30 ` [Bug libc/11292] " jan dot kratochvil at redhat dot com
@ 2010-02-17 17:43 ` hjl dot tools at gmail dot com
2010-02-17 17:54 ` hjl dot tools at gmail dot com
2010-04-04 7:27 ` drepper at redhat dot com
3 siblings, 0 replies; 6+ messages in thread
From: hjl dot tools at gmail dot com @ 2010-02-17 17:43 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From hjl dot tools at gmail dot com 2010-02-17 17:43 -------
We can rearrange __init_cpu_features such that all bits in
__cpu_features are write-only.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |hjl dot tools at gmail dot
| |com
http://sourceware.org/bugzilla/show_bug.cgi?id=11292
------- 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] 6+ messages in thread
* [Bug libc/11292] __init_cpu_features race
2010-02-17 17:29 [Bug libc/11292] New: __init_cpu_features race jan dot kratochvil at redhat dot com
2010-02-17 17:30 ` [Bug libc/11292] " jan dot kratochvil at redhat dot com
2010-02-17 17:43 ` hjl dot tools at gmail dot com
@ 2010-02-17 17:54 ` hjl dot tools at gmail dot com
2010-04-04 7:27 ` drepper at redhat dot com
3 siblings, 0 replies; 6+ messages in thread
From: hjl dot tools at gmail dot com @ 2010-02-17 17:54 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From hjl dot tools at gmail dot com 2010-02-17 17:54 -------
Created an attachment (id=4607)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=4607&action=view)
A patch
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11292
------- 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] 6+ messages in thread
* [Bug libc/11292] __init_cpu_features race
2010-02-17 17:29 [Bug libc/11292] New: __init_cpu_features race jan dot kratochvil at redhat dot com
` (2 preceding siblings ...)
2010-02-17 17:54 ` hjl dot tools at gmail dot com
@ 2010-04-04 7:27 ` drepper at redhat dot com
3 siblings, 0 replies; 6+ messages in thread
From: drepper at redhat dot com @ 2010-04-04 7:27 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From drepper at redhat dot com 2010-04-04 07:26 -------
HJ's patch is OK but incomplete. There is another race. The kind field must
only be changed once the other fields are committed to memory. I made that
change as well.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://sourceware.org/bugzilla/show_bug.cgi?id=11292
------- 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] 6+ messages in thread
* [Bug libc/11292] __init_cpu_features race
[not found] <bug-11292-131@http.sourceware.org/bugzilla/>
@ 2014-06-30 18:47 ` fweimer at redhat dot com
0 siblings, 0 replies; 6+ messages in thread
From: fweimer at redhat dot com @ 2014-06-30 18:47 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=11292
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] 6+ messages in thread
end of thread, other threads:[~2014-06-30 18:47 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-17 17:29 [Bug libc/11292] New: __init_cpu_features race jan dot kratochvil at redhat dot com
2010-02-17 17:30 ` [Bug libc/11292] " jan dot kratochvil at redhat dot com
2010-02-17 17:43 ` hjl dot tools at gmail dot com
2010-02-17 17:54 ` hjl dot tools at gmail dot com
2010-04-04 7:27 ` drepper at redhat dot com
[not found] <bug-11292-131@http.sourceware.org/bugzilla/>
2014-06-30 18:47 ` 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).