rpms/kernel/devel kernel-2.6.spec, 1.2430, 1.2431 linux-2.6-utrace.patch, 1.7, 1.8

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Fri Jul 21 02:26:13 UTC 2006


Author: roland

Update of /cvs/dist/rpms/kernel/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv32394

Modified Files:
	kernel-2.6.spec linux-2.6-utrace.patch 
Log Message:
Second rev of last utrace update.



linux-2.6-utrace.patch:
 Documentation/utrace.txt                |  451 +++++++++
 arch/alpha/kernel/asm-offsets.c         |    2 
 arch/alpha/kernel/entry.S               |    4 
 arch/arm/kernel/ptrace.c                |   36 
 arch/arm26/kernel/ptrace.c              |   32 
 arch/frv/kernel/ptrace.c                |   15 
 arch/i386/kernel/entry.S                |    7 
 arch/i386/kernel/i387.c                 |  143 +--
 arch/i386/kernel/process.c              |    3 
 arch/i386/kernel/ptrace.c               |  862 ++++++++++--------
 arch/i386/kernel/signal.c               |   39 
 arch/i386/kernel/vm86.c                 |    7 
 arch/ia64/ia32/sys_ia32.c               |    2 
 arch/ia64/kernel/asm-offsets.c          |    2 
 arch/ia64/kernel/fsys.S                 |   16 
 arch/ia64/kernel/mca.c                  |    2 
 arch/ia64/kernel/ptrace.c               |   41 
 arch/mips/kernel/ptrace.c               |   21 
 arch/mips/kernel/sysirix.c              |    2 
 arch/powerpc/kernel/Makefile            |    4 
 arch/powerpc/kernel/asm-offsets.c       |    2 
 arch/powerpc/kernel/process.c           |    5 
 arch/powerpc/kernel/ptrace-common.h     |  161 ---
 arch/powerpc/kernel/ptrace.c            |  842 +++++++++---------
 arch/powerpc/kernel/ptrace32.c          |  436 ---------
 arch/powerpc/kernel/signal_32.c         |   56 +
 arch/powerpc/kernel/signal_64.c         |    4 
 arch/powerpc/kernel/sys_ppc32.c         |    5 
 arch/powerpc/lib/sstep.c                |    3 
 arch/powerpc/platforms/cell/spufs/run.c |    2 
 arch/ppc/kernel/asm-offsets.c           |    2 
 arch/s390/kernel/compat_linux.c         |    3 
 arch/s390/kernel/process.c              |    3 
 arch/s390/kernel/ptrace.c               |   79 -
 arch/s390/kernel/traps.c                |    6 
 arch/sparc64/kernel/ptrace.c            |   18 
 arch/x86_64/ia32/fpu32.c                |   92 +
 arch/x86_64/ia32/ia32_aout.c            |    6 
 arch/x86_64/ia32/ia32_signal.c          |    8 
 arch/x86_64/ia32/ia32entry.S            |    2 
 arch/x86_64/ia32/ptrace32.c             |  709 ++++++++++-----
 arch/x86_64/ia32/sys_ia32.c             |    5 
 arch/x86_64/kernel/process.c            |    5 
 arch/x86_64/kernel/ptrace.c             |  632 ++++++++-----
 arch/x86_64/kernel/signal.c             |   30 
 arch/x86_64/kernel/traps.c              |    8 
 arch/x86_64/mm/fault.c                  |    4 
 drivers/connector/cn_proc.c             |    4 
 fs/binfmt_aout.c                        |    6 
 fs/binfmt_elf.c                         |    6 
 fs/binfmt_elf_fdpic.c                   |    7 
 fs/binfmt_flat.c                        |    3 
 fs/binfmt_som.c                         |    2 
 fs/exec.c                               |   11 
 fs/proc/array.c                         |    7 
 fs/proc/base.c                          |   17 
 include/asm-i386/i387.h                 |   13 
 include/asm-i386/signal.h               |    4 
 include/asm-i386/thread_info.h          |    7 
 include/asm-i386/tracehook.h            |   73 +
 include/asm-powerpc/tracehook.h         |  302 ++++++
 include/asm-x86_64/fpu32.h              |    3 
 include/asm-x86_64/thread_info.h        |    2 
 include/asm-x86_64/tracehook.h          |  105 ++
 include/linux/init_task.h               |    3 
 include/linux/ptrace.h                  |   86 -
 include/linux/sched.h                   |   25 
 include/linux/tracehook.h               |  568 ++++++++++++
 include/linux/utrace.h                  |  459 +++++++++
 init/Kconfig                            |   29 
 kernel/Makefile                         |    1 
 kernel/exit.c                           |  251 +----
 kernel/fork.c                           |   60 -
 kernel/ptrace.c                         | 1470 ++++++++++++++++++++++++-------
 kernel/signal.c                         |  211 ----
 kernel/sys.c                            |    2 
 kernel/timer.c                          |    6 
 kernel/utrace.c                         | 1477 ++++++++++++++++++++++++++++++++
 security/selinux/hooks.c                |    6 
 79 files changed, 6857 insertions(+), 3188 deletions(-)

