Commit d4c5415
Jyri Sarha
ipc4: large_config: log rejected data_off_size validation failures
The data_off_size bounds checks in ipc4_set_vendor_config_module_instance()
silently returned IPC4_INVALID_CONFIG_DATA_STRUCT, giving no clue why a
MOD_LARGE_CONFIG_SET request was rejected. This makes diagnosing malformed
or malicious topologies/host requests harder.
Add tr_dbg() traces to both rejection paths reporting the offending
data_off_size together with the limit it violated (the mailbox size for
the upper bound, and sizeof(struct sof_tlv) for the init_block lower
bound). No functional change to the validation itself.
Signed-off-by: GitHub Copilot <noreply@github.com>1 parent 689eb09 commit d4c5415
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1107 | 1107 | | |
1108 | 1108 | | |
1109 | 1109 | | |
1110 | | - | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
1111 | 1113 | | |
1112 | | - | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
1113 | 1118 | | |
| 1119 | + | |
1114 | 1120 | | |
1115 | 1121 | | |
1116 | 1122 | | |
| |||
0 commit comments