Re: svn commit: r310025 - head/libexec/rtld-elf

2017-01-10 Thread Dominic Fandrey
On Tue, 2016-12-13 at 18:05 +, Bryan Drewery wrote: > Author: bdrewery > Date: Tue Dec 13 18:05:14 2016 > New Revision: 310025 > URL: https://svnweb.freebsd.org/changeset/base/310025 > > Log: >   Take write lock for rtld_bind before modifying obj_list in > dl_iterate_phdr(). This commit caus

Re: svn commit: r310025 - head/libexec/rtld-elf

2016-12-13 Thread Conrad Meyer
On Tue, Dec 13, 2016 at 12:51 PM, Andriy Gapon wrote: > On 13/12/2016 20:05, Bryan Drewery wrote: >> Author: bdrewery >> Date: Tue Dec 13 18:05:14 2016 >> New Revision: 310025 >> URL: https://svnweb.freebsd.org/changeset/base/310025 >> >> Log: >> Take write lock for rtld_bind before modifying ob

Re: svn commit: r310025 - head/libexec/rtld-elf

2016-12-13 Thread Andriy Gapon
On 13/12/2016 20:05, Bryan Drewery wrote: > Author: bdrewery > Date: Tue Dec 13 18:05:14 2016 > New Revision: 310025 > URL: https://svnweb.freebsd.org/changeset/base/310025 > > Log: > Take write lock for rtld_bind before modifying obj_list in > dl_iterate_phdr(). What are typical callers of dl

svn commit: r310025 - head/libexec/rtld-elf

2016-12-13 Thread Bryan Drewery
Author: bdrewery Date: Tue Dec 13 18:05:14 2016 New Revision: 310025 URL: https://svnweb.freebsd.org/changeset/base/310025 Log: Take write lock for rtld_bind before modifying obj_list in dl_iterate_phdr(). This avoids a race with readers such as dladdr(3)/dlinfo(3)/dlsym(3) and the atexit