Skip to content

linux: fix readlinkat guest copy length handling#67

Merged
fwsGonzo merged 1 commit intovarnish:masterfrom
jlinenkohl:pr-u2-readlinkat-fix
Apr 4, 2026
Merged

linux: fix readlinkat guest copy length handling#67
fwsGonzo merged 1 commit intovarnish:masterfrom
jlinenkohl:pr-u2-readlinkat-fix

Conversation

@jlinenkohl
Copy link
Copy Markdown
Contributor

@jlinenkohl jlinenkohl commented Apr 2, 2026

Summary

  • Fix readlinkat guest-copy path to use bounded copy semantics and correct signed-length handling.

Why

  • Prevents guest memory copy errors and incorrect return handling on readlinkat.

Validation

  • cd tests && bash run_unit_tests.sh -R test_elf

Depends on

  • none

Stack Context

Test Evidence

  • Date: 2026-04-02
  • Branch-level validation source: phase14_audit baseline sweep
  • Full unit harness: cd tests && bash run_unit_tests.sh -> 8/8 passed
  • Integration tinytest lane: (cd guest/tests && bash build.sh) && ./build/tinytest guest/tests/glibc_test -> passed

PR-Scoped Command

  • cd tests && bash run_unit_tests.sh -R test_elf
  • Expected standalone status: green (base runtime fix)

@fwsGonzo
Copy link
Copy Markdown
Member

fwsGonzo commented Apr 4, 2026

Thanks!

@jlinenkohl jlinenkohl deleted the pr-u2-readlinkat-fix branch April 22, 2026 23:59
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.

2 participants