DPDK patches and discussions
 help / color / mirror / Atom feed
From: Luca Boccassi <lboccass@Brocade.com>
To: "dev@dpdk.org" <dev@dpdk.org>
Cc: "christian.ehrhardt@canonical.com"
	<christian.ehrhardt@canonical.com>,
	"cjcollier@linuxfoundation.org" <cjcollier@linuxfoundation.org>,
	"ricardo.salveti@linaro.org" <ricardo.salveti@linaro.org>
Subject: [dpdk-dev] Compiler hardening flags for libraries and performance implications
Date: Tue, 26 Jul 2016 14:53:13 +0000	[thread overview]
Message-ID: <1469544793.4240.24.camel@brocade.com> (raw)

Hello,

While working on uploading DPDK to Ubuntu and Debian, we were wondering
if anyone had any thoughts/opinions on enabling compiler hardening flags
for the DPDK libraries and the possible performance implications.

Especially 2 of the hardening options provided on Debian/Ubuntu [1]
explicitly cite performance implications:

- "bind now" (ld -z now), which forces to resolve all dynamic symbols
immediately at load
- "stack protector" (-fstack-protector-strong), which adds safety checks
against stack overwrites

Any opinions? Would anyone have reservations if we enabled all of these
in the packages that will be distributed in Ubuntu and Debian?

Thanks!

-- 
Kind regards,
Luca Boccassi

[1] https://wiki.debian.org/Hardening#Environment_variables

             reply	other threads:[~2016-07-26 14:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-26 14:53 Luca Boccassi [this message]
2016-07-26 16:44 ` Matthew Hall
2016-07-27 12:58   ` Mcnamara, John
2016-07-27 15:46     ` Matthew Hall

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1469544793.4240.24.camel@brocade.com \
    --to=lboccass@brocade.com \
    --cc=christian.ehrhardt@canonical.com \
    --cc=cjcollier@linuxfoundation.org \
    --cc=dev@dpdk.org \
    --cc=ricardo.salveti@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).