Repository navigation
test: cover FreeBSD short remote reads - #26
vankudothuadhinaik wants to merge 2 commits into
Conversation
|
Hi, thanks for taking a look at this PR. The GitHub Actions workflow is currently awaiting maintainer approval. Could you please approve the workflow when convenient so the FreeBSD regression test can run? Thank you! |
|
Hey, thanks for looking into this.
I've cherry-picked this since it's a good fix regardless of the FreeBSD tests - 064bf24.
Based on the test output, this doesn't seem to match what FreeBSD actually does. We could assert a different error type, but either way, the test might not be checking for a short read. |
|
Thanks for the feedback. I’ve prepared an isolated diagnostic branch that logs the Could you approve a temporary diagnostic run of the FreeBSD Firecracker job using this branch? I’ll use it only to determine whether the test produces a genuine short read or a syscall/cleanup error, then remove the temporary branch. I haven’t changed or pushed the original PR branch. |
|
Your agent can run CI on your fork of this repo along with whatever changes it needs to test. |
|
I ran the FreeBSD diagnostic to investigate whether the protected-page test produces a genuine short transfer. The diagnostic output shows:
This confirms that the syscall fails before reporting a successful partial transfer. The detach operation does not mask the error. The FreeBSD integration test therefore verifies preservation of the actual Diagnostic runs:
The diagnostic work was kept separate from the original PR branch. |
|
I merged a simplified version of this. Thanks for your contribution |
Summary
PROT_NONEpage.PT_IOfailure preserves the originalEFAULTerror rather than incorrectly reportingUnexpectedEof.PT_IOresult and transfer-length classification into a helper used by production code.Validation
cargo fmt --all -- --check— passed.git diff --check— passed.link.exeis unavailable; the FreeBSD Rust target is not installed locally.Findings
The FreeBSD protected-page integration test produces
EFAULT, not a successful partial transfer. TheUnexpectedEofbehavior is covered separately by a deterministic unit test for a successful short transfer.