numam-dpdk/lib/power
Richael Zhuang d37462e56c power: check frequencies count before filling array
The freqs array size is RTE_MAX_LCORE_FREQS. Before filling the
array with num_freqs elements, restrict the total num to
RTE_MAX_LCORE_FREQS. This fix aims to fix the coverity scan issue
like:
Overrunning array "pi->freqs" of 256 bytes by passing it to a
function which accesses it at byte offset 464.

Coverity issue: 371913
Fixes: ef1cc88f18 ("power: support cppc_cpufreq driver")
Cc: stable@dpdk.org

Signed-off-by: Richael Zhuang <richael.zhuang@arm.com>
Acked-by: David Hunt <david.hunt@intel.com>
2021-07-24 10:09:58 +02:00
..
guest_channel.c power: fix sanity checks for guest channel read 2021-05-12 17:18:38 +02:00
guest_channel.h
meson.build power: make ethdev power management thread unsafe 2021-07-09 21:13:13 +02:00
power_acpi_cpufreq.c power: refactor ACPI and intel_pstate support 2021-07-08 22:32:13 +02:00
power_acpi_cpufreq.h
power_common.c power: refactor ACPI and intel_pstate support 2021-07-08 22:32:13 +02:00
power_common.h power: refactor ACPI and intel_pstate support 2021-07-08 22:32:13 +02:00
power_cppc_cpufreq.c power: check frequencies count before filling array 2021-07-24 10:09:58 +02:00
power_cppc_cpufreq.h power: support cppc_cpufreq driver 2021-07-09 16:04:46 +02:00
power_kvm_vm.c
power_kvm_vm.h
power_pstate_cpufreq.c power: check frequencies count before filling array 2021-07-24 10:09:58 +02:00
power_pstate_cpufreq.h
rte_power_empty_poll.c
rte_power_empty_poll.h
rte_power_guest_channel.h
rte_power_pmd_mgmt.c power: fix multi-queue scale mode 2021-07-22 21:36:30 +02:00
rte_power_pmd_mgmt.h power: make ethdev power management thread unsafe 2021-07-09 21:13:13 +02:00
rte_power.c power: support cppc_cpufreq driver 2021-07-09 16:04:46 +02:00
rte_power.h power: support cppc_cpufreq driver 2021-07-09 16:04:46 +02:00
version.map