NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: lib/48324: ld.elf_so - tty.c memcpy overwrites tcb for tls variant 2
The following reply was made to PR lib/48324; it has been noted by GNATS.
From: Nick Hudson <nick.hudson%gmx.co.uk@localhost>
To: gnats-bugs%NetBSD.org@localhost, lib-bug-people%netbsd.org@localhost,
gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost
Cc:
Subject: Re: lib/48324: ld.elf_so - tty.c memcpy overwrites tcb for tls variant
2
Date: Sat, 19 Oct 2013 11:17:29 +0100
On 19/10/2013 00:05, nathanialsloss%yahoo.com.au@localhost wrote:
>> Number: 48324
>> Synopsis: ld.elf_so - tty.c memcpy overwrites tcb for tls variant 2
[...]
>> - q = p - obj->tlsoffset;
>> + q = p - obj->tlsoffset - obj->tlsinitsize;
>>
I'm not convinced this is correct.
I've just committed some debug code to ld.elf_so to help understand
what's going on here. Can you build a -DDEBUG -DRTLD_DEBUG ld.elf_so and
run your test problem against it (the environment variable LD_DEBUG
needs to be set)
Typically I create a ld.dbg_so and point the program at that so I don't
hose my system.
Thanks,
Nick
Home |
Main Index |
Thread Index |
Old Index