Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Wed, 14 Aug 2019 03:20:04 +0000
From: Fangrui Song <i@...kray.me>
To: musl@...ts.openwall.com
Subject: [PATCH libc-test] tls_local_exec.c: add a dynamic relocation test
 case

commit 9d35fec9e1f391d56faee20b868ef4114bcc4d8a fixed a TLS bug introduced
in commit ffab43602b5900c86b7040abdda8ccf6cdec95f5.

% make B=/tmp/libc-test-x86_64 /tmp/libc-test-x86_64/functional/tls_local_exec.err
...
% cat /tmp/libc-test-x86_64/functional/tls_local_exec.err
FAIL /tmp/libc-test-x86_64/functional/tls_local_exec.exe [signal Segmentation fault]

static __thread const char *s1 = "s1";

produces a dynamic relocation against .tdata in a -pie build, which can
have caught the regression.

View attachment "libc-test-tls_local_exec.patch" of type "text/x-diff" (1289 bytes)

Powered by blists - more mailing lists

Your e-mail address:

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