From: "Kirill A. Shutemov" <kirill@shutemov.name>
To: Arnaud Patard <arnaud.patard@rtp-net.org>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 14/14] Add -fstack-protector-all to CFLAGS
Date: Sat, 2 Jan 2010 04:06:06 +0200 [thread overview]
Message-ID: <cc557aab1001011806r46ef6fa1iba31074b3f6a0c37@mail.gmail.com> (raw)
In-Reply-To: <87k4w39zra.fsf@lechat.rtp-net.org>
On Thu, Dec 31, 2009 at 12:58 PM, Arnaud Patard
<arnaud.patard@rtp-net.org> wrote:
> "Kirill A. Shutemov" <kirill@shutemov.name> writes:
> Hi,
>
>> -fstack-protector-all emit extra code to check for buffer overflows,
>> such as stack smashing attacks. This is done by adding a guard
>> variable to functions with vulnerable objects.
>>
>> Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
>> ---
>> configure | 1 +
>> 1 files changed, 1 insertions(+), 0 deletions(-)
>>
>> diff --git a/configure b/configure
>> index 0cdcdb3..16b70d8 100755
>> --- a/configure
>> +++ b/configure
>> @@ -98,6 +98,7 @@ QEMU_CFLAGS="-Wall -Wundef -Wendif-labels -Wwrite-strings -Wmissing-prototypes $
>> QEMU_CFLAGS="-Wstrict-prototypes -Wredundant-decls $QEMU_CFLAGS"
>> QEMU_CFLAGS="-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE $QEMU_CFLAGS"
>> QEMU_CFLAGS="-D_FORTIFY_SOURCE=2 $QEMU_CFLAGS"
>> +QEMU_CFLAGS="-fstack-protector-all $QEMU_CFLAGS"
>
> afaik not all arches out there are supporting
> -fstack-protector-all (to be more precise, some have no stack protector
> support at all). iirc, gcc will emit a warning and still compile
> but would be nice to avoid a warning.
Thanks. Will be fixed.
next parent reply other threads:[~2010-01-02 2:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1262223266-19191-1-git-send-email-kirill@shutemov.name>
[not found] ` <1262223266-19191-2-git-send-email-kirill@shutemov.name>
[not found] ` <1262223266-19191-3-git-send-email-kirill@shutemov.name>
[not found] ` <1262223266-19191-4-git-send-email-kirill@shutemov.name>
[not found] ` <1262223266-19191-5-git-send-email-kirill@shutemov.name>
[not found] ` <87k4w39zra.fsf@lechat.rtp-net.org>
2010-01-02 2:06 ` Kirill A. Shutemov [this message]
[not found] ` <87oclfa03j.fsf@lechat.rtp-net.org>
2010-01-02 2:09 ` [Qemu-devel] [PATCH 12/14] linux-user/mmap.c: fix warnings with _FORTIFY_SOURCE Kirill A. Shutemov
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=cc557aab1001011806r46ef6fa1iba31074b3f6a0c37@mail.gmail.com \
--to=kirill@shutemov.name \
--cc=arnaud.patard@rtp-net.org \
--cc=qemu-devel@nongnu.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).