Hello, On Wed, Mar 11, 2020 at 5:21 PM Van Haaren, Harry <harry.van.haa...@intel.com> wrote: > Issue was that service cores can remain running while main thread > has freed service-core memory, later racy return of service lcore > then causes use-after-free. > > This commit fixes it by > A) resetting all service cores to return > B) waiting for them to return > C) freeing memory > > I am confident in the fix.
Ok. > > > a race-condition on eal_cleanup(), where the service core > > > could still be executing while the main thread has already > > > free-d the service memory, leading to a segfault. > > > > > > Fixes: 21698354c832 ("service: introduce service cores concept") The race per se was introduced with: da23f0aa87d8 ("service: fix memory leak with new function") -- David Marchand