public inbox for dev@dpdk.org
 help / color / mirror / Atom feed
* [DPDK/ethdev Bug 1710] net/bnxt build failure with LTO enabled
@ 2025-05-21 15:21 bugzilla
  2026-01-19 18:47 ` bugzilla
  0 siblings, 1 reply; 2+ messages in thread
From: bugzilla @ 2025-05-21 15:21 UTC (permalink / raw)
  To: dev

[-- Attachment #1: Type: text/plain, Size: 1455 bytes --]

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

            Bug ID: 1710
           Summary: net/bnxt build failure with LTO enabled
           Product: DPDK
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: ethdev
          Assignee: dev@dpdk.org
          Reporter: stephen@networkplumber.org
  Target Milestone: ---

3472/3591] Linking target drivers/librte_net_bnxt.so.25.2
In function ‘tfo_open’,
    inlined from ‘tfc_open’ at ../drivers/net/bnxt/tf_core/v3/tfc_init.c:34:2,
    inlined from ‘ulp_tfc_ctx_attach’ at
../drivers/net/bnxt/tf_ulp/bnxt_ulp_tfc.c:783:7:
../drivers/net/bnxt/tf_core/v3/tfo.c:108:17: warning: ‘rte_free’ called on
pointer ‘bp_44(D)’ with nonzero offset 800 [-Wfree-nonheap-object]
  108 |                 rte_free(tfo);
      |                 ^
In function ‘tfo_open’,
    inlined from ‘tfc_open’ at ../drivers/net/bnxt/tf_core/v3/tfc_init.c:34:2,
    inlined from ‘ulp_tfc_init’ at
../drivers/net/bnxt/tf_ulp/bnxt_ulp_tfc.c:957:7:
../drivers/net/bnxt/tf_core/v3/tfo.c:108:17: warning: ‘rte_free’ called on
pointer ‘bp_74(D)’ with nonzero offset 800 [-Wfree-nonheap-object]
  108 |                 rte_free(tfo);
      |                 ^

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

[-- Attachment #2: Type: text/html, Size: 3322 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [DPDK/ethdev Bug 1710] net/bnxt build failure with LTO enabled
  2025-05-21 15:21 [DPDK/ethdev Bug 1710] net/bnxt build failure with LTO enabled bugzilla
@ 2026-01-19 18:47 ` bugzilla
  0 siblings, 0 replies; 2+ messages in thread
From: bugzilla @ 2026-01-19 18:47 UTC (permalink / raw)
  To: dev

http://bugs.dpdk.org/show_bug.cgi?id=1710

Stephen Hemminger (stephen@networkplumber.org) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #2 from Stephen Hemminger (stephen@networkplumber.org) ---
Fixed by

commit 49b1673ec6693a673b4dc07984023f481cce4d96
Author: Stephen Hemminger <stephen@networkplumber.org>
Date:   Wed May 21 12:37:27 2025 -0700

    net/bnxt: fix free of not allocated object

    This was found as error when compiling with LTO.
    The function allocates new data with rte_zmalloc and then
    stores pointer in the pointer-to-pointer passed as argument.
    In the unwind case, it would call rte_free() with wrong one.

    Fixes: 80317ff6adfd ("net/bnxt/tf_core: support Thor2")

    Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-01-19 18:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-21 15:21 [DPDK/ethdev Bug 1710] net/bnxt build failure with LTO enabled bugzilla
2026-01-19 18:47 ` bugzilla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox