Re: How to develop a random number generation device



On Sat, 15 Sep 2007 04:43:40 +0100, Nobody wrote:

On Fri, 14 Sep 2007 17:33:28 +0000, Rich Grise wrote:

That doesn't address the issue, which was whether the OS can
prevent buffer overruns.

With a hardware MMU, and software that can catch the exception, yes.

That still doesn't address the question of how you decide that a write
operation has overrun its buffer; the details of where one buffer starts
and another ends are unknown to the OS.


But it knows what chunks of memory it has allocated to a particular
process. As long as it's in your own memory space, who cares if you
overwrite/overrun your own buffers?


You might be able to catch specific cases (e.g. overwriting a return
address), if you're willing to take a massive performance hit (i.e. a
context switch on all writes to the stack). Even then, that isn't the only
type of buffer overrun which can be exploited.

That's that sort of catchall "software that can catch the exception" part
of my answer. :-)

Cheers!
Rich

.



Relevant Pages

  • Re: Buffer over-run vulnerabilities
    ... More commonly (via stack buffer overruns) the inserted "data" contains ... execute is tricky and specific to each exploit, ...
    (comp.os.linux)
  • Re: New Microsoft Bug Problems Blamed On Globalization
    ... Buffer overruns ... >]space you actually need and ensuring that you allocate that much. ... The former method will duplicate the string no matter how long it is, ... Both avoid buffer overruns (barring any stupid mistakes I've made in typing ...
    (comp.security.misc)
  • Re: How to develop a random number generation device
    ... question of whether the OS can prevent buffer overruns. ... to write safe code" or "a real OS is required to make safe code possible". ... I'm not talking about process isolation. ...
    (sci.electronics.design)
  • Re: Buffer Overflow/Overrun
    ... >I agree buffer overruns can be caused by miscounting, ... >say that predefining a buffer to a particular size and then relying on the ... You are not allowed to access data outside the array. ...
    (alt.comp.lang.learn.c-cpp)
  • Re: How to develop a random number generation device
    ... question of whether the OS can prevent buffer overruns. ... to write safe code" or "a real OS is required to make safe code possible". ... I'm not talking about process isolation. ...
    (sci.electronics.design)