-
Notifications
You must be signed in to change notification settings - Fork 349
Revert "Audio: SRC: Add safeguard against missing, wrong size or type… #7985
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
… init data" This reverts commit 4849a71. The commit has been merged with CI test fail The test is now failing constantly making CI unusabe Either CI test or the code requires changes before merging Signed-off-by: Marcin Szkudlinski <marcin.szkudlinski@intel.com>
|
I've checked SRC module tests, init instance ipc messages payload looks proper. |
|
Which of the tests causes the fail? For IPC4 the config should be this: struct ipc4_config_src { Though it's strange that this is defined in locally in src.c module. All IPC headers should be in src/include/ipc4. |
Not disagreeing, good that we know there's an issue somewhere. This patch was supposed to fix an issue found by fuzzing. |
|
Also confirming that this same issue happens with Linux driver and topology (#7547). |
|
@marcinszkudlinski thanks for root causing, I am guessing the results in the original PR were so stale that this bug slipped in because it looks fine in #7830 |
|
@jsarha FYI we will need to resubmit the fuzzer fix |
The check for |
|
@singalsu we can have an ifdef here for ipc version if needed. Once fuzzer gets full IPC4 support we can revisist if needed. |
The fuzzer issue is a security issue, it should not be ignored. @lgirdwood is right that we can just ifdef it for ipc3 |
I am now back from vacation. If no one has not done this yet, I can do this tomorrow. |
… init data"
This reverts commit 4849a71.
The commit has been merged with CI test fail
The test is now failing constantly making CI unusabe
Either CI test or the code requires changes before merging
FW logs:
[ 0.122168] init: print_version_banner: FW ABI 0x301b000 DBG ABI 0x5003000 tags SOF:v2.5-stable-branch-733-g8683d2d265d1 zephyr:zephyr-v3.4.0-496-g431108d89e17 src hash 0x4b68d789 (ref hash 0x4b68d789)
[ 0.122183] clock: clock_set_freq: clock 0 set freq 400000000Hz freq_idx 2
[ 0.122190] clock: clock_set_freq: clock 1 set freq 400000000Hz freq_idx 2
[ 0.122196] clock: clock_set_freq: clock 2 set freq 400000000Hz freq_idx 2
*** Booting Zephyr OS build zephyr-v3.4.0-496-g431108d89e17 ***
[ 0.122378] main: main: SOF on intel_adsp_ace15_mtpm
[ 0.122386] main: main: SOF initialized
[ 0.157836] ipc: ipc_cmd: rx : 0x43000000|0x30701000
[ 0.160618] ipc: ipc_cmd: rx : 0x43000000|0x30801000
[ 0.171581] ipc: ipc_cmd: rx : 0x44000000|0x3070000c
[ 0.171590] basefw: basefw_set_large_config: returning success for Set FW_CONFIG without handling it
[ 0.174833] ipc: ipc_cmd: rx : 0x44000000|0x3070000c
[ 0.174846] basefw: basefw_set_large_config: returning success for Set FW_CONFIG without handling it
[ 0.179795] ipc: ipc_cmd: rx : 0x44000000|0x31400008
[ 0.181086] ipc: ipc_cmd: rx : 0x44000000|0x30600064
[ 0.241513] ipc: ipc_cmd: rx : 0x11000006|0x0
[ 0.241518] pipe: pipeline_new: pipeline new pipe_id 0 priority 0
[ 0.242786] ipc: ipc_cmd: rx : 0x40000004|0x15
[ 0.242833] dma: dma_get: dma_get() ID 0 sref = 1 busy channels 0
[ 0.271751] ipc: ipc_cmd: rx : 0x40000008|0x1000000b
[ 0.271781] src: src_init: comp:0 0x80000 src_init(): Missing or bad size (44) init data
[ 0.271786] module_adapter: module_init: comp:0 0x80000 module_init() error -22: module specific init failed, comp id 524288
[ 0.271790] module_adapter: module_adapter_new: comp:0 0x80000 module_adapter_new() -22: module initialization failed
[ 0.271801] ipc: ipc4_init_module_instance: error: failed to init module 8 : 0
[ 0.271811] ipc: ipc_cmd: ipc4: MODULE_MSG failed with err 104
[ 0.272753] ipc: ipc_cmd: rx : 0x46000004|0x8
[ 0.272763] ipc: ipc_comp_disconnect: failed to find src 40000, or dst 80000
[ 0.272766] ipc: ipc_cmd: ipc4: MODULE_MSG failed with err 9