Re: APF authorization and AC(00)

2017-06-12 Thread CM Poncelet
A REFR program's page can be stolen (without having to save it first) by the RSM if it has a higher UIC than other pages. If it then hits a page fault, the ASM reloads the missing page from the paging dataset so the program can continue executing. AFAIK It reloads only stolen pages, not the whole m

Re: APF authorization and AC(00)

2017-06-12 Thread Paul Gilmartin
On Mon, 12 Jun 2017 13:53:23 -0400, Tony Harminc wrote: > >> Name-token services does something related. I understand it performs >> no costly locking during searches, but tests a flag after a search to >> detect that the data structure has been modified in-progress, and >> re-drive the search, wi

Re: APF authorization and AC(00)

2017-06-12 Thread Tony Harminc
On 12 June 2017 at 12:35, Paul Gilmartin < 000433f07816-dmarc-requ...@listserv.ua.edu> wrote: > Name-token services does something related. I understand it performs > no costly locking during searches, but tests a flag after a search to > detect that the data structure has been modified in-pr

Re: APF authorization and AC(00)

2017-06-12 Thread Paul Gilmartin
On Mon, 12 Jun 2017 09:44:02 +0300, Binyamin Dissen wrote: >On Mon, 12 Jun 2017 00:31:28 -0400 Randy Hudson wrote: > >:>Saving a few bytes is sneered at as false economy, now. It wasn't, then. > Alas, code designed according to that criterion remains in use today (if it weren't, REFRPROT could be

Re: APF authorization and AC(00)

2017-06-12 Thread Gary Weinhold
It could be practical when writing high-performance code to modify a RENT module if it is not in key 0 (or use a PC to make the modification if in key 0). An example would be if an extensive chain of indirect pointers (or the NAME/TOKEN service), is used to locate life of IPL memory allocated

Re: APF authorization and AC(00)

2017-06-12 Thread Walt Farrell
On Sun, 11 Jun 2017 20:52:10 -0400, Steve Thompson wrote: >Question: Wasn't REFR for a program where, say a double-bit >parity error could occur, and it would then get loaded to a new page? I can't comment on the double-bit parity error, but I think that someone (Peter, Jim?) mentioned earlier

Re: APF authorization and AC(00)

2017-06-12 Thread Walt Farrell
On Mon, 12 Jun 2017 02:24:30 +, Jesse 1 Robinson wrote: >I got tired of guessing. I wrote a little program that saves registers into >itself via STM. I linked it with AC(1) and RENT. Did not specify >either REUS >or REFR. The result according to StarTool is >-- ATTRIBUTES - APF >RE

Re: APF authorization and AC(00)

2017-06-12 Thread John Eells
Paul Gilmartin wrote: On Sat, 10 Jun 2017 07:27:15 -0400, Peter Relson wrote: REFRPROT extends this to programs that are not loaded from an APF authorized library. Actually, REFRPROT extends this to programs that are bound with the REFR option regardless of module authorization or library aut

Re: APF authorization and AC(00)

2017-06-12 Thread Elardus Engelbrecht
Binyamin Dissen wrote: >But if you lie to zOS and assert that a non-reentrant program is reentrant, >zOS will not stop you from walking off the roof. Indeed. You will get burned badly. I once coded a SMF exit which modified itself in a macro's MF=L instead of modified that marco's copy in a GET

Re: APF authorization and AC(00)

2017-06-11 Thread Binyamin Dissen
On Mon, 12 Jun 2017 00:31:28 -0400 Randy Hudson wrote: :>In article <2376347398828975.wa.paulgboulderaim@listserv.ua.edu> you write: :> :>> Point taken. But it's not clear why the designers chose to allow a program :>> to be both modifyable and reloadable. This leads to dreadful unpredict

Re: APF authorization and AC(00)

2017-06-11 Thread Binyamin Dissen
On Behalf Of Clark Morris :>Sent: Sunday, June 11, 2017 5:15 PM :>To: IBM-MAIN@LISTSERV.UA.EDU :>Subject: (External):Re: APF authorization and AC(00) :> :>[Default] On 11 Jun 2017 13:39:47 -0700, in bit.listserv.ibm-main 000433f07816-dmarc-requ...@listserv.ua.edu (Paul Gilmartin) w

Re: APF authorization and AC(00)

2017-06-11 Thread Randy Hudson
In article <2376347398828975.wa.paulgboulderaim@listserv.ua.edu> you write: > Point taken. But it's not clear why the designers chose to allow a program > to be both modifyable and reloadable. This leads to dreadful > unpredictability: > Behavior may differ depending on whether the program

Re: APF authorization and AC(00)

2017-06-11 Thread Jesse 1 Robinson
- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Clark Morris Sent: Sunday, June 11, 2017 5:15 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: (External):Re: APF authorization and AC(00) [Default] On 11 Jun 2017 13:39:47 -0700, in bit.listserv.ibm-main 000

Re: APF authorization and AC(00)

2017-06-11 Thread J R
Another question: Wasn't REFR for SVC type 3/4 modules so that they could be refreshed in the transient area following preemption without fear that they may have been modified prior to being preempted? Sent from my iPhone > On Jun 11, 2017, at 20:52, Steve Thompson wrote: > > Question: Was

Re: APF authorization and AC(00)

2017-06-11 Thread J R
Another question: Wasn't REFR for SVC type 3/4 modules so that they could be refreshed in the transient area following preemption without fear that they may have been modified prior to being preempted? Sent from my iPhone > On Jun 11, 2017, at 20:52, Steve Thompson wrote: > >> On 06/11/201

Re: APF authorization and AC(00)

2017-06-11 Thread Steve Thompson
On 06/11/2017 05:33 PM, Walt Farrell wrote: On Sun, 11 Jun 2017 15:40:49 -0500, Paul Gilmartin wrote: In the Program Management UG and Ref, I see: RENT ... A reenterable module is ordinarily expected not to modify its own code. In some cases, MVS protects the reentrant module's vir

Re: APF authorization and AC(00)

2017-06-11 Thread Clark Morris
[Default] On 11 Jun 2017 13:39:47 -0700, in bit.listserv.ibm-main 000433f07816-dmarc-requ...@listserv.ua.edu (Paul Gilmartin) wrote: >On Sun, 11 Jun 2017 14:13:17 -0400, Peter Relson wrote: > >>A refreshable program cannot modify itself (or if it can, it would be a >>very interesting and perh

Re: APF authorization and AC(00)

2017-06-11 Thread Walt Farrell
On Sun, 11 Jun 2017 15:40:49 -0500, Paul Gilmartin wrote: >In the Program Management UG and Ref, I see: >RENT >... A reenterable module is ordinarily expected not to modify >its own code. In some cases, MVS protects the reentrant module's >virtual storage so that it cannot be modified

Re: APF authorization and AC(00)

2017-06-11 Thread Steve Smith
RENT means only one copy of a module needs to be loaded for a job. REFR means the module doesn't need to be paged out. All else is implications and assumptions. Note that neither of the above strictly require a non-modifiable module. The idea is that the results are always the same regardless of

Re: APF authorization and AC(00)

2017-06-11 Thread Paul Gilmartin
On Sun, 11 Jun 2017 14:13:17 -0400, Peter Relson wrote: >A refreshable program cannot modify itself (or if it can, it would be a >very interesting and perhaps self-limiting testcase). > I believe that if a program is marked REFR but loaded from a non-authorized library and REFRPROT is not in effe

Re: APF authorization and AC(00)

2017-06-11 Thread Peter Relson
A refreshable program cannot modify itself (or if it can, it would be a very interesting and perhaps self-limiting testcase). A reentrant program can, if written carefully, modify itself, although it is rarely a good idea. LPA modules are generally, in effect, refreshable. As to "why", think ab

Re: APF authorization and AC(00)

2017-06-11 Thread Binyamin Dissen
They are not technically the same. A REFR program can be reloaded at any time. Therefore it cannot self modify as it cannot know if it has been reloaded. But if it uses common/global areas without serialization it is not reentrant. A RENT program is one that can be executed concurrently by multip

Re: APF authorization and AC(00)

2017-06-11 Thread Jesse 1 Robinson
UA.EDU] On Behalf Of CM Poncelet Sent: Saturday, June 10, 2017 7:04 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: (External):Re: APF authorization and AC(00) Not AFAIK. In theory, a RENT program may modify one of its sections provided that this section is preceded by an ENQ, then modified, then resto

