Article View: comp.arch
Article #589Re: A Fatal Concertina Flaw?
From: Waldek Hebisch
Date: Sun, 08 Nov 2026 15:55
Date: Sun, 08 Nov 2026 15:55
51 lines
3742 bytes
3742 bytes
John Savard <quadibloc@invalid.com> wrote:
> I have been modelling the Concertina II architecture, and related
> ones, on that of the IBM System/360 in a number of ways.
> A recent thread discussing register windows led me to think of
> subroutine calling conventions. Which register windows would perhaps
> complicate.
> When a subroutine is called on the IBM System/360, it usually starts
> out by creating one base register value for itself by means of the
> BALR instruction. That's basically a subroutine call that doesn't go
> anywhere.
> Except for the one register that value is put in, exempted by the
> calling convention rules, the other general registers can then be
> saved in an area of data storage area located immediately after the
> program code, pointed to with the aid of the base register value set
> up which points just after the start of the program.
> But modern microprocessors, because of the increased danger from
> viruses and hackers, fix things so that the processor is allowed to
> execute instructions only from memory labelled one way - and to write
> data in memory labelled another way. And never the twain does meet -
> except with a call to the operating system being made between when the
> loader loads a program from disk into memory, and the program is
> started.
> So this IBM-style calling convention that I've built the architecture
> around is now obsolete! Save areas have to be passed to subroutines!
I wonder if you know:
1) Successors to 360 have PC-relative addressing, so using BALR to
capture PC usually is not needed.
2) Save areas are normally allocated on the stack
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).
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. 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.
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.
--
Waldek Hebisch
Technical Details
Message-ID:
<11cq61r$3gjce$1@paganini.bofh.team>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!newsfeed.bofh.team!paganini.bofh.team!not-for-mailReferences:
<6af0853c.2944265@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!newsfeed.bofh.team!paganini.bofh.team!not-for-mail
From: antispam@fricas.org (Waldek Hebisch)
Newsgroups: comp.arch
Subject: Re: A Fatal Concertina Flaw?
Date: Sun, 8 Nov 2026 15:55:42 -0000 (UTC)
Organization: bofh.team Usenet service
Message-ID: <11cq61r$3gjce$1@paganini.bofh.team>
References: <6af0853c.2944265@news.eternal-september.org>
Injection-Date: Sun, 8 Nov 2026 15:55:42 -0000 (UTC)
Injection-Info: paganini.bofh.team; logging-data="3689870"; mail-complaints-to="usenet@bofh.team"; posting-host="d028f9ad2fa2c51f22dbfed0d81d7daf"; posting-account="69e66f1681224ab92235b464ce7a90b6"
User-Agent: tin/2.6.2-20221225 ("Pittyvaich") (Linux/6.1.0-9-amd64 (x86_64))
X-Postfilter: Postfilter-NG 2026.10.2