linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jes Sorensen <jes@trained-monkey.org>
To: Mateusz Grzonka <mateusz.grzonka@intel.com>, linux-raid@vger.kernel.org
Cc: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Subject: Re: [PATCH] Add compiler defenses flags
Date: Fri, 1 Sep 2023 12:16:24 -0400	[thread overview]
Message-ID: <cd03eb71-8dc8-3c42-f5ad-1c6ad1ea4b8f@trained-monkey.org> (raw)
In-Reply-To: <20230717131910.22713-1-mateusz.grzonka@intel.com>

On 7/17/23 09:19, Mateusz Grzonka wrote:
> It is essential to avoid buffer overflows and similar bugs as much as
> possible.
> 
> According to Intel rules we are obligated to verify certain
> compiler flags, so it will be much easier if they are added to the
> Makefile.
> 
> Add gcc flags for prevention of buffer overflows, format string vulnerabilities,
> stack protection to prevent stack overwrites and aslr enablement through -fPIE.
> Also make the flags configurable.
> 
> The changes were verified on gcc versions 7.5, 8.3, 9.2, 10 and 12.2.
> 
> Signed-off-by: Mateusz Grzonka <mateusz.grzonka@intel.com>

Seems reasonable and fairly broad testing, so applied!

Thanks,
Jes



      reply	other threads:[~2023-09-01 16:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-17 13:19 [PATCH] Add compiler defenses flags Mateusz Grzonka
2023-09-01 16:16 ` Jes Sorensen [this message]

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=cd03eb71-8dc8-3c42-f5ad-1c6ad1ea4b8f@trained-monkey.org \
    --to=jes@trained-monkey.org \
    --cc=linux-raid@vger.kernel.org \
    --cc=mariusz.tkaczyk@linux.intel.com \
    --cc=mateusz.grzonka@intel.com \
    /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).