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

2025-05-29 Thread Rui Ferreira (A)
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:

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

2025-05-27 Thread Thomas Monjalon
Hello, Did you see the comment from David about fixing for Windows and FreeBSD at the same time? I think you just need to apply the same logic in 3 different places. If you cannot test all, that's OK to submit the changes without full coverage testing. Thank you 22/05/2025 17:59, Rui Ferreira

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

2025-05-27 Thread Konstantin Ananyev
> 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. The interrupt thread can dereference the ptr after free (from > the alarm callback). free is called when the main thread cleans up. > > The interrupt

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

2025-05-22 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. The interrupt thread can dereference the ptr after free (from the alarm callback). free is called when the main thread cleans up. The interrupt thread never te