[PATCH v2 0/2] MR85: ntdll: Fix Wow64 crashes when many threads are created.

Brendan Shanks (@bshanks) wine at gitlab.winehq.org
Fri May 20 15:23:38 CDT 2022


On both Mac and Linux under Wow64, after ~120 threads are created, the 64-bit stacks start to be allocated above 4GB. 

This triggered crashes in alloc_fs_sel() and when the result of get_cpu_area() was used.
(On Mac the ntdll threadpool tests reproduced this, but on both platforms a test app that created 256 threads also worked).

--
  v2: ntdll: Avoid truncating pointer to 32-bits in get_cpu_area().
      ntdll: Use 32-bit stack in alloc_fs_sel().
 
https://gitlab.winehq.org/wine/wine/-/merge_requests/85



More information about the wine-devel mailing list