oss-sec mailing list archives
Re: PoC: Function Pointer Protection in C Programs
From: "Stephen Röttger" <stephen.roettger () gmail com>
Date: Wed, 21 Aug 2013 19:04:58 +0200
What is performance impact for program that just qsorts big array? It looks like worst case scenario for me.
I just put together a quick test program that sorts an array of 10^6 integers and stopped the execution time using "time". The results are as follows (+- 0,01s): protection disabled, -O0: ./sort_nofpp_0 0,19s user 0,02s system 98% cpu 0,215 total protection enabled, -O0 ./sort_fpp_0 0,54s user 0,01s system 99% cpu 0,549 total protection disabled, -O3 ./sort_nofpp_3 0,15s user 0,01s system 98% cpu 0,157 total protection enabled, -O3 ./sort_fpp_3 0,51s user 0,00s system 99% cpu 0,511 total So this makes quite a difference: 0,19s -> 0,54s 0,15s -> 0,51s
Current thread:
- PoC: Function Pointer Protection in C Programs Stephen Röttger (Aug 21)
- Re: PoC: Function Pointer Protection in C Programs Alessandro Cresto Miseroglio (Aug 21)
- Re: PoC: Function Pointer Protection in C Programs Ondřej Bílka (Aug 21)
- Re: PoC: Function Pointer Protection in C Programs Stephen Röttger (Aug 21)
- Re: PoC: Function Pointer Protection in C Programs Ondřej Bílka (Aug 22)
- Re: PoC: Function Pointer Protection in C Programs Stephen Röttger (Aug 22)
- Re: PoC: Function Pointer Protection in C Programs Stephen Röttger (Aug 21)
- Re: PoC: Function Pointer Protection in C Programs Hannes Frederic Sowa (Aug 21)
- Re: PoC: Function Pointer Protection in C Programs Stephen Röttger (Aug 22)
- <Possible follow-ups>
- Re: PoC: Function Pointer Protection in C Programs Alessandro Cresto Miseroglio (Aug 21)
- Re: PoC: Function Pointer Protection in C Programs Stephen Röttger (Aug 21)
- Re: PoC: Function Pointer Protection in C Programs Alessandro Cresto Miseroglio (Aug 21)
- Re: PoC: Function Pointer Protection in C Programs Stephen Röttger (Aug 21)