<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/libexec/rtld-elf/libmap.c, branch releng/12.4</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F12.4</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F12.4'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2021-01-09T01:02:22Z</updated>
<entry>
<title>rtld: call close(2) after errno is saved</title>
<updated>2021-01-09T01:02:22Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2021-01-01T22:24:46Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=01839668ce4b594c9495911549abde86878a708d'/>
<id>urn:sha1:01839668ce4b594c9495911549abde86878a708d</id>
<content type='text'>
(cherry picked from commit 741d78126b5584e860811c78f87f51597e375592)
</content>
</entry>
<entry>
<title>MFC r339877-r339879,r343564-r343566,r343580,r343754:</title>
<updated>2019-02-11T15:02:02Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2019-02-11T15:02:02Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=adbc40826e9055a56964e821866081911522d819'/>
<id>urn:sha1:adbc40826e9055a56964e821866081911522d819</id>
<content type='text'>
Untangle jemalloc and mutexes initialization.

The merge includes required warnings cleanup by arichardson, both to
avoid conflicts and to make rtld_malloc.c compilable with the libthr
WARNS settings.
</content>
</entry>
<entry>
<title>When doing lm_add(), check for duplicates.</title>
<updated>2018-09-26T21:27:08Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2018-09-26T21:27:08Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6c30676522be1ee98e5331dcab10288ba8d37f09'/>
<id>urn:sha1:6c30676522be1ee98e5331dcab10288ba8d37f09</id>
<content type='text'>
This is useful when lm_find() moves the match to the global mapping,
since lm_find() could be called with a same path more than once.

Reported and tested by:	Andreas Longwitz &lt;longwitz@incore.de&gt;
Sponsored by:	The FreeBSD Foundation
Approved by:	re (gjb)
MFC after:	1 week
</content>
</entry>
<entry>
<title>Style cleanup.  No functional changes.</title>
<updated>2018-09-02T15:42:37Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2018-09-02T15:42:37Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c1a0a86ed42e956141a49465340cc9e0860a59ac'/>
<id>urn:sha1:c1a0a86ed42e956141a49465340cc9e0860a59ac</id>
<content type='text'>
Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
Approved by:    re (rgrimes)
</content>
</entry>
<entry>
<title>Plug memory leak on error case.</title>
<updated>2017-10-29T12:07:27Z</updated>
<author>
<name>Edward Tomasz Napierala</name>
<email>trasz@FreeBSD.org</email>
</author>
<published>2017-10-29T12:07:27Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=152036a0f776c5aa5116985e9e25445ee8ba9d84'/>
<id>urn:sha1:152036a0f776c5aa5116985e9e25445ee8ba9d84</id>
<content type='text'>
Reported by:	Coverity
CID:		1382112
MFC after:	2 weeks
</content>
</entry>
<entry>
<title>Use xmalloc and read(2) instead of mmap(2) to read in libmap.conf(5).</title>
<updated>2017-10-24T10:48:26Z</updated>
<author>
<name>Edward Tomasz Napierala</name>
<email>trasz@FreeBSD.org</email>
</author>
<published>2017-10-24T10:48:26Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a8b31c14d22509434fe0267b4a008546461c24a4'/>
<id>urn:sha1:a8b31c14d22509434fe0267b4a008546461c24a4</id>
<content type='text'>
This removes the need to call munmap(2) afterwards.

MFC after:	2 weeks
Sponsored by:	DARPA, AFRL
Differential Revision:	https://reviews.freebsd.org/D12767
</content>
</entry>
<entry>
<title>Don't call realpath(3) from libmap rtld code. This gets rid of a few calls</title>
<updated>2017-10-22T10:32:40Z</updated>
<author>
<name>Edward Tomasz Napierala</name>
<email>trasz@FreeBSD.org</email>
</author>
<published>2017-10-22T10:32:40Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6b61e3e47a906f956b4102610063c3ab84021f60'/>
<id>urn:sha1:6b61e3e47a906f956b4102610063c3ab84021f60</id>
<content type='text'>
to fstatat(2) at binary startup; the difference looks like this:

