Re: 2.6.21-rc2-mm1

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Russell King
Date: Saturday, March 3, 2007 - 11:03 am

On Fri, Mar 02, 2007 at 03:15:40AM -0800, Andrew Morton wrote:

Here's some comments on it:

1. support for changing the syscall number.  From the changes which
   Roland has done in arch/arm/kernel/ptrace.c, it seems that we are
   no longer allowed to change the syscall number.  Why is this?

   We need to support a special "SET_SYSCALL" call which is passed the
   new syscall number.  This needs to be passed to the child, and
   when the child returns from syscall_trace(), it needs to return this
   new data as the system call number.

2. tracehook_abort_syscall can not be supported on ARM - syscall numbers
   aren't (always) passed through the register set.

3. single step support.  no idea how to do this with utrace; the
   documentation seems to imply that utrace will not support software-
   based single stepping when it involves modifying the text, and that
   it can continue to be supported via the ptrace compatibility.

   Since this is the only way to do single stepping on ARM, this means
   that we need to support ptrace indefinitely.

So, as I see it, supporting utrace on ARM would be a major backwards
step as things stand at the moment - no single stepping, and no ability
to modify syscalls.  Unfortunately, not having the single step ability
makes debugging pretty much useless, so this is something which must
be supported.

Finally, there's quite a bit of cleanup work which needs to be done for
utrace - namely removing all the pesky linux/ptrace.h includes scattered
throughout the tree.  This is by far the biggest problem I've faced in
trying to tackle utrace soo far.

Attached are two patches (yes yes, but they're not for applying, only
for reading - ergo no signoffs).  The first removes a whole wodge of
linux/ptrace.h includes.  The second is the preliminary, completely
untested ARM utrace support - in particular look for the FIXMEs.

