Skip to content

Read the SITE SUBMIT jobid via jesircl2() instead of the freed VSFILE - #103

Merged
mgrossmann merged 1 commit into
mainfrom
issue-102-jesircl2
Aug 17, 2026
Merged

Read the SITE SUBMIT jobid via jesircl2() instead of the freed VSFILE#103
mgrossmann merged 1 commit into
mainfrom
issue-102-jesircl2

Conversation

@mgrossmann

Copy link
Copy Markdown
Contributor

Fixes #102

Same defect and same fix as mvslovers/mvsmf#297: the post-close rplrbar read fetched the jobid from the freed VSFILE. jesircl2() (libc370#118/#119, in the sysroot) hands it out legally between ENDREQ and close.

Built clean against the updated sysroot (make modules). Not live-verified: no FTPD deploy/restart was done — the running FTPD is the recovery channel for the dev system, so exercising SITE SUBMIT against a new build is left for the next regular FTPD rollout. The mvsMF twin of this change is live-verified (submit returns JOBnnnnn).

The jobid arrives with the ENDREQ inside jesircls() and the vsclose() in
the same call frees the VSFILE carrying it, so the rplrbar read after the
close fetched from freed storage -- working only because free() leaves
block contents intact. jesircl2() (libc370#118) copies the 8-byte
feedback out between the ENDREQ and the close. The handle pointer is
dropped immediately: it is freed even when the close reports an error.

Fixes #102
@mgrossmann
mgrossmann merged commit cc54131 into main Aug 17, 2026
1 check passed
@mgrossmann
mgrossmann deleted the issue-102-jesircl2 branch August 17, 2026 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SITE SUBMIT reads the jobid from a freed VSFILE — migrate to jesircl2()

1 participant