[PATCH] x86_64: disallow multi-byte hardware execution breakpoints
While AMD formally permits multi-byte execution breakpoints, Intel disallows 8-byte as much as 2- or 4-byte ones. Signed-off-by: Jan Beulich <jbeulich@novell.com> Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
3240114d23
commit
893efca927
1 changed files with 3 additions and 3 deletions
|
@ -422,7 +422,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
|
||||||
* this awkward check.*/
|
* this awkward check.*/
|
||||||
data &= ~DR_CONTROL_RESERVED;
|
data &= ~DR_CONTROL_RESERVED;
|
||||||
for(i=0; i<4; i++)
|
for(i=0; i<4; i++)
|
||||||
if ((0x5454 >> ((data >> (16 + 4*i)) & 0xf)) & 1)
|
if ((0x5554 >> ((data >> (16 + 4*i)) & 0xf)) & 1)
|
||||||
break;
|
break;
|
||||||
if (i == 4) {
|
if (i == 4) {
|
||||||
child->thread.debugreg7 = data;
|
child->thread.debugreg7 = data;
|
||||||
|
|
Loading…
Add table
Reference in a new issue