From 75bccf99d1f90555c998f2c9b907ed9292ce47f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Bernon?= Date: Fri, 29 Oct 2021 18:35:14 +0200 Subject: [PATCH] server: Remove dr7 PTRACE_POKEUSER workaround. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It is needed for Linux Kernel version 4.18, and has been fixed in 4.19. Also see https://bugzilla.kernel.org/show_bug.cgi?id=200965 for a more detailed description of the regression and the fix. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46472 Signed-off-by: RĂ©mi Bernon Signed-off-by: Alexandre Julliard --- server/ptrace.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/server/ptrace.c b/server/ptrace.c index b9dd9e9539a..1875e1dfd56 100644 --- a/server/ptrace.c +++ b/server/ptrace.c @@ -627,9 +627,6 @@ void set_thread_context( struct thread *thread, const context_t *context, unsign if (!suspend_for_ptrace( thread )) return; - /* force all breakpoint lengths to 1, workaround for kernel bug 200965 */ - ptrace( PTRACE_POKEUSER, pid, DR_OFFSET(7), 0x11110055 ); - switch (context->machine) { case IMAGE_FILE_MACHINE_I386: