Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: Johnny Billquist <bqt@softjar.se>
Subject: Re: KDA-50 on eBay
Date: Sun, 03 Jul 2011 21:40:43 +0200	[thread overview]
Message-ID: <iuqgjr$jfm$1@Iltempo.Update.UU.SE> (raw)
In-Reply-To: <4e10b240$0$314$14726298@news.sunsite.dk>

On 2011-07-03 20:19, Jerome H. Fine wrote:
>  >Johnny Billquist wrote:
>
>> >On 2011-07-03 13:47, Jerome H. Fine wrote:
>>
>>> I presume that RSX-11 has the same operational aspects and
>>> that almost all user programs run with the PSW set to 17xxxx.
>>> Can you pleases confirm this assumption? Under RSX-11,
>>> are there any situations or circumstances when a user program
>>> might be allowed to and would wish to run with the PSW set
>>> to 14xxxx? Would that be allowed just for a limited number
>>> of instructions or might it be done for a number of minutes?
>>> Obviously, the MTPI instruction would give the user total
>>> control over the hardware via direct access to all memory
>>> and IOPAGE registers.
>>
>> Your presumption is correct. Never, under no circumstances ever, are a
>> user program running with the PSW set to anything but 17xxxx. The same
>> is true in RSTS/E. I cann tell that without even looking.
>> You can never allow it to be anything else in any multiuser,
>> timesharing system, and ever hope to live.
>> So, the same is also true for Unix on a PDP-11, in case you wonder.
>>
>> Sure there could be reasons a program would *want* to do that, but
>> they are all bad, and threaten the integrity of the operating system.
>
> I know that under TSX-Plus, programs with MEMMAP level
> of security have access to the IOPAGE registers, so even though
> it is equally certain that the PSW is set at 17xxxx, as long as PAR7
> is able to access the IOPAGE registers directly, that program has
> complete control of all of the hardware. However, based on your
> answer, it seems likely that RSX-11 never allows direct access to
> the IOPAGE registers. Is my assumption correct?

Correct. You can, as a system administrator, create a common region 
which happens to be the I7O page, and then user programs could map that 
in, with the normal system calls, into their address space. But the 
sysadm who do this, is asking for his system to crash.

By the way, all my answers are only valid for mapped RSX systems. 
Unmapped systems runs without any MMU, and then the I/O page is 
accessible (obviously), so that is an entirely different ballgame.

> As for running with the PSW set to 14xxxx, I am fairly confident that
> the only instructions which can alter KERNAL memory are MTPI
> and MTPD. If a user program does not use either of these two
> instructions, then the operating system should be equally secure
> with the PSW set to either 17xxxx or 14xxxx. Just to be sure,
> can you please confirm my assumption?

Well, you also have the MFPx instructions, which means you can 
potentially read data which you should not be allowed to...

Also, I hope you are aware that any RTI or RTT is going to reset the PSW 
to 17xxxx as well.

> The reason that I am suggesting that there might be a valid
> reason for the PSW to be 14xxxx is specifically under E11
> when the user is provided access to the actual PC memory
> via the EMEM.DLL program. I have used it under RT-11
> to support using up to 1.2 GB of the PC's memory rather
> than using emulated PDP-11 memory via the VIRTUAL
> statement in FORTRAN.

What I would do is to create a device driver to control access to such a 
thing.

> In that regard, does RSX-11 FORTRAN support the
> VIRTUAL statement and is the implementation via an
> EMT request or the modification of the PAR registers
> as is done under RT-11?

