🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #590

Re: A Fatal Concertina Flaw?

#590
From: John Savard
Date: Sun, 08 Nov 2026 18:13
63 lines
3966 bytes
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.

>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?

>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.

>   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.

It's _almost_ as bad, since, of course, the interpreter can impose
additional limits that the hardware instruction set does not impose.

>   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: <6af0b9a6.16362578@news.eternal-september.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!.POSTED!not-for-mail
References: <6af0853c.2944265@news.eternal-september.org> <11cq61r$3gjce$1@paganini.bofh.team>

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!.POSTED!not-for-mail
From: quadibloc@invalid.com (John Savard)
Newsgroups: comp.arch
Subject: Re: A Fatal Concertina Flaw?
Date: Sun, 08 Nov 2026 18:13:48 GMT
Organization: A noiseless patient Spider
Lines: 63
Message-ID: <6af0b9a6.16362578@news.eternal-september.org>
References: <6af0853c.2944265@news.eternal-september.org> <11cq61r$3gjce$1@paganini.bofh.team>
Injection-Date: Sun, 08 Nov 2026 18:13:46 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="626127"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18AOoAvNS6dFF3jYofrSxQ0VEBz3fpeHwk="; posting-host="233e17826806c179f69a80031f04fab3"
Cancel-Lock: sha1:VVkN18coPnUwfcgkgXJgSJUv5Ec= sha256:Devg6DaTX0LPr1QPT2agi8YhJyTYVvkNi6e6knQTQlw=
	sha1:q+ay3J+d5sdghyVBVw7PIbktYYg= sha256:Ev/NcIUQUKpeOLshBFRMGMobiCk9spCRhrD9sfbcjtA=
X-Newsreader: Forte Free Agent 1.1/32.230