[dpdk-dev] [Bug 19] Crash on initialization if first RTE_MAX_LCORE cores are disabled

bugzilla at dpdk.org bugzilla at dpdk.org
Sun Apr 1 14:24:58 CEST 2018


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: dev at dpdk.org
          Reporter: solal.pirelli at gmail.com
  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.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the dev mailing list