-
Notifications
You must be signed in to change notification settings - Fork 322
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
General lack of .config control exposed by fuzzer .config divergence #9386
Comments
That's because The fix is to study https://docs.zephyrproject.org/latest/build/kconfig/setting.html#initial-conf and implement some proper "overlays" where (at least) hardware and software are separated. Note how this comment is totally unrelated to fuzzing; fuzzing is just the messenger here. |
Extract -DCONFIG_* definitions hardcoded inside the script and move them to a new .conf file where they belong. This is a first, baby-step towards addressing the more general lack of .config control described in thesofproject#9386 Signed-off-by: Marc Herbert <[email protected]>
Extract -DCONFIG_* definitions hardcoded inside the script and move them to a new .conf file where they belong. This is a first, baby-step towards addressing the more general lack of .config control described in #9386 Signed-off-by: Marc Herbert <[email protected]>
No, there are .config issues pretty much everywhere we look. Examples:
I will also submit some changes to reduce a bit the gap between build-fuzz/zephyr/.config and products. |
Done: There are probably more CONFIG_ that should be added (and cleaned up). #9409 sets the stage/adds the "framework" showing how to do that. |
The CONFIG_ gap between fuzzing and production is still too big and there are still weird things in the production config (like b2f79a0) but I don't have any time left for this. |
Another problem noticed: commit 87e973d "downgrades" |
Originally posted by @marc-hb in #9343 (comment)
Let's compare the default
build-mtl/zephyr/.config
withbuild-fuzz/zephyr/.config
as of today's SOF commit 1009ba7That's a lot. Some of these differences are unavoidable because they are "hardware"-dependent, for instance:
CONFIG_DT_HAS_CDNS_TENSILICA_XTENSA_LX7_ENABLED
orCONFIG_ZEPHYR_POSIX_FUZZ_IRQ
. Other diffferences are wrong because they are "pure software" likeCONFIG_AMS
orCONFIG_SOF_TELEMETRY
. Can these last two software features affect fuzzing? Maybe, maybe not: we don't want to know. Pure software differences should be as small as possible, period. That is: if we want to fuzz and find security issues in code used in production.So where do
CONFIG_AMS
andCONFIG_SOF_TELEMETRY
come from?Enjoy the typical duplication.
As a quick fix, maybe we can bring the fuzzed
.config
closer to the real thing with this simple addition?Unfortunately not. First we get a gazillion of "hardware" warnings:
Then:
cc:
The text was updated successfully, but these errors were encountered: