Re: [PATCH] selftests: nci: Fix wrong size of status variables in nci_dev test

From: Jakub Kicinski

Date: Tue Jul 21 2026 - 18:51:35 EST


On Fri, 10 Jul 2026 13:23:00 +0200 Thomas Huth wrote:
> From: Thomas Huth <thuth@xxxxxxxxxx>
>
> pthread_join() stores the thread's return value (a "void *", i.e.
> 8 bytes on 64 bit computers) into the address of "status", but the
> "status" variable is declared as "int" with only 4 bytes. The extra
> four bytes clobber whatever is adjacent on the stack, which could
> silently corrupt other local variables. Use "intptr_t" to declare
> the "status" variables with the correct size.
>
> Signed-off-by: Thomas Huth <thuth@xxxxxxxxxx>

This should go via nfc, I just sent a patch to update MAINTAINERS.