Re: [CFT] ASLR, PIE, and segvguard on 11-current and 10-stable

2014-05-30 Thread Wojciech A. Koszek
On Fri, May 23, 2014 at 08:35:25PM -0400, Shawn Webb wrote: On May 23, 2014 07:53 PM +, Wojciech A. Koszek wrote: On Wed, May 14, 2014 at 09:58:52AM -0400, Shawn Webb wrote: Hey All, [NOTE: crossposting between freebsd-current@, freebsd-security@, and freebsd-stable@. Please

Re: [CFT] ASLR, PIE, and segvguard on 11-current and 10-stable

2014-05-25 Thread Dag-Erling Smørgrav
Oliver Pinter oliver.p...@gmail.com writes: Two idea here: a) create a tunable security.pax.expert_mode, and create sysctls at boot time depending from expert mode b) just add CTLFLAG_SKIP and hide the sysctl from normal user The cost of an unused sysctl is about a hundred bytes of kernel

Re: [CFT] ASLR, PIE, and segvguard on 11-current and 10-stable

2014-05-25 Thread Dag-Erling Smørgrav
Oliver Pinter oliver.p...@gmail.com writes: PAX LOG: implement new logging subsystem PAX LOG: fix pax_ulog_segvguard PAX LOG: added sysctl's and tunables PAX ASLR: use PAX LOG PAX LOG: fix pax_ulog_##name() PAX LOG: fix prison init PAX LOG: fixed

Re: [CFT] ASLR, PIE, and segvguard on 11-current and 10-stable

2014-05-25 Thread Oliver Pinter
On 5/25/14, Dag-Erling Smørgrav d...@des.no wrote: Oliver Pinter oliver.p...@gmail.com writes: PAX LOG: implement new logging subsystem PAX LOG: fix pax_ulog_segvguard PAX LOG: added sysctl's and tunables PAX ASLR: use PAX LOG PAX LOG: fix pax_ulog_##name()

Re: [CFT] ASLR, PIE, and segvguard on 11-current and 10-stable

2014-05-25 Thread Dimitry Andric
On 25 May 2014, at 19:42, Oliver Pinter oliver.p...@gmail.com wrote: On 5/25/14, Dag-Erling Smørgrav d...@des.no wrote: Oliver Pinter oliver.p...@gmail.com writes: ... PAX: blacklist clang and related binaries from PIE support Why? Performance, or do they actually break? No. If you

Re: [CFT] ASLR, PIE, and segvguard on 11-current and 10-stable

2014-05-25 Thread Dag-Erling Smørgrav
Oliver Pinter oliver.p...@gmail.com writes: pax_log will be in future a generic pax related logging framework, with ratelimiting and other features. It will log user, IP, binary name, path, checksum, and others. What are you using this for? Are you sure you can't use ktrace? It's a lot more

Re: [CFT] ASLR, PIE, and segvguard on 11-current and 10-stable

2014-05-25 Thread Oliver Pinter
On 5/25/14, Dag-Erling Smørgrav d...@des.no wrote: Oliver Pinter oliver.p...@gmail.com writes: pax_log will be in future a generic pax related logging framework, with ratelimiting and other features. It will log user, IP, binary name, path, checksum, and others. What are you using this for?

Re: [CFT] ASLR, PIE, and segvguard on 11-current and 10-stable

2014-05-25 Thread David Chisnall
On 25 May 2014, at 21:31, Oliver Pinter oliver.p...@gmail.com wrote: On 5/25/14, Dag-Erling Smørgrav d...@des.no wrote: Oliver Pinter oliver.p...@gmail.com writes: pax_log will be in future a generic pax related logging framework, with ratelimiting and other features. It will log user, IP,

Re: [CFT] ASLR, PIE, and segvguard on 11-current and 10-stable

2014-05-25 Thread Julian Elischer
On 5/26/14, 5:18 AM, David Chisnall wrote: On 25 May 2014, at 21:31, Oliver Pinter oliver.p...@gmail.com wrote: On 5/25/14, Dag-Erling Smørgrav d...@des.no wrote: Oliver Pinter oliver.p...@gmail.com writes: pax_log will be in future a generic pax related logging framework, with ratelimiting

Re: [CFT] ASLR, PIE, and segvguard on 11-current and 10-stable

