[PATCH v6 0/2] _FORTIFY_SOURCE=3

Adhemerval Zanella adhemerval.zanella@linaro.org
Tue Dec 22 21:49:57 GMT 2020



On 22/12/2020 10:00, Siddhesh Poyarekar wrote:
> On 12/19/20 12:03 PM, Siddhesh Poyarekar via Libc-alpha wrote:
>> This patchset implements a new fortification level, _FORTIFY_SOURCE=3.
>> This level allows size information to be dynamic, which may potentially
>> have a noticeable performance impact.  It uses the
>> __builtin_dynamic_object_size builtin available in clang to expand
>> coverage of fortifications at the expense of some performance.
>>
>> Patch 1/2 implements the base support and support for functions that
>> have builtins of string functions.  Additionally, the patch also
>> describes the use case and tradeoffs.
>>
>> Patch 2/2 adds support for non-string functions that are
>> fortification-ready for levels 1 and 2.
> 
> Any more comments on this?  I believe I have fixed all the outstanding issues that were pointed out during previous reviews.
> 
> Siddhesh

I will check this out tomorrow, but it seems ok skimming through it.


More information about the Libc-alpha mailing list