This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]