public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/maskray/grte] Fix memory leak in TLS allocation
@ 2021-08-28  0:29 Fangrui Song
  0 siblings, 0 replies; 4+ messages in thread
From: Fangrui Song @ 2021-08-28  0:29 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=3e7259adf00f6ec3f99949641c8374f053978886

commit 3e7259adf00f6ec3f99949641c8374f053978886
Author: James Y Knight <jyknight@google.com>
Date:   Wed Oct 21 13:38:14 2020 -0700

    Fix memory leak in TLS allocation

Diff:
---
 elf/dl-tls.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/elf/dl-tls.c b/elf/dl-tls.c
index 0ebd1fa040..c4c3bab83a 100644
--- a/elf/dl-tls.c
+++ b/elf/dl-tls.c
@@ -673,6 +673,7 @@ signal_safe_allocate_and_init (dtv_t *dtv, struct link_map *map)
 	  '\0', map->l_tls_blocksize - map->l_tls_initimage_size);
 
   dtv->pointer.val = newp;
+  dtv->pointer.to_free = newp;
 }
 
 struct link_map *


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [glibc/maskray/grte] Fix memory leak in TLS allocation
@ 2021-08-28  0:33 Fangrui Song
  0 siblings, 0 replies; 4+ messages in thread
From: Fangrui Song @ 2021-08-28  0:33 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=04938f76dd74bc2cfbfa386a7d9e355e0c3c4683

commit 04938f76dd74bc2cfbfa386a7d9e355e0c3c4683
Author: James Y Knight <jyknight@google.com>
Date:   Wed Oct 21 13:38:14 2020 -0700

    Fix memory leak in TLS allocation

Diff:
---
 elf/dl-tls.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/elf/dl-tls.c b/elf/dl-tls.c
index 0ebd1fa040..c4c3bab83a 100644
--- a/elf/dl-tls.c
+++ b/elf/dl-tls.c
@@ -673,6 +673,7 @@ signal_safe_allocate_and_init (dtv_t *dtv, struct link_map *map)
 	  '\0', map->l_tls_blocksize - map->l_tls_initimage_size);
 
   dtv->pointer.val = newp;
+  dtv->pointer.to_free = newp;
 }
 
 struct link_map *


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [glibc/maskray/grte] Fix memory leak in TLS allocation
@ 2021-08-27 23:48 Fangrui Song
  0 siblings, 0 replies; 4+ messages in thread
From: Fangrui Song @ 2021-08-27 23:48 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=0e73d1a973b93eb667cb39653a059adf80962c9b

commit 0e73d1a973b93eb667cb39653a059adf80962c9b
Author: James Y Knight <jyknight@google.com>
Date:   Wed Oct 21 13:38:14 2020 -0700

    Fix memory leak in TLS allocation

Diff:
---
 elf/dl-tls.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/elf/dl-tls.c b/elf/dl-tls.c
index 0ebd1fa040..c4c3bab83a 100644
--- a/elf/dl-tls.c
+++ b/elf/dl-tls.c
@@ -673,6 +673,7 @@ signal_safe_allocate_and_init (dtv_t *dtv, struct link_map *map)
 	  '\0', map->l_tls_blocksize - map->l_tls_initimage_size);
 
   dtv->pointer.val = newp;
+  dtv->pointer.to_free = newp;
 }
 
 struct link_map *


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [glibc/maskray/grte] Fix memory leak in TLS allocation
@ 2021-08-27 23:46 Fangrui Song
  0 siblings, 0 replies; 4+ messages in thread
From: Fangrui Song @ 2021-08-27 23:46 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=e96e2782a5c8c4165b14bfb8a744c9cf48c90ab1

commit e96e2782a5c8c4165b14bfb8a744c9cf48c90ab1
Author: James Y Knight <jyknight@google.com>
Date:   Wed Oct 21 13:38:14 2020 -0700

    Fix memory leak in TLS allocation

Diff:
---
 elf/dl-tls.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/elf/dl-tls.c b/elf/dl-tls.c
index 0ebd1fa040..c4c3bab83a 100644
--- a/elf/dl-tls.c
+++ b/elf/dl-tls.c
@@ -673,6 +673,7 @@ signal_safe_allocate_and_init (dtv_t *dtv, struct link_map *map)
 	  '\0', map->l_tls_blocksize - map->l_tls_initimage_size);
 
   dtv->pointer.val = newp;
+  dtv->pointer.to_free = newp;
 }
 
 struct link_map *


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-08-28  0:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-28  0:29 [glibc/maskray/grte] Fix memory leak in TLS allocation Fangrui Song
  -- strict thread matches above, loose matches on Subject: below --
2021-08-28  0:33 Fangrui Song
2021-08-27 23:48 Fangrui Song
2021-08-27 23:46 Fangrui Song

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).