Commit 6f55a131 authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

ntdll: Respect red zone in usr1_handler() on x64.

Fixes a regression introduced by efd3d310.
parent c1b8db0c
...@@ -2152,7 +2152,7 @@ static void usr1_handler( int signal, siginfo_t *siginfo, void *sigcontext ) ...@@ -2152,7 +2152,7 @@ static void usr1_handler( int signal, siginfo_t *siginfo, void *sigcontext )
ULONG64 saved_compaction = 0; ULONG64 saved_compaction = 0;
struct xcontext *context; struct xcontext *context;
context = (struct xcontext *)(((ULONG_PTR)RSP_sig(ucontext) - sizeof(*context)) & ~15); context = (struct xcontext *)(((ULONG_PTR)RSP_sig(ucontext) - 128 /* red zone */ - sizeof(*context)) & ~15);
if ((char *)context < (char *)ntdll_get_thread_data()->kernel_stack) if ((char *)context < (char *)ntdll_get_thread_data()->kernel_stack)
{ {
ERR_(seh)( "kernel stack overflow.\n" ); ERR_(seh)( "kernel stack overflow.\n" );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment