Re: Any way to set the PKM in "open code".

2019-06-11 Thread Charles Mills
Right. A wild branch could do anything, but I think the damage from key 0 is more likely than that you happen to hit some privileged instruction. I think you misunderstood my two bullets. The first was the potential damage from supervisor state. The second was potential damage from key 0. Much

Re: Any way to set the PKM in "open code".

2019-06-11 Thread Michael Stein
On Fri, Jun 07, 2019 at 08:57:38AM -0500, John McKown wrote: > I am not finding this. I want to change the PKM for my running, APF > authorized, program to include key 0. Why? So that I can switch in and out > of key 0 using an SPKA instruction rather than MODESET. But mainly so that > I can use

Re: Any way to set the PKM in "open code".

2019-06-11 Thread Binyamin Dissen
On Mon, 10 Jun 2019 13:57:12 -0700 Charles Mills wrote: :>> Key0 is much much more dangerous than supervisor state (IMHO) :>Interesting. I never thought of that, but I agree. Which is the more likely :>error? :>- You accidentally code some privileged instruction that you did not intend?

Re: Any way to set the PKM in "open code".

2019-06-10 Thread Charles Mills
> Key0 is much much more dangerous than supervisor state (IMHO) Interesting. I never thought of that, but I agree. Which is the more likely error? - You accidentally code some privileged instruction that you did not intend? - You code the wrong register number in an instruction, or destroy or

Re: Any way to set the PKM in "open code".

2019-06-10 Thread John McKown
On Mon, Jun 10, 2019 at 10:48 AM Ed Jaffe wrote: > On 6/10/2019 8:37 AM, Binyamin Dissen wrote: > > On Mon, 10 Jun 2019 08:13:23 -0700 Ed Jaffe > > > wrote: > > > > :>On 6/9/2019 11:47 PM, Binyamin Dissen wrote: > > :>> Well, to do that he could encapsulate this code in a PC-CP with an >

Re: Any way to set the PKM in "open code".

2019-06-10 Thread Ed Jaffe
On 6/10/2019 8:37 AM, Binyamin Dissen wrote: On Mon, 10 Jun 2019 08:13:23 -0700 Ed Jaffe wrote: :>On 6/9/2019 11:47 PM, Binyamin Dissen wrote: :>> Well, to do that he could encapsulate this code in a PC-CP with an altered :>> AKM. :>Altered in what way? ETDEF EKM= Haha! That part is

Re: Any way to set the PKM in "open code".

2019-06-10 Thread Binyamin Dissen
On Mon, 10 Jun 2019 08:13:23 -0700 Ed Jaffe wrote: :>On 6/9/2019 11:47 PM, Binyamin Dissen wrote: :>> Well, to do that he could encapsulate this code in a PC-CP with an altered :>> AKM. :>Altered in what way? ETDEF EKM= -- Binyamin Dissen http://www.dissensoftware.com Director, Dissen

Re: Any way to set the PKM in "open code".

2019-06-10 Thread Ed Jaffe
On 6/9/2019 11:47 PM, Binyamin Dissen wrote: Well, to do that he could encapsulate this code in a PC-CP with an altered AKM. Altered in what way? -- Phoenix Software International Edward E. Jaffe 831 Parkview Drive North El Segundo, CA 90245 https://www.phoenixsoftware.com/

Re: Any way to set the PKM in "open code".

2019-06-10 Thread Binyamin Dissen
On Mon, 10 Jun 2019 08:23:46 -0400 Peter Relson wrote: :>Yes there's a way -- creating a PC routine that accomplishes doing so. :>Nothing else is acceptable, although the literal answer would be "LCTL". Will be reset after an interrupt. (At least that was an issue in the past) -- Binyamin

Re: Any way to set the PKM in "open code".

2019-06-10 Thread John McKown
On Mon, Jun 10, 2019 at 7:24 AM Peter Relson wrote: > Yes there's a way -- creating a PC routine that accomplishes doing so. > Nothing else is acceptable, although the literal answer would be "LCTL". > Thanks. I was hoping for a z/OS API. The closest I could find to subvert is SYNCHX to set the

Re: Any way to set the PKM in "open code".

2019-06-10 Thread Peter Relson
Yes there's a way -- creating a PC routine that accomplishes doing so. Nothing else is acceptable, although the literal answer would be "LCTL". Peter Relson z/OS Core Technology Design -- For IBM-MAIN subscribe / signoff /

Re: Any way to set the PKM in "open code".

2019-06-10 Thread Binyamin Dissen
On Sun, 9 Jun 2019 20:15:40 -0400 Rob Schramm wrote: :>I suspect John's answer will be :>1) because it's cool to try new things Well, to do that he could encapsulate this code in a PC-CP with an altered AKM. :>2) because I want to limit the destruction if it goes wrong. Key0 is much much

Re: Any way to set the PKM in "open code".

2019-06-09 Thread Rob Schramm
I suspect John's answer will be 1) because it's cool to try new things 2) because I want to limit the destruction if it goes wrong. Waiting for the real answer, Rob On Sun, Jun 9, 2019, 6:22 PM Binyamin Dissen wrote: > On Fri, 7 Jun 2019 08:57:38 -0500 John McKown < >

Re: Any way to set the PKM in "open code".

2019-06-09 Thread Binyamin Dissen
On Fri, 7 Jun 2019 08:57:38 -0500 John McKown wrote: :>I am not finding this. I want to change the PKM for my running, APF :>authorized, program to include key 0. Why? So that I can switch in and out :>of key 0 using an SPKA instruction rather than MODESET. But mainly so that :>I can use the

Any way to set the PKM in "open code".

2019-06-07 Thread John McKown
I am not finding this. I want to change the PKM for my running, APF authorized, program to include key 0. Why? So that I can switch in and out of key 0 using an SPKA instruction rather than MODESET. But mainly so that I can use the MVCSK and MVCDK instructions to read & update key 0, fetch