From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fdb0e,cdca3dc8d6167cd4 X-Google-Attributes: gidfdb0e,public X-Google-Thread: 1164f8,cdca3dc8d6167cd4 X-Google-Attributes: gid1164f8,public X-Google-Thread: f7344,a808e23c428d1184 X-Google-Attributes: gidf7344,public X-Google-ArrivalTime: 2002-01-07 07:46:24 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-proxy.baileynm.com!citadel.in.taronga.com!not-for-mail From: peter@taronga.com (Peter da Silva) Newsgroups: comp.os.vms,alt.sys.pdp10,comp.sys.dec Subject: Re: Buffer Overflows - again Was: (Re: Congratulations for the Date: 7 Jan 2002 15:34:26 GMT Organization: TSS Inc. Message-ID: References: <3roT7.207043$tf5.13617499@bin5.nnrp.aus1.giganews.com> <3C369287.6080901@tsoft-inc.com> NNTP-Posting-Host: citadel.in.taronga.com X-Trace: citadel.in.taronga.com 1010417666 97318 10.0.0.43 (7 Jan 2002 15:34:26 GMT) X-Complaints-To: usenet@taronga.com NNTP-Posting-Date: 7 Jan 2002 15:34:26 GMT X-Newsreader: trn 4.0-test72 (19 April 1999) Xref: archiver1.google.com comp.os.vms:58755 alt.sys.pdp10:9198 comp.sys.dec:11107 In article , Bob Koehler wrote: >In article <3C369287.6080901@tsoft-inc.com>, David Froble > writes: >> Actually, I'm not a HW person, and aren't really sure that an in-process >> instruction can be interupted. However, there can be things delaying >> the next add instruction. > Interrupts are delivered "between" instructions, not during one. That is implementation dependent. Often (particularly in CISC processors or systems with long pipelines) an interrupt may occur while an instruction is in flight. On a system with virtual memory and memory-memory operations like the 68000 or VAX this may actually be common. There are various mechanisms for dealing with it: 1. Dump information about the current internal state on the stack, restore it and resume the instruction later. 2. Back out the instruction and undo any side effects, then start it over after the interrupt is handled. 3. Defer the interrupt until the instruction is complete (this is obviously not an option for VM page faults :->). 4. Abort the instruction, and let software fix things up and resume the instruction or emulate it and continue afterwards. 5. Provide a secondary processor to handle interrupts (One company, I think it was Altos, did this to get demand paging on a 68000: they ran two CPUs in lockstep and had the "trailing" CPU take over and handle page faults. -- Rev. Peter da Silva, ULC. WWFD? "Be conservative in what you generate, and liberal in what you accept" -- Matthew 10:16 (l.trans)