[DPDK/ethdev Bug 1554] Use after free in cnxk_ethdev
bugzilla at dpdk.org
bugzilla at dpdk.org
Fri Sep 27 20:27:29 CEST 2024
https://bugs.dpdk.org/show_bug.cgi?id=1554
Bug ID: 1554
Summary: Use after free in cnxk_ethdev
Product: DPDK
Version: 24.11
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: major
Priority: Normal
Component: ethdev
Assignee: dev at dpdk.org
Reporter: stephen at networkplumber.org
Target Milestone: ---
If GCC malloc function tracing attributes are added, the the following error is
detected at compile time:
../drivers/net/cnxk/cnxk_ethdev_sec.c: In function
‘cnxk_nix_inl_custom_meta_pool_cb’:
../drivers/common/cnxk/roc_platform.h:196:32: warning: pointer ‘hp’ used after
‘rte_mempool_free’ [-Wuse-after-free]
196 | #define plt_free rte_free
../drivers/net/cnxk/cnxk_ethdev_sec.c:140:17: note: in expansion of macro
‘plt_free’
140 | plt_free(hp->pool_config);
| ^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_sec.c:139:17: note: call to ‘rte_mempool_free’
here
139 | rte_mempool_free(hp);
| ^~~~~~~~~~~~~~~~~~~~
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/dev/attachments/20240927/25b4da60/attachment.htm>
More information about the dev
mailing list