From 338fc52491b32707e3d57447582fa877b8b0917d Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 5 Dec 2006 15:42:53 +0100 Subject: [PATCH] kthread: Don't make the stack executable by default. --- loader/kthread.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/loader/kthread.c b/loader/kthread.c index 9c3e0edb483..91f00e40cad 100644 --- a/loader/kthread.c +++ b/loader/kthread.c @@ -237,8 +237,7 @@ static int create_thread( struct wine_pthread_thread_info *info ) { if (!info->stack_base) { - info->stack_base = wine_anon_mmap( NULL, info->stack_size, - PROT_READ | PROT_WRITE | PROT_EXEC, 0 ); + info->stack_base = wine_anon_mmap( NULL, info->stack_size, PROT_READ | PROT_WRITE, 0 ); if (info->stack_base == (void *)-1) return -1; } #ifdef HAVE_CLONE