public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug dynamic-link/30027] New: Internal tunables ABI depends on awk array iteration order
@ 2023-01-20 10:26 fweimer at redhat dot com
2023-01-20 10:26 ` [Bug dynamic-link/30027] " fweimer at redhat dot com
2023-04-28 6:20 ` sam at gentoo dot org
0 siblings, 2 replies; 3+ messages in thread
From: fweimer at redhat dot com @ 2023-01-20 10:26 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=30027
Bug ID: 30027
Summary: Internal tunables ABI depends on awk array iteration
order
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: dynamic-link
Assignee: unassigned at sourceware dot org
Reporter: fweimer at redhat dot com
Target Milestone: ---
I do not think GNU awk specifies the array iteration order. The enum type with
the tunables indices is defined like this:
# Now, the enum names
print "\ntypedef enum"
print "{"
for (tnm in types) {
split (tnm, indices, SUBSEP);
t = indices[1];
n = indices[2];
m = indices[3];
printf (" TUNABLE_ENUM_NAME(%s, %s, %s),\n", t, n, m);
}
print "} tunable_id_t;\n"
So the assigned indices depend on array iteration order.
This could be a problem if building glibc multilibs (for glibc-hwcaps), where
the (baseline) ld.so and multilib libc.so.6 come from different builds and have
potentially different iteration order. This can cause crashes because
__tunable_get_val does not perform any type checking. It may store a larger
tunable value than the caller specifies through the value pointer, causing
memory corruption.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug dynamic-link/30027] Internal tunables ABI depends on awk array iteration order
2023-01-20 10:26 [Bug dynamic-link/30027] New: Internal tunables ABI depends on awk array iteration order fweimer at redhat dot com
@ 2023-01-20 10:26 ` fweimer at redhat dot com
2023-04-28 6:20 ` sam at gentoo dot org
1 sibling, 0 replies; 3+ messages in thread
From: fweimer at redhat dot com @ 2023-01-20 10:26 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=30027
Florian Weimer <fweimer at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at sourceware dot org |fweimer at redhat dot com
CC| |fweimer at redhat dot com
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug dynamic-link/30027] Internal tunables ABI depends on awk array iteration order
2023-01-20 10:26 [Bug dynamic-link/30027] New: Internal tunables ABI depends on awk array iteration order fweimer at redhat dot com
2023-01-20 10:26 ` [Bug dynamic-link/30027] " fweimer at redhat dot com
@ 2023-04-28 6:20 ` sam at gentoo dot org
1 sibling, 0 replies; 3+ messages in thread
From: sam at gentoo dot org @ 2023-04-28 6:20 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=30027
Sam James <sam at gentoo dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sam at gentoo dot org
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-04-28 6:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-20 10:26 [Bug dynamic-link/30027] New: Internal tunables ABI depends on awk array iteration order fweimer at redhat dot com
2023-01-20 10:26 ` [Bug dynamic-link/30027] " fweimer at redhat dot com
2023-04-28 6:20 ` sam at gentoo 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).