<feed xmlns='http://www.w3.org/2005/Atom'>
<title>glibc/malloc, branch master</title>
<subtitle>Fork of glibc for development</subtitle>
<id>https://git.zx2c4.com/glibc/atom/malloc?h=master</id>
<link rel='self' href='https://git.zx2c4.com/glibc/atom/malloc?h=master'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/glibc/'/>
<updated>2024-07-19T14:10:17Z</updated>
<entry>
<title>Fix usage of _STACK_GROWS_DOWN and _STACK_GROWS_UP defines [BZ 31989]</title>
<updated>2024-07-19T14:10:17Z</updated>
<author>
<name>John David Anglin</name>
<email>danglin@gcc.gnu.org</email>
</author>
<published>2024-07-19T14:10:17Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/glibc/commit/?id=8cfa4ecff21adf226984f135aa576dd8063bbba3'/>
<id>urn:sha1:8cfa4ecff21adf226984f135aa576dd8063bbba3</id>
<content type='text'>
Signed-off-by: John David Anglin &lt;dave.anglin@bell.net&gt;
Reviewed-By: Andreas K. Hüttel &lt;dilfridge@gentoo.org&gt;
</content>
</entry>
<entry>
<title>mtrace: make shell commands robust against meta characters</title>
<updated>2024-06-24T07:33:49Z</updated>
<author>
<name>Andreas Schwab</name>
<email>schwab@suse.de</email>
</author>
<published>2024-06-20T12:13:01Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/glibc/commit/?id=2a6c922f09e7a1c206e0cbdb4424f1cf101a5bda'/>
<id>urn:sha1:2a6c922f09e7a1c206e0cbdb4424f1cf101a5bda</id>
<content type='text'>
Use the list form of the open function to avoid interpreting meta
characters in the arguments.
</content>
</entry>
<entry>
<title>malloc: Replace shell/Perl gate in mtrace</title>
<updated>2024-06-20T18:55:10Z</updated>
<author>
<name>Florian Weimer</name>
<email>fweimer@redhat.com</email>
</author>
<published>2024-06-20T18:55:10Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/glibc/commit/?id=dd144dce21c864781fade4561581d50fb4549956'/>
<id>urn:sha1:dd144dce21c864781fade4561581d50fb4549956</id>
<content type='text'>
The previous version expanded $0 and $@ twice.

The new version defines a q no-op shell command.  The Perl syntax
error is masked by the eval Perl function.  The q { … } construct
is executed by the shell without errors because the q shell function
was defined, but treated as a non-expanding quoted string by Perl,
effectively hiding its context from the Perl interpreter.  As before
the script is read by require instead of executed directly, to avoid
infinite recursion because the #! line contains /bin/sh.

Introduce the “fatal” function to produce diagnostics that are not
suppressed by “do”.  Use “do” instead of “require” because it has
fewer requirements on the executed script than “require”.

Prefix relative paths with './' because “do” (and “require“ before)
searches for the script in @INC if the path is relative and does not
start with './'.  Use $_ to make the trampoline shorter.

Add an Emacs mode marker to indentify the script as a Perl script.
</content>
</entry>
<entry>
<title>malloc: Always install mtrace (bug 31892)</title>
<updated>2024-06-20T08:32:16Z</updated>
<author>
<name>Florian Weimer</name>
<email>fweimer@redhat.com</email>
</author>
<published>2024-06-20T08:32:16Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/glibc/commit/?id=086910fc41655152812b515dc324d2ac0dc36e67'/>
<id>urn:sha1:086910fc41655152812b515dc324d2ac0dc36e67</id>
<content type='text'>
Generation of the Perl script does not depend on Perl, so we can
always install it even if $(PERL) is not set during the build.

Change the malloc/mtrace.pl text substition not to rely on $(PERL).
Instead use PATH at run time to find the Perl interpreter. The Perl
interpreter cannot execute directly a script that starts with
“#! /bin/sh”: it always executes it with /bin/sh.  There is no
perl command line switch to disable this behavior.  Instead, use
the Perl require function to execute the script.  The additional
shift calls remove the “.” shell arguments.  Perl interprets the
“.” as a string concatenation operator, making the expression
syntactically valid.

