Re: [Tails-dev] Consider adding -D_FORTIFY_SOURCE=3 to some …

このメッセージを削除

このメッセージに返信
著者: David A. Wheeler
日付:  
To: The Tails public development discussion list
題目: Re: [Tails-dev] Consider adding -D_FORTIFY_SOURCE=3 to some applications (e.g., web browser)?


> On Sep 19, 2022, at 2:21 PM, jvoisin via Tails-dev <tails-dev@???> wrote:
>
>>> Has anyone looked into adding -D_FORTIFY_SOURCE=3 to some
>>> It's unclear how much the performance impact is; probably the only way to know is to try it.
>
> I'd argue that it's also unclear what security benefits it would bring
> to a web-browser :P


I don't know what Firefox's numbers are, but 70% of Chrome's vulnerabilities over the
last few years were memory safety vulnerabilities:
https://www.zdnet.com/article/chrome-70-of-all-security-bugs-are-memory-safety-issues/
I would expect the Firefox numbers would be similar. In Firefox
the *Rust* parts with safety enabled would be immune, but a large amount of Firefox isn't
written in the safe subset of Rust.

So yes, hardening against memory safety problems is a *good* thing to do for
web browsers in general. It's not clear if this *specific* change is worth doing,
but I think it's worth considering.

--- David A. Wheeler