-
Notifications
You must be signed in to change notification settings - Fork 349
platform/posix: Unbreak fuzzer support #9107
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
Conversation
|
Put this together in a rush, please review carefully. Not complicated, just code motion. |
kv2019i
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @andyross , that was quick! I think the sof/scripts/fuzz.sh needs updates to use the renamed Kconfig options (now defined on SOF side).
Yes, @andyross please try |
|
Heh, indeed. The fuzz.sh delta was sitting un-git-added in my tree still. Oops. |
|
(Oh, and the checkpatch whine isn't really fixable: the symbols in question don't appear in Zephyr headers, they're still whitebox entry points in the native_posix arch. In the medium term we'll need to move to "native_sim", which is evolved architecture, and it has a better specified API.) |
kv2019i
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, looks good now! The previously passing CI checks now pass, so expectation is the remaining checks will pass as well (as the fuzz changes won't affect the on-device SOF tests).
|
@andyross Can you rebase, there's a small conflict with in CMakeLists.txt as one of the posix platform files was removed in another PR today. We need to get clean run of the CI to merge, but I checked the faiiling case and it's a fail in "16_00_TestSdwTransferLoopback" test case, so cannot possibly be related to your PR. If the case fails after rebase, I'll ping our CI folks to check. |
lgirdwood
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
@lgirdwood wrote:
Yes, that's how this was discovered -> https://github.com/thesofproject/sof/actions/runs/8972185189/job/24639608648?pr=9098 when doing a Zephyr update |
Upstream Zephyr moved the LLVM fuzzer entry point out of the arch layer and made it an app responsibility, so we broke. Add back the support here that got removed. Fixes thesofproject#9101 Signed-off-by: Andy Ross <andyross@google.com>
|
Rebased. |
|
And the tests now pass as expected, merging! |
Upstream Zephyr moved the LLVM fuzzer entry point out of the arch layer and made it an app responsibility, so we broke. Add back the support here that got removed.
Fixes #9101