[PATCH v2 2/2] fix eal/freebsd: unregister alarm callback before free
Bruce Richardson
bruce.richardson at intel.com
Tue Jun 3 10:29:03 CEST 2025
On Fri, May 30, 2025 at 09:18:44AM +0100, Rui Ferreira wrote:
> Unregister callback on cleanup to avoid use after free from the
> interrupt thread (eal_intr_thread_main).
>
> To be more defensive, set ptr to NULL if we can unregister.
>
> rte_intr_callback_unregister_sync may (optionally) use traces
> so the alarm cleanup must happen before eal_trace_fini to avoid
> accessing freed memory.
>
> Bugzilla ID: 1683
Source of bug is probably:
Fixes: 90b13ab8d4f7 ("alarm: remove direct access to interrupt handle")
>
> Signed-off-by: Rui Ferreira <rui.ferreira1 at h-partners.com>
Patch looks ok to me.
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
More information about the dev
mailing list