winafl icon indicating copy to clipboard operation
winafl copied to clipboard

Incorrect detection count threads on multiCPU motherboards

Open GermanAizek opened this issue 1 year ago • 2 comments

@ifratric, on Windows any version, count threads is incorrectly detected. In my case, I have motherboard with two sockets 18 cores and 36 threads, he determined count threads for only one processor.

image

image

GermanAizek avatar Jan 19 '24 12:01 GermanAizek

Similar issues and my PRs with C++ fixes here: https://github.com/git-for-windows/git/issues/4766

GermanAizek avatar Jan 19 '24 12:01 GermanAizek

Thanks for reporting! Looks like how we compute cpu_core_count (https://github.com/googleprojectzero/winafl/blob/master/afl-fuzz.c#L7821) would need to change. And I'm not currently sure if bind_to_free_cpu (https://github.com/googleprojectzero/winafl/blob/master/afl-fuzz.c#L475) would also need to be changed. In any case, a PR would be highly appreciated :)

ifratric avatar Jan 22 '24 08:01 ifratric