Repository navigation
Commit f17ce06
module: bound the sink count in module_get_deadline()
module_get_deadline() runs for DP modules, whose struct
processing_module the DP thread can write. Read the sink count once,
limit it to the size of the sink array and skip unset sinks, so a
forged count cannot make the caller read past the array.
The sink operations it calls are still taken from DP-writable memory.
With CONFIG_SOF_USERSPACE_LL this now happens in the LL user thread;
isolating it from DP threads is a separate issue.
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>1 parent 95ef722 commit f17ce06
1 file changed
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1030 | 1030 | | |
1031 | 1031 | | |
1032 | 1032 | | |
| 1033 | + | |
| 1034 | + | |
1033 | 1035 | | |
1034 | 1036 | | |
| 1037 | + | |
| 1038 | + | |
1035 | 1039 | | |
1036 | 1040 | | |
1037 | 1041 | | |
| |||
1042 | 1046 | | |
1043 | 1047 | | |
1044 | 1048 | | |
1045 | | - | |
1046 | | - | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
1047 | 1055 | | |
| 1056 | + | |
1048 | 1057 | | |
1049 | 1058 | | |
1050 | 1059 | | |
| |||
0 commit comments