accessing freed memory.
Bugzilla ID: 1683
Signed-off-by: Rui Ferreira
---
lib/eal/freebsd/eal.c | 3 ++-
lib/eal/freebsd/eal_alarm.c | 8 +++-
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/lib/eal/freebsd/eal.c b/lib/eal/freebsd/eal.c
index d6fffa2170..21ce4e6b18 100644
traces
so the alarm cleanup must happen before eal_trace_fini to avoid
accessing freed memory.
Bugzilla ID: 1683
Signed-off-by: Rui Ferreira
---
.mailmap | 1 +
lib/eal/linux/eal.c | 3 ++-
lib/eal/linux/eal_alarm.c | 9 -
3 files changed, 11 insertions(+), 2 deletions
Linux and FreeBSD. I did not
include any changes for Windows since the same issue does not seem to apply
there (thread is actually cancelled, no shared ptr).
Bugzilla ID: 1683
Rui Ferreira (2):
fix eal/linux: unregister alarm callback before free
fix eal/freebsd: unregister alarm callback b
Hi. I'll try to have a look in the next couple days.
BR
> -Original Message-
> From: Thomas Monjalon
> Sent: Tuesday, May 27, 2025 3:54 PM
> To: Rui Ferreira (A)
> Cc: dev@dpdk.org; sta...@dpdk.org; David Marchand
> ; Konstantin Ananyev
>
> Subject:
traces
so the alarm cleanup must happen before eal_trace_fini to avoid
accessing freed memory.
Bugzilla ID: 1683
Signed-off-by: Rui Ferreira
---
.mailmap | 1 +
lib/eal/linux/eal.c | 3 ++-
lib/eal/linux/eal_alarm.c | 9 -
3 files changed, 11 insertions(+), 2 deletions
terminates (eal_intr_thread_main) so
use rte_intr_callback_unregister_sync during cleanup to
ensure the callback is removed before freeing the ptr.
To be more defensive clear out the pointer and registration
variable if we can unregister.
Bugzilla ID: 1683
Signed-off-by: Rui Ferreira
---
.mailmap
6 matches
Mail list logo