Thread (82 messages) 82 messages, 6 authors, 2025-09-18

Re: [PATCH v7] app/testpmd: monitor state of primary process when using secondary

From: Stephen Hemminger <stephen@networkplumber.org>
Date: 2025-08-08 15:28:44

On Fri,  8 Aug 2025 01:44:52 -0400
Khadem Ullah [off-list ref] wrote:
                 * run into use after free.
                 */
+               int ret;
                fprintf(stderr, "\nPrimary process is no longer active, exiting...\n");
+               ret = rte_eal_cleanup();
+               if (ret != 0)
+               rte_exit(EXIT_FAILURE,
+                        "EAL cleanup failed: %s\n", strerror(-ret));
                exit(EXIT_FAILURE);
No, that eal_cleanup references freed data when run in secondary.
That is the problem this is trying to solve.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help