[dpdk-stable] [PATCH v3 1/1] power: check freq count before filling the freqs array

Thomas Monjalon thomas at monjalon.net
Sat Jul 24 10:11:01 CEST 2021


23/07/2021 10:37, David Hunt:
> Hi Richael,
> 
> On 23/7/2021 3:22 AM, Richael Zhuang wrote:
> > 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: ef1cc88f1837 ("power: support cppc_cpufreq driver")
> > Cc: richael.zhuang at arm.com
> > Cc: stable at dpdk.org
> >
> > Signed-off-by: Richael Zhuang <richael.zhuang at arm.com>
> 
> LGTM to fix the coverity issue.
> 
> Acked-by: David Hunt <david.hunt at intel.com>

Removed the space before ":" and applied, thanks.




More information about the stable mailing list