This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
stack guard updating source
- From: Sergey Melnikov <sergey dot devel at gmail dot com>
- To: libc-alpha at sourceware dot org
- Date: Wed, 10 Oct 2012 00:07:32 +0400
- Subject: stack guard updating source
Hi all,
I'm digging glibc stack check guard. Glibc code (__libc_start_main
function) sets the random value (stack guard value) to TLS region
(gs:0x14) before the "main" function.
But new thread start code in glibc (start_thread function) doesn't
update the random guard source value. Is is correct? Why is guard
source included in TLS region if a new thread start code doesn't
update the guard value (gs:0x14)?
Any ideas?
Thanks,
-- Sergey Melnikov