Reviewed-by: Carlos O'Donell &lt;carlos@redhat.com&gt;
</content>
</entry>
<entry>
<title>malloc: New test to check malloc alternate path using memory obstruction</title>
<updated>2024-06-04T16:00:29Z</updated>
<author>
<name>sayan paul</name>
<email>saypaul@redhat.com</email>
</author>
<published>2024-05-29T10:01:04Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/glibc/commit/?id=127fc56152347d73cb7c1c283e60e1cb1f15e9f9'/>
<id>urn:sha1:127fc56152347d73cb7c1c283e60e1cb1f15e9f9</id>
<content type='text'>
The test aims to ensure that malloc uses the alternate path to
allocate memory when sbrk() or brk() fails.To achieve this,
the test first creates an obstruction at current program break,
tests that obstruction with a failing sbrk(), then checks if malloc
is still returning a valid ptr thus inferring that malloc() used
mmap() instead of brk() or sbrk() to allocate the memory.
Reviewed-by: Arjun Shankar &lt;arjun@redhat.com&gt;
Reviewed-by: Zack Weinberg &lt;zack@owlfolio.org&gt;
</content>
</entry>
<entry>
<title>malloc: Improve aligned_alloc and calloc test coverage.</title>
<updated>2024-05-14T14:36:50Z</updated>
<author>
<name>Joe Simmons-Talbott</name>
<email>josimmon@redhat.com</email>
</author>
<published>2024-05-14T14:36:50Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/glibc/commit/?id=3395157ff2b0657d70c36169156f67440205c8bf'/>
<id>urn:sha1:3395157ff2b0657d70c36169156f67440205c8bf</id>
<content type='text'>
Add a DSO (malloc/tst-aligned_alloc-lib.so) that can be used during
testing to interpose malloc with a call that randomly uses either
aligned_alloc, __libc_malloc, or __libc_calloc in the place of malloc.
Use LD_PRELOAD with the DSO to mirror malloc/tst-malloc.c testing as an
example in malloc/tst-malloc-random.c.  Add malloc/tst-aligned-alloc-random.c
as another example that does a number of malloc calls with randomly sized,
but limited to 0xffff, requests.

The intention is to be able to utilize existing malloc testing to ensure
that similar allocation APIs are also exposed to the same rigors.

Reviewed-by: DJ Delorie &lt;dj@redhat.com&gt;
</content>
</entry>
<entry>
<title>malloc/Makefile: Split and sort tests</title>
<updated>2024-05-10T12:26:48Z</updated>
<author>
<name>H.J. Lu</name>
<email>hjl.tools@gmail.com</email>
</author>
<published>2024-05-10T03:27:39Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/glibc/commit/?id=d49cd6a1913da9744b9a0ffbefb3f7958322382e'/>
<id>urn:sha1:d49cd6a1913da9744b9a0ffbefb3f7958322382e</id>
<content type='text'>
Put each test on a separate line and sort tests.

Signed-off-by: H.J. Lu &lt;hjl.tools@gmail.com&gt;
Reviewed-by: Carlos O'Donell &lt;carlos@redhat.com&gt;
</content>
</entry>
<entry>
<title>Make __getrandom_nocancel set errno and add a _nostatus version</title>
<updated>2024-01-12T13:23:11Z</updated>
<author>
<name>Xi Ruoyao</name>
<email>xry111@xry111.site</email>
</author>
<published>2024-01-04T13:41:20Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/glibc/commit/?id=5a85786a9005722be7cb9e70f8874a5f1130daea'/>
<id>urn:sha1:5a85786a9005722be7cb9e70f8874a5f1130daea</id>
<content type='text'>
The __getrandom_nocancel function returns errors as negative values
instead of errno.  This is inconsistent with other _nocancel functions
and it breaks "TEMP_FAILURE_RETRY (__getrandom_nocancel (p, n, 0))" in
__arc4random_buf.  Use INLINE_SYSCALL_CALL instead of
INTERNAL_SYSCALL_CALL to fix this issue.

But __getrandom_nocancel has been avoiding from touching errno for a
reason, see BZ 29624.  So add a __getrandom_nocancel_nostatus function
and use it in tcache_key_initialize.

Signed-off-by: Xi Ruoyao &lt;xry111@xry111.site&gt;
Reviewed-by: Adhemerval Zanella  &lt;adhemerval.zanella@linaro.org&gt;
Signed-off-by: Andreas K. Hüttel &lt;dilfridge@gentoo.org&gt;
</content>
</entry>
<entry>
<title>Update copyright dates not handled by scripts/update-copyrights</title>
<updated>2024-01-01T18:53:40Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2024-01-01T18:35:28Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/glibc/commit/?id=1059defeee95e28c65b266a55eba6d47d852026b'/>
<id>urn:sha1:1059defeee95e28c65b266a55eba6d47d852026b</id>
<content type='text'>
I've updated copyright dates in glibc for 2024.  This is the patch for
the changes not generated by scripts/update-copyrights and subsequent
build / regeneration of generated files.
</content>
</entry>
<entry>
<title>Update copyright dates with scripts/update-copyrights</title>
<updated>2024-01-01T18:53:40Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2024-01-01T18:12:26Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/glibc/commit/?id=dff8da6b3e89b986bb7f6b1ec18cf65d5972e307'/>
<id>urn:sha1:dff8da6b3e89b986bb7f6b1ec18cf65d5972e307</id>
<content type='text'>
</content>
</entry>
</feed>
