DPDK patches and discussions
 help / color / mirror / Atom feed
* [Bug 1111] i40e: buffer size fields may overflow in Rx descriptors
@ 2022-10-19 12:57 bugzilla
  0 siblings, 0 replies; only message in thread
From: bugzilla @ 2022-10-19 12:57 UTC (permalink / raw)
  To: dev

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

            Bug ID: 1111
           Summary: i40e: buffer size fields may overflow in Rx
                    descriptors
           Product: DPDK
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: ethdev
          Assignee: dev@dpdk.org
          Reporter: ivan.malov@oktetlabs.ru
  Target Milestone: ---

Created attachment 226
  --> https://bugs.dpdk.org/attachment.cgi?id=226&action=edit
probable-fix

It appears that opensource ethdev tests [1] have detected a bug in
i40e PMD: by the looks of it, Rx descriptor fill-out is not robust
against overflow in data buffer size field, which happens when the
user provides a mempool with excessively large objects on Rx setup.

A test log example can be found at [2]. In it, a mempool with mbuf
data size of 32900 B is used. The test sends one packet to the NIC,
but the PMD sees 5 packets which have no payload. Manual debugging
indicates that, in the driver, round-up gives the value of 32768 B,
which then gives the value of 256 to use in 7-bit "dbuff" field of
an Rx descriptor ([3]). The value overflows, hence the test result.

A probable fix is attached to the ticket.

[1] http://mails.dpdk.org/archives/dev/2022-October/251663.html
[2] https://ts-factory.io/bublik/v2/log/123183?focusId=123879&mode=treeAndlog
[3]
https://github.com/DPDK/dpdk/blob/main/drivers/net/i40e/base/i40e_lan_hmc.c#L709

-- 
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:[~2022-10-19 12:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-19 12:57 [Bug 1111] i40e: buffer size fields may overflow in Rx descriptors bugzilla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).