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-08 23:27:17 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sjc-peer.news.verio.net!news.verio.net!ord-read.news.verio.net.POSTED!not-for-mail Newsgroups: comp.os.vms,alt.sys.pdp10,comp.sys.dec Subject: Re: Buffer Overflows - again Was: (Re: Congratulations for the References: <3roT7.207043$tf5.13617499@bin5.nnrp.aus1.giganews.com> <3C369287.6080901@tsoft-inc.com> Organization: Not Much X-Newsreader: trn 4.0-test69 (20 September 1998) From: bonomi@c-ns. (Robert Bonomi) Message-ID: Date: Wed, 09 Jan 2002 07:27:11 GMT NNTP-Posting-Host: 207.241.52.60 X-Complaints-To: abuse@verio.net X-Trace: ord-read.news.verio.net 1010561231 207.241.52.60 (Wed, 09 Jan 2002 07:27:11 GMT) NNTP-Posting-Date: Wed, 09 Jan 2002 07:27:11 GMT Xref: archiver1.google.com comp.os.vms:59299 alt.sys.pdp10:9328 comp.sys.dec:11251 In article , Bob Koehler wrote: >In article , Tim Shoppa > writes: >> In article , koehler@encompasserve.org >>> >>> Interrupts are delivered "between" instructions, not during one. >>> >> >> ??? On what architecture? > > Uncle. OK, I short changed that one a bit. I know MOVCx, POLYx, and > others on VAX are interruptable, but we were really talking about a > simple ADD. Do you know of any processor that has an interruptable > integer ADD? > on systems like MVS, and successors, ADD could be interrupted as many as three times, in some pathological cases. to wit: the instruction spans a page boundary. the 2nd page is -not- in memory. page-fault to fetch the new page, restart instruction. Now, the add in question uses a memory-indirect operand, not straight register-register. so, we add: Memory operand (address) is on a page not in mempry. page-fault, restart. indirect operand (value) is not in memory. page-fault. restart. Three interrupts on a single ADD. (It could have been worse, if 'non-aligned' operands are allowed, the memory operand, and indirect operand could have spanned pages, and required _two_ page-fault interrupts *each* to resolve) On a system like DataGeneral AOS/VS, indirect addresses could be 'chained'. where the target address contained a bit indicating whether -it- was a direct address, or an indirect pointer to 'somewhere else'. limit was something like 15, or 31 levels of indirection , IIRC. In a VM environment, Every memory reference (instruction -or- data) is a potential interrupt source. Every allowed level of indirect addressing is a potential *additional* interrupt source. Every instruction _or_ operand (direct, or indirect) that can span a page boundary is _yet_another_ potential interrupt source.