2014-05-24 Thread Shawn Webb
On May 23, 2014 07:44 PM -0500, Pedro Giffuni wrote: (Dropped the cross-posting, which *is* frowned upon) While I do very much appreciate this work being done, and I agree we should have it in the tree, I would really prefer it opt-in rather opt-out, at least initially. I know this may

Re: [CFT] ASLR, PIE, and segvguard on 11-current and 10-stable

2014-05-24 Thread Oliver Pinter
On 5/24/14, Shawn Webb latt...@gmail.com wrote: On May 23, 2014 07:53 PM +, Wojciech A. Koszek wrote: On Wed, May 14, 2014 at 09:58:52AM -0400, Shawn Webb wrote: Hey All, [NOTE: crossposting between freebsd-current@, freebsd-security@, and freebsd-stable@. Please forgive me if

Re: [CFT] ASLR, PIE, and segvguard on 11-current and 10-stable

2014-05-23 Thread Wojciech A. Koszek
On Wed, May 14, 2014 at 09:58:52AM -0400, Shawn Webb wrote: Hey All, [NOTE: crossposting between freebsd-current@, freebsd-security@, and freebsd-stable@. Please forgive me if crossposting is frowned upon.] Address Space Layout Randomization, or ASLR for short, is an exploit mitigation

Re: [CFT] ASLR, PIE, and segvguard on 11-current and 10-stable

2014-05-23 Thread Oliver Pinter
On 5/14/14, Shawn Webb latt...@gmail.com wrote: Hey All, [NOTE: crossposting between freebsd-current@, freebsd-security@, and freebsd-stable@. Please forgive me if crossposting is frowned upon.] Address Space Layout Randomization, or ASLR for short, is an exploit mitigation technology. It

Re: [CFT] ASLR, PIE, and segvguard on 11-current and 10-stable

2014-05-23 Thread Shawn Webb
On May 23, 2014 07:53 PM +, Wojciech A. Koszek wrote: On Wed, May 14, 2014 at 09:58:52AM -0400, Shawn Webb wrote: Hey All, [NOTE: crossposting between freebsd-current@, freebsd-security@, and freebsd-stable@. Please forgive me if crossposting is frowned upon.] Address Space

Re: [CFT] ASLR, PIE, and segvguard on 11-current and 10-stable

2014-05-23 Thread Pedro Giffuni
(Dropped the cross-posting, which *is* frowned upon) While I do very much appreciate this work being done, and I agree we should have it in the tree, I would really prefer it opt-in rather opt-out, at least initially. I know this may very well be the subject of a bikeshed of historical

Re: [CFT] ASLR, PIE, and segvguard on 11-current and 10-stable

2014-05-22 Thread Ian Lepore
On Wed, 2014-05-14 at 09:58 -0400, Shawn Webb wrote: Hey All, [NOTE: crossposting between freebsd-current@, freebsd-security@, and freebsd-stable@. Please forgive me if crossposting is frowned upon.] Address Space Layout Randomization, or ASLR for short, is an exploit mitigation

Re: [CFT] ASLR, PIE, and segvguard on 11-current and 10-stable

2014-05-14 Thread Adrian Chadd
Hi! Cool! Does it run on MIPS? :P -a On 14 May 2014 06:58, Shawn Webb latt...@gmail.com wrote: Hey All, [NOTE: crossposting between freebsd-current@, freebsd-security@, and freebsd-stable@. Please forgive me if crossposting is frowned upon.] Address Space Layout Randomization, or ASLR

Re: [CFT] ASLR, PIE, and segvguard on 11-current and 10-stable

2014-05-14 Thread Shawn Webb
It runs on all architectures FreeBSD supports. The question is how well it runs. The wider the testing, the better the code, of course. We're actively testing on amd64 and i386 with limited testing on sparc64 and ARM. I've been running with this patches on amd64 on multiple machines for months.

Re: [CFT] ASLR, PIE, and segvguard on 11-current and 10-stable

2014-05-14 Thread Adrian Chadd
On 14 May 2014 10:09, Shawn Webb latt...@gmail.com wrote: It runs on all architectures FreeBSD supports. The question is how well it runs. The wider the testing, the better the code, of course. We're actively testing on amd64 and i386 with limited testing on sparc64 and ARM. I've been running