2003-03-17 18:36:14

by James Bourne

[permalink] [raw]
Subject: 2.4.20 ptrace patch

Hi,
As per a previously stated email the patch for ptrace to 2.4.20 can
be found at http://www.hardrock.org/kernel/2.4.20/linux-2.4.20-ptrace.patch

This really only fixes the failure for the sched.h patch
to apply and removes the um tree from arch.

There of course are other minor changes (offsets etc).

It does compile on i386 and does boot. YMMV...

Regards
James Bourne
--
James Bourne, Supervisor Data Centre Operations
Mount Royal College, Calgary, AB, CA
http://www.mtroyal.ab.ca

******************************************************************************
This communication is intended for the use of the recipient to which it is
addressed, and may contain confidential, personal, and or privileged
information. Please contact the sender immediately if you are not the
intended recipient of this communication, and do not copy, distribute, or
take action relying on it. Any communication received in error, or
subsequent reply, should be deleted or destroyed.
******************************************************************************


"There are only 10 types of people in this world: those who
understand binary and those who don't."


2003-03-19 01:37:31

by Tom Vier

[permalink] [raw]
Subject: alpha fails Re: 2.4.20 ptrace patch

anyone have a quick fix?

kernel/kernel.o(.text+0x3488): In function `kernel_thread':
: undefined reference to `arch_kernel_thread'
kernel/kernel.o(.text+0x3490): In function `kernel_thread':
: undefined reference to `arch_kernel_thread'
make: *** [vmlinux] Error 1

--
Tom Vier <[email protected]>
DSA Key ID 0xE6CB97DA

2003-03-19 02:11:33

by Chris Wright

[permalink] [raw]
Subject: Re: alpha fails Re: 2.4.20 ptrace patch

* Tom Vier ([email protected]) wrote:
> anyone have a quick fix?
>
> kernel/kernel.o(.text+0x3488): In function `kernel_thread':
> : undefined reference to `arch_kernel_thread'
> kernel/kernel.o(.text+0x3490): In function `kernel_thread':
> : undefined reference to `arch_kernel_thread'
> make: *** [vmlinux] Error 1

Does this work (untested):

--- arch/alpha/kernel/entry.S.kmod Tue Mar 18 18:17:46 2003
+++ arch/alpha/kernel/entry.S Tue Mar 18 18:18:50 2003
@@ -234,8 +234,8 @@
* arch_kernel_thread(fn, arg, clone_flags)
*/
.align 3
-.globl kernel_thread
-.ent kernel_thread
+.globl arch_kernel_thread
+.ent arch_kernel_thread
arch_kernel_thread:
ldgp $29,0($27) /* we can be called from a module */
.frame $30, 4*8, $26
@@ -265,7 +265,7 @@
mov $0,$16
mov $31,$26
jsr $31,sys_exit
-.end kernel_thread
+.end arch_kernel_thread

/*
* __kernel_execve(path, argv, envp, regs)

--
Linux Security Modules http://lsm.immunix.org http://lsm.bkbits.net