RE: [PATCH] eal/linux: unregister alarm callback before free ptr

2025-05-21 Thread Konstantin Ananyev
> Subject: [PATCH] eal/linux: unregister alarm callback before free ptr > > This was flagged by Address sanitizer as a use after free. The > intr_handle ptr is shared between the main thread and the interrupt > thread, and the interrupt thread can dereference the ptr after f

Re: [PATCH] eal/linux: unregister alarm callback before free ptr

2025-05-21 Thread David Marchand
On Tue, May 20, 2025 at 5:08 PM Rui Ferreira wrote: > > This was flagged by Address sanitizer as a use after free. The > intr_handle ptr is shared between the main thread and the interrupt > thread, and the interrupt thread can dereference the ptr after free > is called when the main thread cleans

[PATCH] eal/linux: unregister alarm callback before free ptr

2025-05-20 Thread Rui Ferreira
This was flagged by Address sanitizer as a use after free. The intr_handle ptr is shared between the main thread and the interrupt thread, and the interrupt thread can dereference the ptr after free is called when the main thread cleans up (from the alarm callback). The interrupt thread never term