Gentoo Archives: gentoo-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-dev@l.g.o
Cc: "Anthony G. Basile" <blueness@g.o>
Subject: Re: [gentoo-dev] Can we get PIE on all SUID binaries by default, por favor?
Date: Sun, 29 Jan 2012 19:15:02
Message-Id: 201201291414.27968.vapier@gentoo.org
In Reply to: Re: [gentoo-dev] Can we get PIE on all SUID binaries by default, por favor? by "Anthony G. Basile"
1 On Saturday 28 January 2012 07:26:59 Anthony G. Basile wrote:
2 > I've run nbench on two amd64 systems both running the same kernel
3 > vanilla-3.2.2.
4
5 i don't think nbench is a good benchmark for this as it isn't really testing
6 what you think it's testing. it's very good at validating math support in the
7 ISA/ABI, optimized compiler output, and supplementary math implementations in
8 libgcc. PIE vs non-PIE will still be able to multiply/divide in pretty much
9 the same amount of time.
10
11 > So at least on amd64, I don't think that performance is ever an issue.
12
13 yes, most likely on systems where the PIC has hardware support in the ISA, the
14 performance hit on PIE is typically low.
15
16 > I have yet to look at x86.
17
18 pretty sure this is going to be much more palpable.
19 -mike

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] Can we get PIE on all SUID binaries by default, por favor? "Anthony G. Basile" <blueness@g.o>