+ x86_64-fix-is_at_popf-for-compat-tasks.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     x86_64: fix is_at_popf() for compat tasks

has been added to the -mm tree.  Its filename is

     x86_64-fix-is_at_popf-for-compat-tasks.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: x86_64: fix is_at_popf() for compat tasks
From: Chuck Ebbert <76306.1226@xxxxxxxxxxxxxx>

When testing for the REX instruction prefix, first check for a 32-bit task
because in compat mode the REX prefix is an increment instruction.

Signed-off-by: Chuck Ebbert <76306.1226@xxxxxxxxxxxxxx>
Cc: Andi Kleen <ak@xxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 arch/x86_64/kernel/ptrace.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff -puN arch/x86_64/kernel/ptrace.c~x86_64-fix-is_at_popf-for-compat-tasks arch/x86_64/kernel/ptrace.c
--- a/arch/x86_64/kernel/ptrace.c~x86_64-fix-is_at_popf-for-compat-tasks
+++ a/arch/x86_64/kernel/ptrace.c
@@ -141,8 +141,11 @@ static int is_at_popf(struct task_struct
 		case 0xf0: case 0xf2: case 0xf3:
 			continue;
 
-		/* REX prefixes */
 		case 0x40 ... 0x4f:
+			if (is_compat_task())
+				/* register increment */
+				return 0;
+			/* REX prefix */
 			continue;
 
 			/* CHECKME: f0, f2, f3 */
_

Patches currently in -mm which might be from 76306.1226@xxxxxxxxxxxxxx are

x86_64-fix-is_at_popf-for-compat-tasks.patch
i386-print-stack-size-in-oops-messages.patch
sleazy-fpu-feature-i386-support.patch
i386-early-fault-handler.patch
i386-fix-recursive-faults-during-oops-when-current.patch
i386-show_registers-try-harder-to-print-failing.patch
spinlock_debug-dont-recompute-jiffies_per_loop.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux