[PATCH 2/2] ntdll: Increase kernel stack size.

Paul Gofman pgofman at codeweavers.com
Thu Feb 10 08:06:16 CST 2022


Signed-off-by: Paul Gofman <pgofman at codeweavers.com>
---
    The observed problem is seen as semi-random crashes in Resident Evil Village
    reproducible on Nvidia. At least vkCreateComputePipelines() sometimes needs more stack
    space than currently available. Since winevulkan switch to wine_unix_call interface
    most of the native Vulkan calls go from syscall stack which size is quite small. This
    might also be a potential issue with the other native Unix libraries.

 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 07c7bebba4d..248a11479c1 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 = 0x60000;
 static const SIZE_T kernel_stack_guard_size = 0x1000;
 static const SIZE_T min_kernel_stack  = 0x3000;
 static const LONG teb_offset = 0x2000;
-- 
2.34.1




More information about the wine-devel mailing list