Re: Uninitialized variables and F37

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jan 21, 2022 at 01:04:51PM -0500, Steve Grubb wrote:
> Hello,
> 
> This is a continuation of the discussion from F36 Change: GNU Toolchain 
> Update.

snip.

> He talks about -ftrivial-auto-var-init=zero being used for production builds 
> and -ftrivial-auto-var-init=<pattern>  being used for debug builds. The use 
> is not just the kernel. Consider a server that returns data across the 
> network to a client. It could possibly leak crypto keys or passwords if the 
> returned data structure has uninitialized memory.

snip

> I think this would be an important step forward to turn this on across all 
> compilations. We could wipe out an entire class of bugs in one fell swoop.

Fast-forward a few months and I see GCC 12.1 is released now with
-ftrivial-auto-var-init option support [2].

Are you going to take this idea forward and make a formal change proposal
for Fedora to set -ftrivial-auto-var-init=zero by default in its default
RPM build flags ?

With regards,
Daniel

[1] https://gcc.gnu.org/gcc-12/changes.html
[2] https://gcc.gnu.org/onlinedocs/gcc-12.1.0/gcc/Optimize-Options.html#index-ftrivial-auto-var-init
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux