<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib/libc/sys/stack_protector.c, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>http://cgit.freebsd.org/src/atom?h=main</id>
<link rel='self' href='http://cgit.freebsd.org/src/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<updated>2015-08-14T03:03:13Z</updated>
<entry>
<title>Move the stack protector to a new "secure" directory</title>
<updated>2015-08-14T03:03:13Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2015-08-14T03:03:13Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=fe0d386cf33928c3b3839bc428f304d38e979803'/>
<id>urn:sha1:fe0d386cf33928c3b3839bc428f304d38e979803</id>
<content type='text'>
As part of the code refactoring to support FORTIFY_SOURCE we want
a new subdirectory "secure" to keep the files related to security.
Move the stack protector functions to this new directory.

No functional change.

Differential Review:	https://reviews.freebsd.org/D3333
</content>
</entry>
<entry>
<title>NetBSD commit log:</title>
<updated>2015-06-14T07:47:18Z</updated>
<author>
<name>Jeremie Le Hen</name>
<email>jlh@FreeBSD.org</email>
</author>
<published>2015-06-14T07:47:18Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=b7c4ed65cc940e4d9f548e6e5ed93acad5cc7099'/>
<id>urn:sha1:b7c4ed65cc940e4d9f548e6e5ed93acad5cc7099</id>
<content type='text'>
  Use a constant array for the MIB. Newer LLVM decided that mib[] warranted
  stack protections, with the obvious crash after the setup was done.
  As a positive side effect, code size shrinks a bit.

I'm not sure why this hasn't bitten us yes, but it is certainly possible and
there are no real drawbacks to this change anyway.

Submitted by:	pfg
Obtained from:	NetBSD
MFC after:	1 week
</content>
</entry>
<entry>
<title>Revert r274772: it is not valid on MIPS</title>
<updated>2014-11-25T03:50:31Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2014-11-25T03:50:31Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=294246bb7db1fb65230d917c401271c4b0e7c672'/>
<id>urn:sha1:294246bb7db1fb65230d917c401271c4b0e7c672</id>
<content type='text'>
Reported by:	sbruno
</content>
</entry>
<entry>
<title>Use canonical __PIC__ flag</title>
<updated>2014-11-21T02:05:48Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2014-11-21T02:05:48Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=688fd61ae82483889429492fdd958c18edfd5b4f'/>
<id>urn:sha1:688fd61ae82483889429492fdd958c18edfd5b4f</id>
<content type='text'>
It is automatically set when -fPIC is passed to the compiler.

Reviewed by:	dim, kib
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D1179
</content>
</entry>
<entry>
<title>Clang related fixes:</title>
<updated>2010-10-13T16:57:06Z</updated>
<author>
<name>Rui Paulo</name>
<email>rpaulo@FreeBSD.org</email>
</author>
<published>2010-10-13T16:57:06Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=565424b2fd11ce6bcb57b0afcc9484813162bb5e'/>
<id>urn:sha1:565424b2fd11ce6bcb57b0afcc9484813162bb5e</id>
<content type='text'>
* When calling syslog(), pass a format string.
* Define YY_NO_INPUT on nslexer.l

Submitted by:	Norberto Lopes &lt;nlopes.ml at gmail.com&gt;
</content>
</entry>
<entry>
<title>Remove extra FreeBSD tag.</title>
<updated>2010-08-24T13:02:22Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2010-08-24T13:02:22Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=3e3fbd3f25a24a1ca28a79b86cf067a0189ec406'/>
<id>urn:sha1:3e3fbd3f25a24a1ca28a79b86cf067a0189ec406</id>
<content type='text'>
MFC after:	3 days
</content>
</entry>
<entry>
<title>Move the __stack_chk_fail_local@FBSD_1.0 compat symbol definition into</title>
<updated>2010-08-24T12:58:54Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2010-08-24T12:58:54Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=da2a0df59c215bf19150821eec15440f2db3f932'/>
<id>urn:sha1:da2a0df59c215bf19150821eec15440f2db3f932</id>
<content type='text'>
the separate .o for libc_pic.a. This prevents rtld from making the
symbol global.

Putting the stack_protector_compat.c into the public domain acknowledged
by kan.

Reviewed by:	kan
MFC after:	2 weeks
</content>
</entry>
<entry>
<title>Use aux vector to get values for SSP canary, pagesize, pagesizes array,</title>
<updated>2010-08-17T09:13:26Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2010-08-17T09:13:26Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=2793b018446552e71e9125dc39366f9dbf9042ba'/>
<id>urn:sha1:2793b018446552e71e9125dc39366f9dbf9042ba</id>
<content type='text'>
number of host CPUs and osreldate.

This eliminates the last sysctl(2) calls from the dynamically linked image
startup.

No objections from:	kan
Tested by:	marius (sparc64)
MFC after:	1 month
</content>
</entry>
<entry>
<title>Make libc.a provide __stack_chk_fail_local weak alias. This is</title>
<updated>2009-09-17T13:21:53Z</updated>
<author>
<name>Alexander Kabaev</name>
<email>kan@FreeBSD.org</email>
</author>
<published>2009-09-17T13:21:53Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=e330a6a59e2df7a34b1ee94602e162b07e4e8a9e'/>
<id>urn:sha1:e330a6a59e2df7a34b1ee94602e162b07e4e8a9e</id>
<content type='text'>
needed to satisfy static libraries that are compiled with -fpic
and linked into static binary afterwards. Several libraries in
gcc are examples of such static libs.
</content>
</entry>
<entry>
<title>Second attempt at eliminating .text relocations in shared libraries</title>
<updated>2009-07-14T21:19:13Z</updated>
<author>
<name>Alexander Kabaev</name>
<email>kan@FreeBSD.org</email>
</author>
<published>2009-07-14T21:19:13Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=2286fe763592aa13d320186bf3e233a560af749b'/>
<id>urn:sha1:2286fe763592aa13d320186bf3e233a560af749b</id>
<content type='text'>
compiled with stack protector.

Use libssp_nonshared library to pull __stack_chk_fail_local symbol into
each library that needs it instead of pulling it from libc. GCC
generates local calls to this function which result in absolute
relocations put into position-independent code segment, making dynamic
loader do extra work every time given shared library is being relocated
and making affected text pages non-shareable.

Reviewed by:        kib
Approved by:        re (kib)
</content>
</entry>
</feed>
