From: Richard Weinberger Date: Fri, 31 Mar 2017 22:41:57 +0000 (+0200) Subject: um: Fix PTRACE_POKEUSER on x86_64 X-Git-Tag: v3.2.92~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c58b2c46505568ac70aadffc338a7a90272c6d4b;p=pandora-kernel.git um: Fix PTRACE_POKEUSER on x86_64 commit 9abc74a22d85ab29cef9896a2582a530da7e79bf upstream. This is broken since ever but sadly nobody noticed. Recent versions of GDB set DR_CONTROL unconditionally and UML dies due to a heap corruption. It turns out that the PTRACE_POKEUSER was copy&pasted from i386 and assumes that addresses are 4 bytes long. Fix that by using 8 as address size in the calculation. Reported-by: jie cao Signed-off-by: Richard Weinberger Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed