All of lore.kernel.org
 help / color / mirror / Atom feed
* [DPDK/ethdev Bug 2041] baseband/null: socket_id parsed two bytes wide
@ 2026-09-13 17:38 bugzilla
  0 siblings, 0 replies; only message in thread
From: bugzilla @ 2026-09-13 17:38 UTC (permalink / raw)
  To: dev

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: dev@dpdk.org
          Reporter: stephen@networkplumber.org
  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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-13 17:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-13 17:38 [DPDK/ethdev Bug 2041] baseband/null: socket_id parsed two bytes wide bugzilla

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.