Index: linux-2.6-utrace.patch
===================================================================
RCS file: /cvs/dist/rpms/kernel/devel/linux-2.6-utrace.patch,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- linux-2.6-utrace.patch	21 Jul 2006 01:20:23 -0000	1.7
+++ linux-2.6-utrace.patch	21 Jul 2006 02:26:08 -0000	1.8
@@ -63,7 +63,7 @@
  include/asm-x86_64/thread_info.h        |    2 
  include/asm-x86_64/tracehook.h          |  105 ++
  include/linux/init_task.h               |    3 
- include/linux/ptrace.h                  |   82 +-
+ include/linux/ptrace.h                  |   86 +-
  include/linux/sched.h                   |   25 -
  include/linux/tracehook.h               |  568 ++++++++++++
  include/linux/utrace.h                  |  459 ++++++++++
@@ -77,7 +77,7 @@
  kernel/timer.c                          |    6 
  kernel/utrace.c                         | 1477 +++++++++++++++++++++++++++++++
  security/selinux/hooks.c                |    6 
- 79 files changed, 6848 insertions(+), 3183 deletions(-)
+ 79 files changed, 6852 insertions(+), 3183 deletions(-)
  create mode 100644 Documentation/utrace.txt
  delete arch/powerpc/kernel/ptrace-common.h
  delete arch/powerpc/kernel/ptrace32.c
@@ -1225,26 +1225,23 @@
 +#endif	/* linux/utrace.h */
 --- linux-2.6/include/linux/ptrace.h.utrace-ptrace-compat
 +++ linux-2.6/include/linux/ptrace.h
-@@ -49,66 +49,38 @@
+@@ -49,66 +49,42 @@
  #include <asm/ptrace.h>
  
  #ifdef __KERNEL__
+-/*
+- * Ptrace flags
+- *
+- * The owner ship rules for task->ptrace which holds the ptrace
+- * flags is simple.  When a task is running it owns it's task->ptrace
+- * flags.  When the a task is stopped the ptracer owns task->ptrace.
+- */
 +#include <linux/compiler.h>
 +#include <linux/types.h>
 +struct task_struct;
 +struct siginfo;
 +struct rusage;
 +
-+#ifdef CONFIG_PTRACE
- /*
-- * Ptrace flags
-- *
-- * The owner ship rules for task->ptrace which holds the ptrace
-- * flags is simple.  When a task is running it owns it's task->ptrace
-- * flags.  When the a task is stopped the ptracer owns task->ptrace.
-+ * Called in do_exit, after setting PF_EXITING, no locks are held.
-  */
-+void ptrace_exit(struct task_struct *tsk);
  
 -#define PT_PTRACED	0x00000001
 -#define PT_DTRACE	0x00000002	/* delayed trace (used on m68k, i386) */
@@ -1285,8 +1282,8 @@
 -			  struct task_struct *new_parent);
 -extern void __ptrace_unlink(struct task_struct *child);
 -extern void ptrace_untrace(struct task_struct *child);
--extern int ptrace_may_attach(struct task_struct *task);
--
+ extern int ptrace_may_attach(struct task_struct *task);
+ 
 -static inline void ptrace_link(struct task_struct *child,
 -			       struct task_struct *new_parent)
 -{
@@ -1294,6 +1291,13 @@
 -		__ptrace_link(child, new_parent);
 -}
 -static inline void ptrace_unlink(struct task_struct *child)
++
++#ifdef CONFIG_PTRACE
++/*
++ * Called in do_exit, after setting PF_EXITING, no locks are held.
++ */
++void ptrace_exit(struct task_struct *tsk);
++
 +/*
 + * Called in do_wait, with tasklist_lock held for reading.
 + * This reports any ptrace-child that is ready as do_wait would a normal child.




More information about the fedora-cvs-commits mailing list