This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v3] explicit_bzero yet again


On Mon, Jan 11, 2016 at 10:34 AM, Alexander Cherepanov
<ch3root@openwall.com> wrote:
> On 2015-12-07 17:13, Zack Weinberg wrote:
>> However, presently no compiler will LTO-optimize across shared library
>> boundaries, and even if such a compiler existed I would argue that the
>> optimization you contemplate is invalid for functions whose semantics
>> are unknown to the compiler, because the library could be swapped out at
>> runtime.
>
> I see that you added some uses of explicit_bzero into glibc. Hence global
> optimization of glibc itself is a concern?

IIRC all those uses are in libcrypt rather than libc, but this is
still an excellent point which tips my personal opinion from "well,
ok, if it makes you happy" to "yes, we definitely need a barrier in
the implementation".

zw


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]