--- przed       2017-10-14 13:55:49.983528000 +0100
+++ po  2017-10-14 14:10:39.134343000 +0100
@@ -1,15 +1,10 @@
 mmap(0x0,32768,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 34366173184 (0x800623000)
 issetugid()                                     = 0 (0x0)
-fstatat(AT_FDCWD,"/etc",{ mode=drwxr-xr-x ,inode=1364352,size=2560,blksize=32768 },AT_SYMLINK_NOFOLLOW) = 0 (0x0)
-fstatat(AT_FDCWD,"/etc/libmap.conf",{ mode=-rw-r--r-- ,inode=1373288,size=102,blksize=32768 },AT_SYMLINK_NOFOLLOW) = 0 (0x0)
 openat(AT_FDCWD,"/etc/libmap.conf",O_RDONLY|O_CLOEXEC,00) = 3 (0x3)
 fstat(3,{ mode=-rw-r--r-- ,inode=1373288,size=102,blksize=32768 }) = 0 (0x0)
 mmap(0x0,102,PROT_READ,MAP_PRIVATE,3,0x0)       = 34366205952 (0x80062b000)
 close(3)                                        = 0 (0x0)
-fstatat(AT_FDCWD,"/usr",{ mode=drwxr-xr-x ,inode=561792,size=512,blksize=32768 },AT_SYMLINK_NOFOLLOW) = 0 (0x0)
-fstatat(AT_FDCWD,"/usr/local",{ mode=drwxr-xr-x ,inode=561800,size=512,blksize=32768 },AT_SYMLINK_NOFOLLOW) = 0 (0x0)
-fstatat(AT_FDCWD,"/usr/local/etc",{ mode=drwxr-xr-x ,inode=653279,size=1536,blksize=32768 },AT_SYMLINK_NOFOLLOW) = 0 (0x0)
-fstatat(AT_FDCWD,"/usr/local/etc/libmap.d",0x7fffffffcf50,AT_SYMLINK_NOFOLLOW) ERR#2 'No such file or directory'
+open("/usr/local/etc/libmap.d",O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC,0165) ERR#2 'No such file or directory'
 munmap(0x80062b000,102)                                 = 0 (0x0)
 openat(AT_FDCWD,"/var/run/ld-elf.so.hints",O_RDONLY|O_CLOEXEC,00) = 3 (0x3)
 read(3,"Ehnt\^A\0\0\0\M^@\0\0\0\M-2\0\0"...,128) = 128 (0x80)

Reviewed by:	kib
MFC after:	2 weeks
Sponsored by:	DARPA, AFRL
Differential Revision:	https://reviews.freebsd.org/D12741
</content>
</entry>
<entry>
<title>Rather than using the #define for path names, indirect through a char *</title>
<updated>2015-10-31T04:39:55Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2015-10-31T04:39:55Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3deca56f3f3ec38ffa843605bd0c9bd2299b1511'/>
<id>urn:sha1:3deca56f3f3ec38ffa843605bd0c9bd2299b1511</id>
<content type='text'>
variable that could change for different executable types detected.
</content>
</entry>
<entry>
<title>Move all the paths into a new path.h to centralize them.</title>
<updated>2015-10-31T04:39:28Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2015-10-31T04:39:28Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b2a4014cbb4a2a9b382ca9481c8726581aba8170'/>
<id>urn:sha1:b2a4014cbb4a2a9b382ca9481c8726581aba8170</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Always check the limits of array index variables before using them.</title>
<updated>2014-08-21T02:40:33Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2014-08-21T02:40:33Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=0fa46a42318ad56f1414d2822c6ab82e72dde6fa'/>
<id>urn:sha1:0fa46a42318ad56f1414d2822c6ab82e72dde6fa</id>
<content type='text'>
Obtained from:	DragonFlyBSD
MFC after:	1 week
</content>
</entry>
</feed>