As I've said any number of times now, no program under RSX can modify 
the PAR/PDR registers themself. It is all under control of the kernel.
Even if you had access to the I/O page under RSX (which you don't), any 
modifications you would do to the PAR/PDR registers will disappear again 
within moments, as RSX loads the values into these registers from it's 
own concept of your memory mappings at every context switch. So, it does 
not even preserve what you might have written there yourself, if you 
were to try that.

So yes, assuming you had a virtual statement in FORTRAN, which mapped to 
memory, it would have do to that mapping through system calls. Now, I 
don't remember totally for sure, but I seem to remember that VIRTUAL 
under FORTRAN (alteast under RSX) only could map to a file, and not 
memory, so that would make this whole question purely theoretical as 
well, but I can check if it can do virtual arrays in memory later.

	Johnny

-- 
Johnny Billquist                  || "I'm on a bus
                                   ||  on a psychedelic trip
email: bqt@softjar.se             ||  Reading murder books
pdp is alive!                     ||  tryin' to stay hip" - B. Idol


  reply	other threads:[~2011-07-03 19:40 UTC|newest]

Thread overview: 85+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-19 20:48 KDA-50 on eBay Bill Gunshannon
2011-06-20 18:48 ` Fritz Wuehler
2011-06-28 12:12   ` Bill Gunshannon
2011-06-28 17:28     ` glen herrmannsfeldt
2011-06-29 15:29       ` Rob Brown
2011-06-28 21:01     ` Dave Wade
2011-06-29 13:10       ` Bill Gunshannon
2011-06-28 21:56     ` Nomen Nescio
2011-06-28 22:27       ` Scott Dorsey
2011-06-29 13:30         ` Bill Gunshannon
2011-06-29 13:49           ` Scott Dorsey
2011-06-29 14:45             ` Bill Gunshannon
2011-06-29 13:23       ` Bill Gunshannon
2011-06-29  1:35     ` Jerome H. Fine
2011-06-29  1:58       ` Johnny Billquist
2011-07-01  0:32         ` Jerome H. Fine
2011-07-01  5:57           ` Johnny Billquist
2011-07-02  1:18             ` Jerome H. Fine
2011-07-01 23:49               ` Johnny Billquist
2011-07-01 23:56                 ` glen herrmannsfeldt
2011-07-02  0:01                   ` Johnny Billquist
2011-07-03 11:47                     ` Jerome H. Fine
2011-07-03 16:23                       ` Johnny Billquist
2011-07-03 16:28                         ` Scott Dorsey
2011-07-03 16:35                           ` Johnny Billquist
2011-07-03 18:19                         ` Jerome H. Fine
2011-07-03 19:40                           ` Johnny Billquist [this message]
2011-07-04  0:19                             ` Jerome H. Fine
2011-07-04  9:54                               ` Johnny Billquist
2011-07-04 12:03                                 ` Jerome H. Fine
2011-07-04 13:44                                   ` Johnny Billquist
2011-07-04 18:21                                     ` ChrisQ
2011-07-04 22:20                                       ` Johnny Billquist
2011-07-08 22:04                                         ` ChrisQ
2011-07-08 23:21                                           ` Johnny Billquist
2011-07-10 10:49                                           ` Jerome H. Fine
2011-07-04 20:37                                     ` Jerome H. Fine
2011-07-04 22:06                                       ` Johnny Billquist
2011-07-02  2:10                   ` Jerome H. Fine
2011-07-05 13:20                 ` Bob Koehler
2011-07-05 13:34                   ` Johnny Billquist
2011-07-05 14:12                     ` paramucho
2011-07-05 17:33                     ` Bob Koehler
2011-07-05 23:13                       ` Johnny Billquist
2011-07-06 16:09                         ` Rob Brown
2011-07-06 17:01                           ` Johnny Billquist
2011-07-06 17:52                             ` Johnny Billquist
2011-07-06 18:13                             ` Rob Brown
2011-07-07  3:03                           ` paramucho
2011-07-07  3:19                             ` paramucho
2011-07-07  5:11                               ` paramucho
2011-07-07 22:27                             ` Johnny Billquist
2011-07-08  9:57                               ` Hans Vlems
2011-07-08 12:16                                 ` Jerome H. Fine
2011-07-08 19:40                                 ` Jerome H. Fine
2011-07-06 13:56                       ` Bob Koehler
2011-07-06 16:41                         ` Johnny Billquist
2011-07-06 11:38                   ` John Wallace
2011-07-06 13:59                     ` Bob Koehler
2011-07-01 23:54               ` glen herrmannsfeldt
2011-06-29  2:07     ` Johnny Billquist
2011-06-29 13:40       ` Bill Gunshannon
2011-06-29 21:11         ` Johnny Billquist
2011-06-30 13:19           ` Bill Gunshannon
2011-07-01  0:21             ` Jerome H. Fine
2011-07-01 18:56             ` jjh
2011-07-01  6:45       ` Hans Vlems
2011-06-30 17:58     ` Rob Doyle
2011-07-01 17:55       ` Tom Lake
2011-07-01 23:04         ` glen herrmannsfeldt
2011-07-02 13:34         ` Thomas Laus
2011-07-02 14:30           ` Bill Gunshannon
2011-07-02 14:56             ` Tom Lake
2011-07-02 21:44             ` Nomen Nescio
2011-07-03 15:45               ` David Riley
2011-07-07  7:29 ` glen herrmannsfeldt
2011-07-12 13:01 ` Free Stuff Was: " Bill Gunshannon
2011-07-12 18:08   ` Bill Gunshannon
2011-07-12 21:11     ` Jerome H. Fine
2011-07-12 21:53     ` Nomen Nescio
  -- strict thread matches above, loose matches on Subject: below --
2011-06-29 13:52 Dale R Worley
2011-06-29 15:06 ` Bill Gunshannon
2011-06-29 15:09   ` Scott Dorsey
2011-06-29 15:22     ` Bill Gunshannon
2011-06-30 15:36 Dale R Worley
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox