Skip to contentSkip to conversation

Crash on initialization if first RTE_MAX_LCORE cores are disabled

Bug 19 [email protected] 1 participant 1 message Apr 1, 2018

lore
Share & tools
lore
#0 lore raw

https://dpdk.org/tracker/show_bug.cgi?id=19

Bug ID: 19
Summary: Crash on initialization if first RTE_MAX_LCORE cores
are disabled
Product: DPDK
Version: unspecified
Hardware: All
OS: All
Status: CONFIRMED
Severity: minor
Priority: Normal
Component: core
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---

In eal_common_options.c, the master lcore is found by looking for the first enabled lcore
(http://dpdk.org/browse/dpdk/tree/lib/librte_eal/common/eal_common_options.c?h=v18.02#n1213).

However, there is no check for the case where no enabled lcore is found. In the (unlikely!) case of all first RTE_MAX_LCORE cores being disabled, the next instruction will cause an out-of-bounds array access, probably crashing the app.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.