[PATCH 1/4] ntdll: Increase kernel stack size.

Paul Gofman pgofman at codeweavers.com
Mon Apr 11 05:26:31 CDT 2022


Signed-off-by: Paul Gofman <pgofman at codeweavers.com>
---
    All the native Linux calls are executed on kernel stack now and 128k is very small.
    The known problems in multiple games are for Vulkan pipeline creation calls which require
    large enough stack. The exact stack requirements are unknown neither with Mesa nor Nvidia
    but it is beleived that 1MB should suffice.

 dlls/ntdll/unix/unix_private.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/ntdll/unix/unix_private.h b/dlls/ntdll/unix/unix_private.h
index 86e87e6e29a..795fc148479 100644
--- a/dlls/ntdll/unix/unix_private.h
+++ b/dlls/ntdll/unix/unix_private.h
@@ -84,7 +84,7 @@ static const SIZE_T page_size = 0x1000;
 static const SIZE_T teb_size = 0x3800;  /* TEB64 + TEB32 + debug info */
 static const SIZE_T signal_stack_mask = 0xffff;
 static const SIZE_T signal_stack_size = 0x10000 - 0x3800;
-static const SIZE_T kernel_stack_size = 0x20000;
+static const SIZE_T kernel_stack_size = 0x100000;
 static const SIZE_T min_kernel_stack  = 0x2000;
 static const LONG teb_offset = 0x2000;
 
-- 
2.35.1




More information about the wine-devel mailing list