login
Header Space

 
 

[patch 18/18] x86_64: fix 2.6.18 regression - PTRACE_OLDSETOPTIONS should be accepted

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-kernel@...>, <stable@...>, Andrew Morton <akpm@...>
Cc: Justin Forbes <jmforbes@...>, Zwane Mwaikambo <zwane@...>, Theodore Ts'o <tytso@...>, Randy Dunlap <rdunlap@...>, Dave Jones <davej@...>, Chuck Wolber <chuckw@...>, Chris Wedgwood <reviews@...>, Michael Krufky <mkrufky@...>, <torvalds@...>, <akpm@...>, <alan@...>, Jeff Dike <jdike@...>, Andi Kleen <ak@...>, <user-mode-linux-devel@...>, Paolo Blaisorblade Giarrusso <blaisorblade@...>
Date: Tuesday, February 20, 2007 - 9:51 pm

-stable review patch.  If anyone has any objections, please let us know.

------------------
From: "Paolo 'Blaisorblade' Giarrusso" <blaisorblade@yahoo.it>

Also PTRACE_OLDSETOPTIONS should be accepted, as done by kernel/ptrace.c and
forced by binary compatibility. UML/32bit breaks because of this - since it is wise
enough to use PTRACE_OLDSETOPTIONS to be binary compatible with 2.4 host
kernels.

Until 2.6.17 (commit f0f2d6536e3515b5b1b7ae97dc8f176860c8c2ce) we had:

       default:
                return sys_ptrace(request, pid, addr, data);

Instead here we have:
        case PTRACE_GET_THREAD_AREA:
	case ...:
                return sys_ptrace(request, pid, addr, data);

        default:
                return -EINVAL;

This change was a style change - when a case is added, it must be explicitly
tested this way. In this case, not enough testing was done.

Cc: Andi Kleen <ak@suse.de>
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

---
 arch/x86_64/ia32/ptrace32.c |    1 +
 1 file changed, 1 insertion(+)

--- linux-2.6.18.7.orig/arch/x86_64/ia32/ptrace32.c
+++ linux-2.6.18.7/arch/x86_64/ia32/ptrace32.c
@@ -239,6 +239,7 @@ asmlinkage long sys32_ptrace(long reques
 	case PTRACE_SINGLESTEP:
 	case PTRACE_DETACH:
 	case PTRACE_SYSCALL:
+	case PTRACE_OLDSETOPTIONS:
 	case PTRACE_SETOPTIONS:
 		return sys_ptrace(request, pid, addr, data); 
 

--
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch 00/18] 2.6.18-stable review, Greg KH, (Tue Feb 20, 9:49 pm)
Re: [patch 00/18] 2.6.18-stable review, Hugh Dickins, (Fri Feb 23, 4:21 pm)
Re: [stable] [patch 00/18] 2.6.18-stable review, Chris Wright, (Fri Feb 23, 4:34 pm)
Re: [stable] [patch 00/18] 2.6.18-stable review, Hugh Dickins, (Fri Feb 23, 5:13 pm)
Re: [patch 00/18] 2.6.18-stable review, S.Çağlar, (Wed Feb 21, 7:55 am)
Re: [patch 00/18] 2.6.18-stable review, Adrian Bunk, (Sun Feb 25, 8:18 pm)
Re: [patch 00/18] 2.6.18-stable review, S.Çağlar, (Mon Mar 5, 9:44 am)
Re: [patch 00/18] 2.6.18-stable review, Greg KH, (Mon Mar 5, 3:26 pm)
Re: [patch 00/18] 2.6.18-stable review, S.Çağlar, (Mon Mar 5, 4:13 pm)
Re: [stable] [patch 00/18] 2.6.18-stable review, Greg KH, (Wed Feb 21, 1:34 pm)
Re: [stable] [patch 00/18] 2.6.18-stable review, Adrian Bunk, (Sun Feb 25, 8:00 pm)
Re: [stable] [patch 00/18] 2.6.18-stable review, Willy Tarreau, (Thu Feb 22, 1:42 am)
Re: [stable] [patch 00/18] 2.6.18-stable review, Ismail , (Wed Feb 21, 2:45 pm)
Re: [stable] [patch 00/18] 2.6.18-stable review, S.Çağlar, (Wed Feb 21, 2:30 pm)
[patch 15/18] V4L: fix ks0127 status flags, Greg KH, (Tue Feb 20, 9:51 pm)
[patch 18/18] x86_64: fix 2.6.18 regression - PTRACE_OLDSETO..., Greg KH, (Tue Feb 20, 9:51 pm)
[patch 13/18] V4L: cx88: Fix lockup on suspend, Greg KH, (Tue Feb 20, 9:51 pm)
Re: [patch 13/18] V4L: cx88: Fix lockup on suspend, Michael Krufky, (Wed Feb 21, 9:14 pm)
[patch 03/18] Dont leak NT bit into next task, Greg KH, (Tue Feb 20, 9:49 pm)
[patch 01/18] bcm43xx: Fix for oops on resume, Greg KH, (Tue Feb 20, 9:49 pm)
Re: [patch 01/18] bcm43xx: Fix for oops on resume, Pavel Machek, (Fri Feb 23, 1:25 am)
Re: [patch 01/18] bcm43xx: Fix for oops on resume, Larry Finger, (Sat Feb 24, 10:30 pm)
Re: [patch 01/18] bcm43xx: Fix for oops on resume, Andrew Morton, (Sun Feb 25, 4:53 am)
speck-geostationary