Re: APF authorization and AC(00)

2017-06-10 Thread Jim Mulder
istserv.ua.edu> > To: IBM-MAIN@LISTSERV.UA.EDU > Date: 06/10/2017 09:55 PM > Subject: Re: APF authorization and AC(00) > Sent by: IBM Mainframe Discussion List > > On Sat, 10 Jun 2017 07:27:15 -0400, Peter Relson wrote: > > >>REFRPROT extends this to programs that are

Re: APF authorization and AC(00)

2017-06-10 Thread CM Poncelet
he same > thing, but not quite. > > Granted, modifying program storage is a bad idea -- in any event. > > Charles > > -Original Message- > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On > Behalf Of Paul Gilmartin > Sent: Saturday,

Re: APF authorization and AC(00)

2017-06-10 Thread Paul Gilmartin
On Sat, 10 Jun 2017 19:15:11 -0500, Walt Farrell wrote: >On Sat, 10 Jun 2017 16:41:16 -0700, Charles Mills wrote: > >>A refreshable program may modify itself, right? REFR does not say "I don't >>modify myself" it says "you can reload me if you want." Almost >the same >>thing, but not quite. > >T

Re: APF authorization and AC(00)

2017-06-10 Thread Walt Farrell
On Sat, 10 Jun 2017 16:41:16 -0700, Charles Mills wrote: >A refreshable program may modify itself, right? REFR does not say "I don't >modify myself" it says "you can reload me if you want." Almost >the same >thing, but not quite. The key, I think, is that the system may reload the program at _

Re: APF authorization and AC(00)

2017-06-10 Thread Paul Gilmartin
On Sat, 10 Jun 2017 16:41:16 -0700, Charles Mills wrote: >A refreshable program may modify itself, right? REFR does not say "I don't >modify myself" it says "you can reload me if you want." Almost the same thing, >but not quite. > Point taken. But it's not clear why the designers chose to allo

Re: APF authorization and AC(00)

2017-06-10 Thread Charles Mills
- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Paul Gilmartin Sent: Saturday, June 10, 2017 7:54 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: APF authorization and AC(00) On Sat, 10 Jun 2017 07:27:15 -0400, Peter Relson wrote: >>REFRPROT extends this

Re: APF authorization and AC(00)

2017-06-10 Thread scott Ford
Wow a seal team 6 member ... On Sat, Jun 10, 2017 at 10:54 AM Paul Gilmartin < 000433f07816-dmarc-requ...@listserv.ua.edu> wrote: > On Sat, 10 Jun 2017 07:27:15 -0400, Peter Relson wrote: > > >>REFRPROT extends this to programs that are not loaded from an > >>APF authorized library. > > > >Ac

Re: APF authorization and AC(00)

2017-06-10 Thread Paul Gilmartin
On Sat, 10 Jun 2017 07:27:15 -0400, Peter Relson wrote: >>REFRPROT extends this to programs that are not loaded from an >>APF authorized library. > >Actually, REFRPROT extends this to programs that are bound with the REFR >option regardless of module authorization or library authorization. >And

Re: APF authorization and AC(00)

2017-06-10 Thread Peter Relson
>REFRPROT extends this to programs that are not loaded from an >APF authorized library. Actually, REFRPROT extends this to programs that are bound with the REFR option regardless of module authorization or library authorization. And it goes further because it page-protects, which would cause the

was Re: APF authorization and AC(00)n now 0 dark thirty call

2017-06-10 Thread Edward Gould
> On Jun 9, 2017, at 4:25 PM, Jesse 1 Robinson wrote: > > One of my very first oh dark thirty wake up calls. I had tested thoroughly > using a public test library. All good. Copied the module carefully to the > production counterpart. Went home. Boom. > > The lessons you learn earliest are th