-- 
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
2.6.21-rc2-mm1, Andrew Morton, (Fri Mar 2, 4:00 am)
Re: 2.6.21-rc2-mm1, Andrew Morton, (Fri Mar 2, 4:04 am)
Re: 2.6.21-rc2-mm1, Russell King, (Fri Mar 2, 4:04 am)
Re: 2.6.21-rc2-mm1, Andrew Morton, (Fri Mar 2, 4:08 am)
Re: 2.6.21-rc2-mm1, Russell King, (Fri Mar 2, 4:10 am)
Re: 2.6.21-rc2-mm1, Andrew Morton, (Fri Mar 2, 4:15 am)
Re: 2.6.21-rc2-mm1, Bryan Wu, (Fri Mar 2, 7:24 am)
[-mm patch] cpu_idle: fix build break , Frederik Deweerdt, (Fri Mar 2, 7:40 am)
Re: [-mm patch] cpu_idle: fix build break, Venkatesh Pallipadi, (Fri Mar 2, 8:24 am)
Re: 2.6.21-rc2-mm1, Michal Piotrowski, (Fri Mar 2, 8:56 am)
Re: 2.6.21-rc2-mm1 - fb_ddc_read() not defined, Valdis.Kletnieks, (Fri Mar 2, 9:03 am)
Re: [-mm patch] cpu_idle: fix build break, Frederik Deweerdt, (Fri Mar 2, 9:24 am)
Re: 2.6.21-rc2-mm1 - fb_ddc_read() not defined, James Simmons, (Fri Mar 2, 9:31 am)
Re: 2.6.21-rc2-mm1, Badari Pulavarty, (Fri Mar 2, 9:32 am)
Re: 2.6.21-rc2-mm1 - fb_ddc_read() not defined, Valdis.Kletnieks, (Fri Mar 2, 9:51 am)
[patch -mm] x86_64: fake numa cmdline flag fix, David Rientjes, (Fri Mar 2, 10:03 am)
Re: 2.6.21-rc2-mm1, Andrew Morton, (Fri Mar 2, 10:10 am)
Re: 2.6.21-rc2-mm1, Badari Pulavarty, (Fri Mar 2, 10:15 am)
Re: [patch -mm] x86_64: fake numa cmdline flag fix, Badari Pulavarty, (Fri Mar 2, 10:21 am)
Re: 2.6.21-rc2-mm1, Randy Dunlap, (Fri Mar 2, 10:30 am)
Re: 2.6.21-rc2-mm1: pata_via: wrong cable detection, Laurent Riffard, (Fri Mar 2, 3:52 pm)
Re: 2.6.21-rc2-mm1, Michal Piotrowski, (Fri Mar 2, 4:42 pm)
Re: 2.6.21-rc2-mm1, Andrew Morton, (Fri Mar 2, 5:40 pm)
Re: 2.6.21-rc2-mm1, Michal Piotrowski, (Fri Mar 2, 6:22 pm)
Re: 2.6.21-rc2-mm1, Andrew Morton, (Fri Mar 2, 6:41 pm)
Re: 2.6.21-rc2-mm1 - build error with CONFIG_NO_HZ=y and C ..., Antonino A. Daplas, (Sat Mar 3, 12:45 am)
Re: 2.6.21-rc2-mm1, Michal Piotrowski, (Sat Mar 3, 3:08 am)
Re: 2.6.21-rc2-mm1, Andrew Morton, (Sat Mar 3, 5:06 am)
Re: 2.6.21-rc2-mm1, Russell King, (Sat Mar 3, 11:03 am)
Re: 2.6.21-rc2-mm1, Mariusz Kozlowski, (Sun Mar 4, 2:07 am)
Re: 2.6.21-rc2-mm1, Mariusz Kozlowski, (Sun Mar 4, 2:48 am)
Re: 2.6.21-rc2-mm1, Andrew Morton, (Sun Mar 4, 4:34 am)
Re: 2.6.21-rc2-mm1, Mariusz Kozlowski, (Sun Mar 4, 5:01 am)
Re: 2.6.21-rc2-mm1, Mariusz Kozlowski, (Sun Mar 4, 10:06 am)
Re: 2.6.21-rc2-mm1, Michal Piotrowski, (Sun Mar 4, 10:13 am)
Re: 2.6.21-rc2-mm1, Michal Piotrowski, (Sun Mar 4, 10:20 am)
Re: 2.6.21-rc2-mm1, J.A. , (Sun Mar 4, 5:11 pm)
Re: 2.6.21-rc2-mm1, Andrew Morton, (Sun Mar 4, 5:29 pm)
Re: 2.6.21-rc2-mm1, Andrew Morton, (Sun Mar 4, 6:17 pm)
[-mm patch] saa7134: fix MODULES=n compilation, Adrian Bunk, (Sun Mar 4, 6:47 pm)
2.6.21-rc2-mm1: drivers/net/wireless/ compile error, Adrian Bunk, (Sun Mar 4, 6:47 pm)
[-mm patch] drivers/cpuidle/: make code static, Adrian Bunk, (Sun Mar 4, 6:47 pm)
[-mm patch] make fb_deferred_io_mkwrite() static, Adrian Bunk, (Sun Mar 4, 6:49 pm)
[-mm patch] fix the ROMFS_* dependencies, Adrian Bunk, (Sun Mar 4, 6:49 pm)
Re: 2.6.21-rc2-mm1, Andrew Morton, (Mon Mar 5, 3:14 am)
Re: 2.6.21-rc2-mm1, Antonino A. Daplas, (Mon Mar 5, 3:30 am)
arm utrace, Roland McGrath, (Mon Mar 5, 3:41 am)
Re: 2.6.21-rc2-mm1: drivers/net/wireless/ compile error, Michael Buesch, (Mon Mar 5, 3:41 am)
Re: [-mm patch] fix the ROMFS_* dependencies , David Howells, (Mon Mar 5, 6:36 am)
Re: 2.6.21-rc2-mm1, Zan Lynx, (Mon Mar 5, 9:34 am)
Re: 2.6.21-rc2-mm1, J.A. , (Mon Mar 5, 3:20 pm)
Re: 2.6.21-rc2-mm1, Andrew Morton, (Mon Mar 5, 4:11 pm)
i2c vs nVidia [Re: 2.6.21-rc2-mm1], J.A. , (Mon Mar 5, 5:16 pm)
Re: i2c vs nVidia [Re: 2.6.21-rc2-mm1], Andrew Morton, (Mon Mar 5, 5:33 pm)
Re: i2c vs nVidia [Re: 2.6.21-rc2-mm1], Greg KH, (Mon Mar 5, 5:44 pm)
[PATCH] sched: fix idle at tick, Con Kolivas, (Mon Mar 5, 11:25 pm)
Re: i2c vs nVidia [Re: 2.6.21-rc2-mm1], Jean Delvare, (Tue Mar 6, 1:45 am)
Re: i2c vs nVidia [Re: 2.6.21-rc2-mm1], Jean Delvare, (Tue Mar 6, 3:56 am)
Re: [-mm patch] fix the ROMFS_* dependencies, Adrian Bunk, (Tue Mar 6, 4:43 pm)