Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request introduces a new Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces a new portUnregister syscall. The implementation contains a critical bug where it reads an argument from an incorrect stack offset, which would cause it to fail. I've provided a fix for this. Additionally, I've pointed out a security vulnerability related to handling strings from userspace and a design issue with the function's return type that prevents error handling. Addressing these would significantly improve the robustness and security of the new syscall.
3b9ca46 to
32fc1e8
Compare
|
please use the same branch name for related changes in different repos - that way you won't need to use |
Agreed, but these changes are related only one way, same branch names might have been confusing. Next time I'll try to find a matching one tho. |
I'll add some tests before merging |
|
not sure but at https://github.com/phoenix-rtos/phoenix-rtos-kernel/blob/master/proc/name.c#L140 it should probably be I'm also not sure about generic approach - if we would like for the servers to be restartable - it would be better to have the same port number as the previous instance, so actually re-reading port from the dev and reclaiming it might be a better approach (clients doesn't need to re-lookup). Might not matter that much if we switch the message API to explicit open/close connection. |
b32730a to
23fba5a
Compare
The functionality is there, but was previously unused. It can now be useful wit new `remove_dev()` userspace function that will cal it if there's no filesystem. YT: RTOS-1254
23fba5a to
228941d
Compare
228941d to
d575864
Compare
agkaminski
left a comment
There was a problem hiding this comment.
I guess usage of len deeper is TODO (what if I lie about len when executing the syscall)?
The functionality is there but was previously unused. Its useful with new
remove_dev()userspace function that will call it if there's no filesystem.Description
Motivation and Context
Depends-On: libphoenix:julianuziemblo/remove_dev
Types of changes
How Has This Been Tested?
armv7m7-imxrt117x-evkChecklist:
Special treatment