Article View: comp.arch
Article #593Re: A Fatal Concertina Flaw?
From: MitchAlsup
Date: Sun, 08 Nov 2026 18:30
Date: Sun, 08 Nov 2026 18:30
78 lines
4396 bytes
4396 bytes
quadibloc@invalid.com (John Savard) posted: > On Sun, 8 Nov 2026 15:55:42 -0000 (UTC), antispam@fricas.org (Waldek > Hebisch) wrote: > > >I wonder if you know: > >1) Successors to 360 have PC-relative addressing, so using BALR to > > capture PC usually is not needed. > > Concertina II has PC-relative addressing, but it still also uses base > registers for most addressing. A subroutine call with a base-relative > destination address can be used in place of a BALR instruction to > capture an address value. > > >2) Save areas are normally allocated on the stack > > I know that's how most PCs work. The 360 did not have a stack at all > in the old days. Of course, a stack can be implemented even without an > explicit stack pointer. And I presumed this was what the successors to > the 360 might do; define one register as the one in which a pointer to > the save area is passed. PL/1 (and PL/C and ALGOL) certainly had stack based local data areas. COBOL and FORTRAN of the era when S/360 came out were non-re-entrant. > >3) If for some reason you want save area in fixed place you can > > load its address to register. Save area does not have to be very > > close to the code (but if it is far away then you need to provide > > more bits in the instruction). > > Huh? Can't I just use a different base register if they're far away? He wants the save area in a page not marked "execute". > >4) While security folks insist on separate code and data areas, > > there is still a lot of code that mixes them. And arguably, > > if language checks memory accesses, then separtation does not > > provide extra security. > > That argument is fallacious, since a software barrier has the obvious > potential of being bypassed if a way to sneak in machine code can be > found. Which is why I want my JITs in a different process than the one executing JITed code. > > To explain this a bit more: popular > > alternative to dynamically generated code is use of function > > pointers or intrpretive execution. But of course, overwriting > > interpretive code is as bad as overwriting native code. Self-modifying code is bad wherever it rears its head. > It's _almost_ as bad, since, of course, the interpreter can impose > additional limits that the hardware instruction set does not impose. Return Oriented Programming Attacks can be prevented by not allowing LDs to read the code space <so they cant find the desired RET> > > Similarly, overwriting function pointers allows executing > > arbitrary existing code and programs frequently have enough > > capabilities that the word "existing" is not a serious > > limitation to determined attacker. > > AFAICS biggest trouble is due to caches: writes go to data cache, > > code is fetched from instruction cache and at least L1 caches > > are separate. So there is synchronization overhead, but that > > should be managable. > > Machines that separate code and data are still perfectly able to use > techniques like just-in-time compilation; the same technique is used > as is needed for such a simple thing as loading a program from the > disk. Make an OS call to flip the usage of the memory area involved. > > Separating code and data is an obstacle to naively coding the way > people used to on a 360; I wasn't claiming that it was a crippling > obstacle to such a commonly used technique. > > John Savard
Technical Details
Message-ID:
<1794162625-5857@newsgrouper.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!newsgrouper.org!.POSTED!not-for-mailReferences:
<6af0853c.2944265@news.eternal-september.org> <11cq61r$3gjce$1@paganini.bofh.team> <6af0b9a6.16362578@news.eternal-september.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!newsgrouper.org!.POSTED!not-for-mail From: MitchAlsup <user5857@newsgrouper.org.invalid> Newsgroups: comp.arch Subject: Re: A Fatal Concertina Flaw? References: <6af0853c.2944265@news.eternal-september.org> <11cq61r$3gjce$1@paganini.bofh.team> <6af0b9a6.16362578@news.eternal-september.org> Date: Sun, 08 Nov 2026 18:30:25 GMT Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-ID: <1794162625-5857@newsgrouper.org> Injection-Info: newsgrouper.org; mail-complaints-to="newsgrouper@yahoo.com"; posting-account=user5857 Injection-Date: Sun, 08 Nov 2026 18:30:25 GMT User-Agent: Newsgrouper/0.9.0