Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Tue, 14 Feb 2023 15:25:23 +0800
From: "兔子猪" <3264430019@...com>
To: "musl" <musl@...ts.openwall.com>
Subject: [PATCH]fix tsd's issue

Currently, I am trying to port jemalloc to musl, I have found a issue "the return value of pthread_getspecific is not correct". The reasons are as follows:
1, Jemalloc uses pthread_key_t to implement cache feature, if codes call malloc, pthread_create_key will called and tsd will be initizlized.
2, Musl calls malloc before updating TLS size in dl stage 3.
3, New created initial_tls doesn't carry builtin_tls's tsd.


The attached patch could fix this issue, please review it, thanks.
Content of type "text/html" skipped

Download attachment "fix_tsd_issue.patch" of type "application/octet-stream" (662 bytes)

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.