Re: APF authorization and AC(00)

2017-06-09 Thread Jesse 1 Robinson
1:33 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: (External):Re: APF authorization and AC(00) Yup, I'm sure you are right. Lying to the binder didn't (obviously) matter when the program object was in a non-APF-authorized library, but it did matter when it was in an authorized library for t

Re: APF authorization and AC(00)

2017-06-09 Thread Way, Richard
09, 2017 1:27 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: APF authorization and AC(00) I think you need RENT on your PL/1 compile because otherwise there is no guaranteed the generated code will be re-entrant. General rule is if RENT on bind/LinkedIn then you must have RENT on high level langua

Re: APF authorization and AC(00)

2017-06-09 Thread Tom Marchant
On Fri, 9 Jun 2017 16:10:28 -0400, Don Poitras wrote: >I don't see what 0C4 is telling you vis-a-vis APF authorization. I think it's >more likely that you've told the binder that the program is RENT and it's >not. If you have REFRPROT set in your PROGxx parmlib member, then it's going >to get load

Re: APF authorization and AC(00)

2017-06-09 Thread Dan Little
. > > Regards, > Leo > > -Original Message- > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On > Behalf Of Way, Richard > Sent: Friday, June 09, 2017 4:24 PM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: APF authorization and AC(00) &g

Re: APF authorization and AC(00)

2017-06-09 Thread Leonardo Vaz
, Leo -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Way, Richard Sent: Friday, June 09, 2017 4:24 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: APF authorization and AC(00) Problem solved, per the suggestions below!! In partic

Re: APF authorization and AC(00)

2017-06-09 Thread Way, Richard
Oh duh - re-reading Don's note and this isn't even a puzzle any more. Thanks again, Don and others. Rich Way -Original Message- From: Way, Richard Sent: Friday, June 09, 2017 1:24 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: RE: APF authorization and AC(00) Problem solve

Re: APF authorization and AC(00)

2017-06-09 Thread Steve Smith
still a bit of a puzzle. > > But removing RENT from the bind step gets me past this. > > Thanks again > > Rich Wa > > -Original Message- > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On > Behalf Of Way, Richard > Sent: Friday, Ju

Re: APF authorization and AC(00)

2017-06-09 Thread Way, Richard
that didn't - and I confirmed that by revoking and reinstating APF auth on the library. Rich Way -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Leonardo Vaz Sent: Friday, June 09, 2017 1:16 PM To: IBM-MAIN@LISTSERV.UA.EDU Subje

Re: APF authorization and AC(00)

2017-06-09 Thread Way, Richard
rmed that by revoking and reinstating APF auth on the library. Rich Way -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Leonardo Vaz Sent: Friday, June 09, 2017 1:16 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: APF authorization and AC(00)

Re: APF authorization and AC(00)

2017-06-09 Thread Leonardo Vaz
uld cause a problem... Rich Way -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Leonardo Vaz Sent: Friday, June 09, 2017 12:59 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: APF authorization and AC(00) As far as I understand, AC=0 wou

Re: APF authorization and AC(00)

2017-06-09 Thread Don Poitras
I don't see what 0C4 is telling you vis-a-vis APF authorization. I think it's more likely that you've told the binder that the program is RENT and it's not. If you have REFRPROT set in your PROGxx parmlib member, then it's going to get loaded into read-only storage and when it tries to modify itsel

Re: APF authorization and AC(00)

2017-06-09 Thread Way, Richard
- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Leonardo Vaz Sent: Friday, June 09, 2017 12:59 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: APF authorization and AC(00) As far as I understand, AC=0 would only prevent authorization of the JSCB if it is the program

Re: APF authorization and AC(00)

2017-06-09 Thread Leonardo Vaz
As far as I understand, AC=0 would only prevent authorization of the JSCB if it is the program being attached as a jobstep task, if this program is being called by an already-existing authorized task, it would run authorized. The question is: How is control passed to program ZPXPLIA? Regards, L