I've advanced a little more in running 2.4.19 on 2.6.x...
Aparently the exec-shield and randomize_va_space that comes plugged on fedora 
weren't helping.


With exec-shield and randomize_va_space ...
[EMAIL PROTECTED] test]# ./linux ubd0=cow1,root_rh9.ext3
Checking for the skas3 patch in the host...not found
Checking for /proc/mm...not found
Violación de segmento



Without  exec-shield and randomize_va_space ...
[EMAIL PROTECTED] test]# echo 0 >>exec-shield
[EMAIL PROTECTED] test]# echo 0 >>randomize_va_space

[EMAIL PROTECTED] test]# ./linux ubd0=cow1,root_rh9.ext3
Checking for the skas3 patch in the host...not found
Checking for /proc/mm...not found
tracing thread pid = 12229
Linux version 2.4.19-51um ([EMAIL PROTECTED]) (gcc versión 3.3.4 20040817 (Red 
Hat Linux 3.3.4-2)) #10 mié oct 19 14:49:53 ART 2005
On node 0 totalpages: 8192
zone(0): 8192 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: ubd0=cow1,root_rh9.ext3 root=/dev/ubd0
Calibrating delay loop... 3953.46 BogoMIPS
Memory: 29232k available
Dentry cache hash table entries: 4096 (order: 3, 32768 bytes)
Inode cache hash table entries: 2048 (order: 2, 16384 bytes)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 8192 (order: 3, 32768 bytes)
Checking for host processor cmov support...Yes
Checking for host processor xmm support...No
Checking that ptrace can change system call numbers...OK
Checking that host ptys support output SIGIO...Yes
Checking that host ptys support SIGIO on close...No, enabling workaround
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Kernel panic: outer trampoline didn't exit with SIGKILL


Doe!
==================================================================


On Wed, 19 Oct 2005 17:10:51 +0200
Vincent guffens <[EMAIL PROTECTED]> wrote:

> [...]
> 
> 
> > And aparently I can't use a kernel prior to 2.4.2x on a 2.6.x  host. I
> > f..ed up, am I?
> > 
> 
> If you want to run a not so recent 2.4 guest on a 2.6 host you have to 
> apply a very small patch. The patch is as follows, it does not apply 
> properly, but it is easy enough to apply by hand
> 
> --- 1.5/arch/um/os-Linux/process.c Sat Jan 18 12:29:27 2003
> +++ 1.6/arch/um/os-Linux/process.c Thu Oct 2 14:27:57 2003
> @@ -7,6 +7,7 @@
>   #include <stdio.h>
>   #include <errno.h>
>   #include <signal.h>
> + #include <linux/unistd.h>
>   #include <sys/mman.h>
>   #include <sys/wait.h>
>   #include "os.h"
> @@ -87,7 +88,8 @@
> 
>   void os_usr1_process(int pid)
>   {
> - kill(pid, SIGUSR1);
> + syscall(__NR_tkill, pid, SIGUSR1);
> +/* tkill(pid, SIGUSR1);*/
>   }
> 
>   int os_getpid(void)
> 
> 
> 
> 


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to