Skip to content

Conversation

@casaroli
Copy link

@casaroli casaroli commented Nov 12, 2025

This test is expected to fail, as a proof that there is a deadlock in the fdtable+eventfd code. After we fix the bug, the test should pass.

The eventfd API should work with the standard POSIX read/write functions with the same behavior as the non-standard eventfd_read/write API.

We add the tests for these interfaces.

@github-actions
Copy link

Hello @casaroli, and thank you very much for your first pull request to the Zephyr project!
Our Continuous Integration pipeline will execute a series of checks on your Pull Request commit messages and code, and you are expected to address any failures by updating the PR. Please take a look at our commit message guidelines to find out how to format your commit messages, and at our contribution workflow to understand how to update your Pull Request. If you haven't already, please make sure to review the project's Contributor Expectations and update (by amending and force-pushing the commits) your pull request if necessary.
If you are stuck or need help please join us on Discord and ask your question there. Additionally, you can escalate the review when applicable. 😊

The eventfd API should work with the standard POSIX read/write functions with the same behavior as the non-standard eventfd_read/write API. We add the tests for these interfaces. Signed-off-by: Marco Casaroli <marco.casaroli@gmail.com>
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
E Security Rating on New Code (required ≥ C)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

struct eventfd_fixture *fixture = arg1;
int ret;

ret = read(fixture->fd, &value, 8);

Check failure

Code scanning / SonarCloud

POSIX functions should not be called with arguments that trigger buffer overflows High test

"read" overflows write buffer "&value"; passed size "8" (64) exceeds buffer size (8) See more on SonarQube Cloud
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant