[dpdk-stable] [dpdk-dev] [PATCH dpdk-dev] rte_random: fix crash when random init

Stephen Hemminger stephen at networkplumber.org
Tue Apr 14 06:06:58 CEST 2020


On Sun, 12 Apr 2020 16:27:53 +0800
xiangxia.m.yue at gmail.com wrote:

> From: Tonghao Zhang <xiangxia.m.yue at gmail.com>
> 
> When rte_rand_init is invoked, and the kernel
> (kernel version < 3.17) running dpdk does't support
> *getentropy, at the same time, the cpu does't support
> rdseed, the rte_rand_init will invoke rte_get_timer_cycles
> which function will invoke rte_get_hpet_cycles
> (RTE_LIBEAL_USE_HPET was enabled) while *eal_hpet is not
> allocated.
> 
> Fixes: faf8fd252785 ("eal: improve entropy for initial PRNG seed")
> Fixes: 3f002f069612 ("eal: replace libc-based random generation with LFSR")
> 
> Cc: stable at dpdk.org
> 
> Signed-off-by: Tonghao Zhang <xiangxia.m.yue at gmail.com>

Are you sure this patch won't change current default to use HPET (which is slower)?
Before this patch users would get TSC as default.


More information about the stable mailing list