https://bugs.dpdk.org/show_bug.cgi?id=2041

            Bug ID: 2041
           Summary: baseband/null: socket_id parsed two bytes wide
           Product: DPDK
           Version: 26.11
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: ethdev
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

drivers/baseband/null/bbdev_null.c:207

parse_u16_arg() stores a uint16_t. It is used for queues_num, which is a
uint16_t, but also for socket_id:

        rte_kvargs_process(kvlist, ..., &parse_u16_arg, &params->socket_id);

where socket_id is an int, so only two of four bytes are written.

(The same file also has a range check which only tests the upper bound, so
a negative socket id is accepted -- that part is not a size bug.)

Fixes: 7dc2b1589440 ("bb/null: add null base band device driver")

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

Reply via email to