8000 Fix abort upcall bug by viswajith-g · Pull Request #4423 · tock/tock · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix abort upcall bug #4423

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

Merged
merged 1 commit into from
May 6, 2025
Merged

Fix abort upcall bug #4423

merged 1 commit into from
May 6, 2025

Conversation

viswajith-g
Copy link
Contributor

Pull Request Overview

Because of an extraneous self.process.take() in the synchronous response to the abort call, the capsule was unable to send the asynchronous upcall on a successful/unsuccessful abort operation. This PR fixes this issue.

Testing Strategy

I tested both versions of the kernel on my nrf52840dk.

TODO or Help Wanted

N/A

Documentation Updated

  • Updated the relevant files in /docs, or no updates are required.

Formatting

  • Ran make prepush.

@@ -504,7 +504,6 @@ impl<
match result {
Ok(()) => {
self.new_app_length.set(0);
self.current_process.take();
Copy link
Member

Choose a reason for hiding this comment

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

For anyone reasoning about why this is correct, the code above this match block always ensures that self.current_process is set to the calling process. Furthermore, abort is an asynchronous operation. Thus, this will need to leave the current_process set until the abort operation has finished.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, sorry for not including that. Thanks Leon!

@lschuermann lschuermann added bug P-Upkeep This a relatively minor change, or one that is limited in scope, and requires less scrutiny. labels May 6, 2025
@lschuermann lschuermann assigned lschuermann and unassigned alevy May 6, 2025
@lschuermann lschuermann added this pull request to the merge queue May 6, 2025
Merged via the queue into tock:master with commit 2978e82 May 6, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug P-Upkeep This a relatively minor change, or one that is limited in scope, and requires less scrutiny.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0