[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 1/3] configure: add option to disable -fstack-pr
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH 1/3] configure: add option to disable -fstack-protector flags |
Date: |
Thu, 9 Jan 2014 22:30:37 +0000 |
On 9 January 2014 21:55, Steven Noonan <address@hidden> wrote:
> From: Steven Noonan <address@hidden>
>
> The -fstack-protector flag family is useful for ensuring safety and for
> debugging, but has a performance impact. Here's a boot time comparison between
> a QEMU build of qemu-system-arm with and without the -fstack-protector-all
> flag:
>
> # WITHOUT -fstack-protector-all
> address@hidden ~]# systemd-analyze
> Startup finished in 1.744s (kernel) + 11.345s (initrd) + 47.164s
> (userspace) = 1min 255ms
>
> # WITH -fstack-protector-all
> address@hidden ~]# systemd-analyze
> Startup finished in 1.843s (kernel) + 12.262s (initrd) + 1min 3.480s
> (userspace) = 1min 17.587s
>
> This is a sizable delta, and some users may wish to disable the flag.
How about benchmarking the intermediate level of protection, ie
just "-fstack-protector"? Maybe that's a good enough compromise
between security and speed that we don't need to mess with
configure... (IIRC there have been discussions before
about why we have the -all variant specifically but I don't recall
anybody coming up with a convincing argument.)
thanks
-- PMM
- [Qemu-devel] [PATCH 1/3] configure: add option to disable -fstack-protector flags, Steven Noonan, 2014/01/09
- Re: [Qemu-devel] [PATCH 1/3] configure: add option to disable -fstack-protector flags,
Peter Maydell <=
- Re: [Qemu-devel] [PATCH 1/3] configure: add option to disable -fstack-protector flags, Paolo Bonzini, 2014/01/09
- Re: [Qemu-devel] [PATCH 1/3] configure: add option to disable -fstack-protector flags, Brad Smith, 2014/01/09
- Re: [Qemu-devel] [PATCH 1/3] configure: add option to disable -fstack-protector flags, Noonan, Steven, 2014/01/10
- Re: [Qemu-devel] [PATCH 1/3] configure: add option to disable -fstack-protector flags, Noonan, Steven, 2014/01/10
- Re: [Qemu-devel] [PATCH 1/3] configure: add option to disable -fstack-protector flags, Stefan Weil, 2014/01/11
- Re: [Qemu-devel] [PATCH 1/3] configure: add option to disable -fstack-protector flags, Paolo Bonzini, 2014/01/13
- [Qemu-devel] [PATCH] configure: add option to disable -fstack-protector flags, Steven Noonan, 2014/01/13
- Re: [Qemu-devel] [PATCH] configure: add option to disable -fstack-protector flags, Stefan Weil, 2014/01/13
- Re: [Qemu-devel] [PATCH] configure: add option to disable -fstack-protector flags, Noonan, Steven, 2014/01/13