Skip to content

DAOS-19559 client: Fix a number of pil4dfs issues - #18967

Draft
mjmac wants to merge 8 commits into
masterfrom
mjmac/DAOS-19559
Draft

DAOS-19559 client: Fix a number of pil4dfs issues#18967
mjmac wants to merge 8 commits into
masterfrom
mjmac/DAOS-19559

Conversation

@mjmac

@mjmac mjmac commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Found while trying to get Features: pool working.

Initial draft to test fixes.

mjmac added 7 commits August 30, 2026 10:58
Rust's standard library probes statx() availability with
a NULL path and expects EFAULT from libc. Fixes a crash
where path[0] was read without checking for NULL first.

Features: pil4dfs
Signed-off-by: Michael MacDonald <github@macdonald.cx>
A file fd used as dirfd (statx AT_EMPTY_PATH, Rust File::metadata) fell
into the /proc/self/fd readlink path and got ENOENT, and dup'ed dir fds
shared one dir_obj so closedir() on the dup freed the original's slot
(CPython scandir). Both blocked uv/setuptools on a dfuse mount.

Signed-off-by: Michael MacDonald <github@macdonald.cx>
This is the daos_build_vm pil4dfs failure shape (DAOS-19005 / #18540) in
a test that runs on every PR.

Signed-off-by: Michael MacDonald <github@macdonald.cx>
It interposes the libaio API and resolves the real entry points with
RTLD_NEXT, which only works when libaio is in the global scope; EL9's
fio loads it through a dlopen'ed engine plugin, so every hook asserted.

Signed-off-by: Michael MacDonald <github@macdonald.cx>
The kernel rejects a pil4dfs fd with EBADF, and Rust's io::copy treats
that from sendfile() as fatal, so uv could not install anything.

Signed-off-by: Michael MacDonald <github@macdonald.cx>
…state

CPython's subprocess vforks, and its child chdir(cwd) landed in the
shared cur_dir; scons then resolved every relative path against a
directory it was not in.

Signed-off-by: Michael MacDonald <github@macdonald.cx>
chdir() built cur_dir as fs_root + "/"; opendir() already strips it.

Signed-off-by: Michael MacDonald <github@macdonald.cx>
@github-actions

Copy link
Copy Markdown

Ticket title is 'libpil4dfs: statx() segfaults when called with path == NULL'
Status is 'Open'
https://daosio.atlassian.net/browse/DAOS-19559

Features: pil4dfs
Signed-off-by: Michael MacDonald <github@macdonald.cx>
@daosbuild3

Copy link
Copy Markdown
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants