Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming > #4716

Re: Research to Create Automated Buffer Overflow Protection

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From Melzzzzz <mel@zzzzz.invalid>
Newsgroups comp.programming
Subject Re: Research to Create Automated Buffer Overflow Protection
Date Tue, 26 Aug 2014 20:16:34 +0200
Organization None
Lines 54
Message-ID <ltiiu2$duo$10@solani.org> (permalink)
References <db154f8e-0682-46ec-97e0-14b371aa984e@googlegroups.com> <zpww562p925g.1objvtox5oy3s$.dlg@40tude.net> <4i3Lv.231350$m41.167051@fx34.am4>
Mime-Version 1.0
Content-Type text/plain; charset=US-ASCII
Content-Transfer-Encoding 7bit
X-Trace solani.org 1409076994 14296 eJwFwQkBwDAIA0BL40kKcqAF/xJ2B6PwHifoWKy9VlRHU1pFNzT5hQUHlzYUmy5/J3c9kvUDFKsQ3w== (26 Aug 2014 18:16:34 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Tue, 26 Aug 2014 18:16:34 +0000 (UTC)
X-User-ID eJwFwYEBwCAIA7CX6ICC59Qp/59gkk7wr2AycnKUU+OzVClvYFOrqCHsiBsWbNzDi0+ItgcfNRDI
X-Newsreader Claws Mail 3.10.1 (GTK+ 2.24.23; x86_64-pc-linux-gnu)
Cancel-Lock sha1:sgf8N+GmmXzAzQMDhWpAfKYJHwo=
X-NNTP-Posting-Host eJwNxcEBwEAEBMCWHHZJOUj0X8JlPgPj4YQTdCz2idb9r44cSpopksdqV2NAkfAx2/reTrAuGV0RCg==
Xref csiph.com comp.programming:4716

Show key headers only | View raw


On Tue, 26 Aug 2014 18:16:47 +0100
Richard Heathfield <invalid@see.sig.invalid> wrote:

> 
> If you add bounds-checking to C (which is what we're talking about,
> really), (a) you discover eventually that people have already done
> it, and (b) bounds-checking imposes a performance penalty that at
> least some people are not prepared to tolerate.

For example take scimark2 in "go" language:
with bounds checking
 bmaxa@maxa:~/examples/go/src/github.com/bmaxa/sci$ go build -o scimark2
bmaxa@maxa:~/examples/go/src/github.com/bmaxa/sci$ time ./scimark2
**                                                              **
** SciMark2 Numeric Benchmark, see http://math.nist.gov/scimark **
** for details. (Results can be submitted to pozo@nist.gov)     **
**                                                              **
Using       2.00 seconds min time per kernel.
Composite Score:         1060.91
FFT             Mflops:   933.39    (N=1024)
SOR             Mflops:  1235.80    (100 x 100)
MonteCarlo:     Mflops:   179.01
Sparse matmult  Mflops:  1485.93    (N=1000, nz=5000)
LU              Mflops:  1470.43    (M=100, N=100)

real	0m34.279s
user	0m34.232s
sys	0m0.055s
without:
bmaxa@maxa:~/examples/go/src/github.com/bmaxa/sci$ go build -o scimark2 -gcflags -B
bmaxa@maxa:~/examples/go/src/github.com/bmaxa/sci$ time ./scimark2
**                                                              **
** SciMark2 Numeric Benchmark, see http://math.nist.gov/scimark **
** for details. (Results can be submitted to pozo@nist.gov)     **
**                                                              **
Using       2.00 seconds min time per kernel.
Composite Score:         1231.16
FFT             Mflops:  1177.07    (N=1024)
SOR             Mflops:  1258.24    (100 x 100)
MonteCarlo:     Mflops:   168.89
Sparse matmult  Mflops:  1702.12    (N=1000, nz=5000)
LU              Mflops:  1849.46    (M=100, N=100)

real	0m30.569s
user	0m30.531s
sys	0m0.046s

It is 20% faster without bounds checking !



-- 
Click OK to continue...

Back to comp.programming | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Research to Create Automated Buffer Overflow Protection Heidi Brayer <hap1026@gmail.com> - 2014-08-26 09:11 -0700
  Re: Research to Create Automated Buffer Overflow Protection "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2014-08-26 18:54 +0200
    Re: Research to Create Automated Buffer Overflow Protection Richard Heathfield <invalid@see.sig.invalid> - 2014-08-26 18:16 +0100
      Re: Research to Create Automated Buffer Overflow Protection "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2014-08-26 19:35 +0200
        Re: Research to Create Automated Buffer Overflow Protection Richard Heathfield <invalid@see.sig.invalid> - 2014-08-26 18:59 +0100
          Re: Research to Create Automated Buffer Overflow Protection "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2014-08-26 21:26 +0200
            Re: Research to Create Automated Buffer Overflow Protection Richard Heathfield <invalid@see.sig.invalid> - 2014-08-26 20:33 +0100
              Re: Research to Create Automated Buffer Overflow Protection "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2014-08-26 21:50 +0200
                Re: Research to Create Automated Buffer Overflow Protection Richard Heathfield <invalid@see.sig.invalid> - 2014-08-26 21:41 +0100
                Re: Research to Create Automated Buffer Overflow Protection "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2014-08-27 10:21 +0200
                Re: Research to Create Automated Buffer Overflow Protection "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> - 2014-08-27 10:27 +0100
                Re: Research to Create Automated Buffer Overflow Protection "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2014-08-27 11:51 +0200
        Re: Research to Create Automated Buffer Overflow Protection Melzzzzz <mel@zzzzz.invalid> - 2014-08-26 20:39 +0200
          Re: Research to Create Automated Buffer Overflow Protection "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> - 2014-08-26 20:13 +0100
          Re: Research to Create Automated Buffer Overflow Protection "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2014-08-26 21:38 +0200
            Re: Research to Create Automated Buffer Overflow Protection Melzzzzz <mel@zzzzz.com> - 2014-08-26 23:11 +0200
              Re: Research to Create Automated Buffer Overflow Protection "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2014-08-27 09:50 +0200
                Re: Research to Create Automated Buffer Overflow Protection "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> - 2014-08-27 10:16 +0100
                Re: Research to Create Automated Buffer Overflow Protection "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2014-08-27 12:15 +0200
                Re: Research to Create Automated Buffer Overflow Protection Richard Heathfield <invalid@see.sig.invalid> - 2014-08-27 14:40 +0100
            Re: Research to Create Automated Buffer Overflow Protection "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> - 2014-08-27 10:13 +0100
              Re: Research to Create Automated Buffer Overflow Protection "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2014-08-27 14:06 +0200
            Re: Research to Create Automated Buffer Overflow Protection "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> - 2014-08-27 10:32 +0100
              Re: Research to Create Automated Buffer Overflow Protection "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2014-08-27 12:14 +0200
        Re: Research to Create Automated Buffer Overflow Protection "Chris M. Thomasson" <no@spam.invalid> - 2014-08-26 14:06 -0700
      Re: Research to Create Automated Buffer Overflow Protection Melzzzzz <mel@zzzzz.invalid> - 2014-08-26 20:16 +0200
        Re: Research to Create Automated Buffer Overflow Protection Öö Tiib <ootiib@hot.ee> - 2014-08-30 09:20 -0700
  Re: Research to Create Automated Buffer Overflow Protection Jongware <jongware@no-spam.plz> - 2014-09-15 10:47 +0200
    Re: Research to Create Automated Buffer Overflow Protection Richard Heathfield <invalid@see.sig.invalid> - 2014-09-15 10:46 +0100

csiph-web