Skip to content

Conversation

@stupendoussuperpowers
Copy link
Contributor

The futex_syscall, getrandom_syscall, and copy_data_between_cages still use the sc_convert_uaddr_to_host function, which is not necessary with the address translations changes. The use of this helper function has been removed from other functions that used them, this PR cleans up the remaining occurrences.

Copy link
Member

@Yaxuan-w Yaxuan-w left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes make sense to me, but the CI tests failed.

@stupendoussuperpowers
Copy link
Contributor Author

The only case that was failing was thread.c. I gave the tests a re-run and it passed now. This is the second PR for which this test has been flaky, might need to look into this.

All tests are passing now.

Copy link
Member

@Yaxuan-w Yaxuan-w left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good now! I'd suggest to change the title to explicitly mention that we're removing in both rawposix and 3i. Maybe sth like "Remove usage of sc_convert_uaddr_to_host in rawposix and 3i"?

@stupendoussuperpowers stupendoussuperpowers changed the title Remove remaining usage of sc_convert_uaddr_to_host Remove sc_convert_uaddr_to_host usage for address conversions in rawposix and 3i Jan 5, 2026
@stupendoussuperpowers
Copy link
Contributor Author

Done!

@Yaxuan-w Yaxuan-w merged commit d89b848 into Lind-Project:main Jan 5, 2026
3 of 4 checks passed
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