[BUG] Pending Open owner observation uses an invalid const call #20
Labels
No labels
alpha-1
bug
ci
docs
duplicate
enhancement
help wanted
invalid
performance
phase-6
question
refactor
security
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
erix/posixd#20
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The pending-operation owner observer is declared const, but its Open arm calls a non-const method. This violates Rust constant-function call rules and prevents that source configuration from compiling. The owner query is runtime introspection and needs no const qualification.
Reproduction
Source-derived, not executed: inspect
src/realm_io/external.rsatfdf4b2122e322e65578b31570a253865986446bc.PendingCall::owneris const and its Open arm invokesOpenCall::owner. Inspectsrc/realm_io/external/open.rsat that same revision: the target method is non-const and uses runtime option combinators. A build containing the real realm service reaches this definition. No compiler invocation or runtime reproduction was performed because testing and builds are deferred.Expected and actual behavior
Expected: ordinary runtime custody observation can inspect the Open caller and intermediate candidate cleanup callers. Prior source: the enclosing const function calls a non-const method. Correction: remove the unnecessary const qualifier from the enclosing runtime observer. Retained symlink-frame cleanup callers also join the same observation without copying custody.
Environment and identity
fdf4b2122e322e65578b31570a253865986446bc, branchfeature/posix-compat.07490592437dc4e52ab97b1746685e78c6594835before coordinated adoption.Evidence and prior checks
Retained symlink following, active-context loop detection and original expansion cleanup are implemented and published as continued full Open/openat work: lib-ipc
d1cc4cad, posixd7d6a76fe, vfsd10fb2e5c, docs44bfa626, integrationf69e2243.Posixd assembles every raw page into its original counted request region before following any target byte. Original key, offset and unchanged total extent remain correlated. Relative targets retain their containing directory; absolute targets select only the original scope root. Raw unresolved suffixes, trailing-directory requirements and fresh component/dot/dot-dot search mediation survive substitution. Final exclusive creation refuses an existing link with EEXIST, and final NOFOLLOW refuses with ELOOP before reading target text; directory-prefix links still follow.
Noncopyable active expansion frames retain original symlink and temporary containing-directory pins in the existing counted shared-description arena. Their generational chain and suffix boundaries are internal ownership, never published fds. Complete frames retire both original pins before row reuse. Cancellation drains the complete original chain before cancelling the reserved fd; uncertain replies preserve native caller and original-key custody. The target-derived arena descriptor counts the actual enlarged owner types. Actual byte/owner exhaustion reports ENAMETOOLONG/ENFILE without a fixed follow count.
Cap-free native operation 0x6FC has exact 56-byte requests and 64-byte replies, echoing both complete link/parent contexts and canonical equality. VFS selects only original live pins and compares actual link/directory objects, provider/mount routes and complete retained mount ancestry. Fresh candidate or branch allocation numbers do not determine equality. Comparison calls no provider, obtains no clock and creates no pin. Earlier objects remain pinned throughout active comparison, preventing identity reuse. Returning to an active context reports ELOOP; completed expansions can recur sequentially. Full final permissions and original cleanup remain separate obligations.
The runtime owner observation defect is fixed and closed under the testing override. A const pending-operation observer called a non-const Open method. Removing the unnecessary const qualifier preserves runtime custody observation and includes active frame cleanup callers. The bug report records exact source-derived reproduction and explicitly states that no compiler or runtime reproduction was performed.
Eighteen new tests are authored and unrun: two wire, three raw-assembly, eight sealed-service, three native VFS and two ext-image packaging controls. Coverage includes non-UTF-8 bytes, a 700-byte assembled target, original parents and scope roots, nested and repeated links, more than forty sequential revisits, same-link aliases in distinct directories, direct/mutual/growing recursion, malformed later pages, storage exhaustion, final flags, scope isolation, mounted re-entry and cancellation with refused cleanup. The existing native binding workload now follows independently packaged literal ext links into mounted tmp, observes actual target data, and exercises recursive, NOFOLLOW and trailing-separator cases. The fixture is included only when the original native byte client is selected. No new test or VM workload has been executed.
Configured namespace-parent symlinks and conditional creation with authenticated process umask/default ACLs remain unfinished within full Open. No full Open acceptance credit is added: 16.91% weighted, 5.21% whole acceptance; 21/460 parents and 441/902 sub-items. Both full EriX guest-build generations and external Rust/LLVM guest rebuilding remain required and unperformed. Tests, builds, lint checks, documentation generation, VM/profiler execution and CI observation remain deferred; no execution pass or warning-free build is claimed.
Earlier evidence follows; retained client following and active-context comparison above are current.
Both declarations were read directly from the committed source. The runtime observation call path does not require constant evaluation. Existing caller-loss controls and the new nested-link cancellation and malformed-page controls retain original custody observations; new controls remain unrun. No test pass, build success or CI outcome is claimed.
Tracking
Native Open: #17.
Phase completion: erix/integration#65.
erikinkinen referenced this issue from erix/blockd2026-09-30 04:36:12 +02:00
erikinkinen referenced this issue from erix/coreutils2026-09-30 04:36:29 +02:00
erikinkinen referenced this issue from erix/crashd2026-09-30 04:36:48 +02:00
erikinkinen referenced this issue from erix/deviced2026-09-30 04:37:09 +02:00
erikinkinen referenced this issue from erix/docs2026-09-30 04:37:31 +02:00
erikinkinen referenced this issue from erix/drv-acpi2026-09-30 04:37:58 +02:00
erikinkinen referenced this issue from erix/drv-i80422026-09-30 04:38:25 +02:00
erikinkinen referenced this issue from erix/drv-ps2-keyboard2026-09-30 04:39:01 +02:00
erikinkinen referenced this issue from erix/drv-ps2-mouse2026-09-30 04:39:13 +02:00
erikinkinen referenced this issue from erix/drv-rtc-cmos2026-09-30 04:39:24 +02:00
erikinkinen referenced this issue from erix/drv-serial2026-09-30 04:39:31 +02:00
erikinkinen referenced this issue from erix/drv-virtio-block2026-09-30 04:39:33 +02:00
erikinkinen referenced this issue from erix/dynlinkd2026-09-30 04:39:35 +02:00
erikinkinen referenced this issue from erix/e2fsd2026-09-30 04:39:36 +02:00
erikinkinen referenced this issue from erix/exsh2026-09-30 04:39:38 +02:00
erikinkinen referenced this issue from erix/extop2026-09-30 04:39:39 +02:00
erikinkinen referenced this issue from erix/fatd2026-09-30 04:39:40 +02:00
erikinkinen referenced this issue from erix/fbcond2026-09-30 04:39:41 +02:00
erikinkinen referenced this issue from erix/hotplugd2026-09-30 04:39:41 +02:00
erikinkinen referenced this issue from erix/inputd2026-09-30 04:39:42 +02:00
erikinkinen referenced this issue from erix/integration2026-09-30 04:39:43 +02:00
erikinkinen referenced this issue from erix/irqd2026-09-30 04:39:44 +02:00
erikinkinen referenced this issue from erix/kernel2026-09-30 04:39:45 +02:00
erikinkinen referenced this issue from erix/keyd2026-09-30 04:39:47 +02:00
erikinkinen referenced this issue from erix/launchd2026-09-30 04:39:47 +02:00
erikinkinen referenced this issue from erix/lib-block2026-09-30 04:39:48 +02:00
erikinkinen referenced this issue from erix/lib-bootstrap2026-09-30 04:39:49 +02:00
erikinkinen referenced this issue from erix/lib-capabi2026-09-30 04:39:50 +02:00
erikinkinen referenced this issue from erix/lib-driver2026-09-30 04:39:51 +02:00
erikinkinen referenced this issue from erix/lib-input2026-09-30 04:39:51 +02:00
erikinkinen referenced this issue from erix/lib-interrupt2026-09-30 04:39:52 +02:00
erikinkinen referenced this issue from erix/lib-ipc2026-09-30 04:39:54 +02:00
erikinkinen referenced this issue from erix/lib-log2026-09-30 04:39:55 +02:00
erikinkinen referenced this issue from erix/lib-posixabi2026-09-30 04:39:56 +02:00
erikinkinen referenced this issue from erix/lib-service2026-09-30 04:39:57 +02:00
erikinkinen referenced this issue from erix/lib-stdio2026-09-30 04:39:57 +02:00
erikinkinen referenced this issue from erix/lib-time2026-09-30 04:39:58 +02:00
erikinkinen referenced this issue from erix/lib-tty2026-09-30 04:40:00 +02:00
erikinkinen referenced this issue from erix/lib-vfs2026-09-30 04:40:01 +02:00
erikinkinen referenced this issue from erix/loaderd2026-09-30 04:40:02 +02:00
erikinkinen referenced this issue from erix/logd2026-09-30 04:40:03 +02:00
erikinkinen referenced this issue from erix/memd2026-09-30 04:40:04 +02:00
erikinkinen referenced this issue from erix/named2026-09-30 04:40:04 +02:00
erikinkinen referenced this issue from erix/pagerd2026-09-30 04:40:05 +02:00
erikinkinen referenced this issue2026-09-30 04:40:07 +02:00
erikinkinen referenced this issue from erix/powerboxd2026-09-30 04:40:08 +02:00
erikinkinen referenced this issue from erix/probed2026-09-30 04:40:09 +02:00
erikinkinen referenced this issue from erix/procd2026-09-30 04:40:09 +02:00
erikinkinen referenced this issue from erix/ramfsd2026-09-30 04:40:10 +02:00
erikinkinen referenced this issue from erix/rootd2026-09-30 04:40:10 +02:00
erikinkinen referenced this issue from erix/seriald2026-09-30 04:40:11 +02:00
erikinkinen referenced this issue from erix/timed2026-09-30 04:40:12 +02:00
erikinkinen referenced this issue from erix/ttyd2026-09-30 04:40:12 +02:00
erikinkinen referenced this issue from erix/vfsd2026-09-30 04:40:13 +02:00
erikinkinen referenced this issue from erix/vspaced2026-09-30 04:40:14 +02:00