Skip to content

[FEATURE] debug: fault injection: sign firmware with invalid key #681

Open

Description

@plbossart

To make sure the Linux driver error flows get tested in a regular basis, add an invalid key to check how the driver probe releases all allocated resources.

Activity

  1. lbetlej commented on Mar 27, 2019

    @lbetlej
    Collaborator

    driver may respond with a meaningful dmesg entry on a specific ROM error code documented in sof-docs

  2. lgirdwood commented on Mar 27, 2019

    @lgirdwood
    Member

    Test key should be generated and added to git alongside public dev key. rimage already takes the key location as an argument so it would be easy enough to add a make target to sign with the test key.

  3. jajanusz commented on Jun 6, 2019

    @jajanusz
    Contributor

    It will just add unnecessary burden to the codebase. It's something that just CI/occasional checks should do - some check with invalid key and try to load it. For sure it shouldn't be placed next to valid keys.
    The most we can add to the repo for that is some script with its invalid key, but somwhere in scripts/tools/tests.

    @mengdonglin Probably @xiulipan is the best person to be assigned for this one.

  4. added
    P3Low-impact bugs or features
    on Jun 6, 2019
  5. xiulipan commented on Jun 10, 2019

    @xiulipan
    Contributor

    @jajanusz @plbossart @lgirdwood
    What would this key used for?
    Do you mean add some fail case test in CI?
    I will take that as a new feature request.

  6. changed the title [-]debug: fault injection: sign firmware with invalid key[/-] [+][FEATURE] debug: fault injection: sign firmware with invalid key[/+] on Jun 10, 2019
  7. lgirdwood commented on Jun 10, 2019

    @lgirdwood
    Member

    @xiulipan this is to test driver handling paths for FW boot/signing failure. Maybe best option is to have rimage cmd line option that signs with random data. This way we don't have to carry "testing keys" and rimage can still sign using random data (as the private key). I've marked it down for v1.4

  8. added this to the v1.4 milestone on Jun 10, 2019
  9. jajanusz commented on Jun 10, 2019

    @jajanusz
    Contributor

    @lgirdwood I prefer to clutter some deep folder that no1 looks into instead of rimage codebase.
    Also CI should be deterministic, I know it's near to impossible to match valid key, but still, it makes CI non-deterministic.

  10. lgirdwood commented on Jun 10, 2019

    @lgirdwood
    Member

    @jajanusz I'm also fine with signing with an empty or 0 key (as long as driver error flow is tested)

  11. modified the milestones: v1.4, v1.5 on Nov 12, 2019
  12. modified the milestones: v1.5, v1.6 on Jan 27, 2020
  13. lgirdwood commented on Aug 18, 2020

    @lgirdwood
    Member

    @plbossart did you manage to have a solution for testing kernel boot flow for signing ?

  14. modified the milestones: v1.6, v1.7 on Aug 18, 2020
  15. modified the milestones: v1.7, v1.9 on Jan 12, 2021
  16. modified the milestones: v1.9, TBD on Feb 15, 2023
  17. kv2019i commented on Feb 15, 2023

    @kv2019i
    Collaborator

    @mengdonglin @plbossart I think this should be moved to validation backlog, assigning to TBD milestone until then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P3Low-impact bugs or featuresenhancementNew feature or request

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions