Skip to content

Conversation

@jsarha
Copy link
Contributor

@jsarha jsarha commented Jul 10, 2023

It is possible to fabricate a message for FW that initializes volume module without a configuration. Make a safe guard again crashing from that.

Fixes a similar problem with volume module, as this PR fixes for SRC module: #7830

@jsarha jsarha force-pushed the volume_no_configuration_check branch from 8171688 to 3a4a785 Compare July 11, 2023 09:54
Copy link
Contributor

@cujomalainey cujomalainey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually can you add that cfg->size == sizeof(*vol)?

@lgirdwood
Copy link
Member

@jsarha ping, can you adress comment and check CI. Lot of red. Thanks

It is possible to fabricate a message for FW that initializes volume module
without a configuration. Make a safe guard again crashing from that.

Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
@jsarha jsarha force-pushed the volume_no_configuration_check branch from 3a4a785 to 432567f Compare July 13, 2023 07:45
@jsarha
Copy link
Contributor Author

jsarha commented Jul 13, 2023

Actually can you add that cfg->size == sizeof(*vol)?

Added.

@lgirdwood lgirdwood merged commit 7027228 into thesofproject:main Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants