Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: have liveSlots reject Promise arguments in D() invocations #1803

Merged
merged 3 commits into from
Sep 30, 2020

Conversation

warner
Copy link
Member

@warner warner commented Sep 18, 2020

This is in addition to the kernel-side translator killing the vat if one gets
through. Using a promise in syscall.callNow() is vat-fatal. Using one in
D() merely throws an Error (thrown by liveslots before the syscall is
made).

closes #1358

@warner warner added the SwingSet package: SwingSet label Sep 18, 2020
@warner warner requested a review from FUDCo September 18, 2020 01:34
@warner warner self-assigned this Sep 18, 2020
@warner warner force-pushed the 1766-reject-callNow-promises branch 2 times, most recently from c5ce255 to 9c5e52d Compare September 21, 2020 21:43
Copy link
Contributor

@FUDCo FUDCo 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, though the tests that set up a device will need to be tweaked to use the new startup API. Please wait for #1814 to land so its tests don't break while we're trying to land it.

This is in addition to the kernel-side translator killing the vat if one gets
through. Using a promise in `syscall.callNow()` is vat-fatal. Using one in
`D()` merely throws an Error (thrown by liveslots before the syscall is
made).

closes #1358
@warner warner force-pushed the 1766-reject-callNow-promises branch from 9c5e52d to 1cf5fac Compare September 27, 2020 18:33
@warner warner requested a review from FUDCo September 27, 2020 18:33
@warner
Copy link
Member Author

warner commented Sep 27, 2020

I updated the test, lemme know if I got it right.

Copy link
Contributor

@FUDCo FUDCo left a comment

Choose a reason for hiding this comment

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

LGTM.

@warner warner merged commit cdcf99d into master Sep 30, 2020
@warner warner deleted the 1766-reject-callNow-promises branch September 30, 2020 06:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
SwingSet package: SwingSet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Returning embedded promise from HTTP handler causes device panic
2 participants