Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/lkm/exec Fix all the borken exec lkms. setup_stack is ma...



details:   https://anonhg.NetBSD.org/src/rev/c3b8941d6da3
branches:  trunk
changeset: 571181:c3b8941d6da3
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Nov 13 06:09:47 2004 +0000

description:
Fix all the borken exec lkms. setup_stack is mandatory.

diffstat:

 sys/lkm/exec/aout/lkminit_exec.c          |  7 ++++---
 sys/lkm/exec/elf/lkminit_exec.c           |  7 ++++---
 sys/lkm/exec/freebsd_aout/lkminit_exec.c  |  7 ++++---
 sys/lkm/exec/freebsd_elf/lkminit_exec.c   |  7 ++++---
 sys/lkm/exec/hpux_aout/lkminit_exec.c     |  7 ++++---
 sys/lkm/exec/ibcs2_coff/lkminit_exec.c    |  7 ++++---
 sys/lkm/exec/ibcs2_elf/lkminit_exec.c     |  7 ++++---
 sys/lkm/exec/ibcs2_xout/lkminit_exec.c    |  7 ++++---
 sys/lkm/exec/linux_aout/Makefile          |  5 +++--
 sys/lkm/exec/linux_aout/lkminit_exec.c    |  7 ++++---
 sys/lkm/exec/linux_elf/Makefile           |  5 +++--
 sys/lkm/exec/linux_elf/lkminit_exec.c     |  7 ++++---
 sys/lkm/exec/m68k4k/lkminit_exec.c        |  7 ++++---
 sys/lkm/exec/netbsd32_aout/lkminit_exec.c |  7 ++++---
 sys/lkm/exec/netbsd32_elf/lkminit_exec.c  |  7 ++++---
 sys/lkm/exec/osf1_ecoff/lkminit_exec.c    |  7 ++++---
 sys/lkm/exec/sunos32_aout/lkminit_exec.c  |  7 ++++---
 sys/lkm/exec/sunos_aout/lkminit_exec.c    |  7 ++++---
 sys/lkm/exec/svr4_32_elf/lkminit_exec.c   |  7 ++++---
 sys/lkm/exec/svr4_elf/lkminit_exec.c      |  7 ++++---
 sys/lkm/exec/ultrix_ecoff/lkminit_exec.c  |  7 ++++---
 sys/lkm/exec/vax1k/lkminit_exec.c         |  7 ++++---
 22 files changed, 86 insertions(+), 64 deletions(-)

diffs (truncated from 600 to 300 lines):

diff -r 61d917b84aa4 -r c3b8941d6da3 sys/lkm/exec/aout/lkminit_exec.c
--- a/sys/lkm/exec/aout/lkminit_exec.c  Sat Nov 13 06:01:34 2004 +0000
+++ b/sys/lkm/exec/aout/lkminit_exec.c  Sat Nov 13 06:09:47 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lkminit_exec.c,v 1.3 2001/12/08 00:37:09 thorpej Exp $ */
+/* $NetBSD: lkminit_exec.c,v 1.4 2004/11/13 06:09:47 christos Exp $ */
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lkminit_exec.c,v 1.3 2001/12/08 00:37:09 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lkminit_exec.c,v 1.4 2004/11/13 06:09:47 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -61,7 +61,8 @@
          0,
          copyargs,
          setregs,
-         coredump_netbsd };
+         coredump_netbsd,
+         exec_setup_stack };
 
 /*
  * declare the exec
diff -r 61d917b84aa4 -r c3b8941d6da3 sys/lkm/exec/elf/lkminit_exec.c
--- a/sys/lkm/exec/elf/lkminit_exec.c   Sat Nov 13 06:01:34 2004 +0000
+++ b/sys/lkm/exec/elf/lkminit_exec.c   Sat Nov 13 06:09:47 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lkminit_exec.c,v 1.5 2002/01/04 06:50:59 thorpej Exp $ */
+/* $NetBSD: lkminit_exec.c,v 1.6 2004/11/13 06:09:47 christos Exp $ */
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lkminit_exec.c,v 1.5 2002/01/04 06:50:59 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lkminit_exec.c,v 1.6 2004/11/13 06:09:47 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -64,7 +64,8 @@
          howmany(ELF_AUX_ENTRIES * sizeof(Aux32Info), sizeof (Elf32_Addr)),
          elf32_copyargs,
          NULL,
-         coredump_elf32 };
+         coredump_elf32,
+         exec_setup_stack };           /* XXX XXX XXX */
 
 /*
  * declare the exec
diff -r 61d917b84aa4 -r c3b8941d6da3 sys/lkm/exec/freebsd_aout/lkminit_exec.c
--- a/sys/lkm/exec/freebsd_aout/lkminit_exec.c  Sat Nov 13 06:01:34 2004 +0000
+++ b/sys/lkm/exec/freebsd_aout/lkminit_exec.c  Sat Nov 13 06:09:47 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lkminit_exec.c,v 1.4 2001/12/08 00:37:09 thorpej Exp $ */
+/* $NetBSD: lkminit_exec.c,v 1.5 2004/11/13 06:09:47 christos Exp $ */
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lkminit_exec.c,v 1.4 2001/12/08 00:37:09 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lkminit_exec.c,v 1.5 2004/11/13 06:09:47 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -63,7 +63,8 @@
          0,
          copyargs,
          NULL,
-         coredump_netbsd };
+         coredump_netbsd,
+         exec_setup_stack };
 
 
 /*
diff -r 61d917b84aa4 -r c3b8941d6da3 sys/lkm/exec/freebsd_elf/lkminit_exec.c
--- a/sys/lkm/exec/freebsd_elf/lkminit_exec.c   Sat Nov 13 06:01:34 2004 +0000
+++ b/sys/lkm/exec/freebsd_elf/lkminit_exec.c   Sat Nov 13 06:09:47 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lkminit_exec.c,v 1.8 2003/02/19 15:43:56 martin Exp $ */
+/* $NetBSD: lkminit_exec.c,v 1.9 2004/11/13 06:09:47 christos Exp $ */
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lkminit_exec.c,v 1.8 2003/02/19 15:43:56 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lkminit_exec.c,v 1.9 2004/11/13 06:09:47 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -65,7 +65,8 @@
          howmany(ELF_AUX_ENTRIES * sizeof(Aux32Info), sizeof(Elf32_Addr)),
          elf32_copyargs,
          NULL,
-         coredump_elf32 };
+         coredump_elf32,
+         exec_setup_stack };
 
 
 /*
diff -r 61d917b84aa4 -r c3b8941d6da3 sys/lkm/exec/hpux_aout/lkminit_exec.c
--- a/sys/lkm/exec/hpux_aout/lkminit_exec.c     Sat Nov 13 06:01:34 2004 +0000
+++ b/sys/lkm/exec/hpux_aout/lkminit_exec.c     Sat Nov 13 06:09:47 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lkminit_exec.c,v 1.4 2001/12/08 00:37:10 thorpej Exp $ */
+/* $NetBSD: lkminit_exec.c,v 1.5 2004/11/13 06:09:47 christos Exp $ */
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lkminit_exec.c,v 1.4 2001/12/08 00:37:10 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lkminit_exec.c,v 1.5 2004/11/13 06:09:47 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -63,7 +63,8 @@
          0,
          copyargs,
          NULL,
-         coredump_netbsd };
+         coredump_netbsd,
+         exec_setup_stack };
 
 /*
  * declare the exec
diff -r 61d917b84aa4 -r c3b8941d6da3 sys/lkm/exec/ibcs2_coff/lkminit_exec.c
--- a/sys/lkm/exec/ibcs2_coff/lkminit_exec.c    Sat Nov 13 06:01:34 2004 +0000
+++ b/sys/lkm/exec/ibcs2_coff/lkminit_exec.c    Sat Nov 13 06:09:47 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lkminit_exec.c,v 1.4 2001/12/08 00:37:10 thorpej Exp $ */
+/* $NetBSD: lkminit_exec.c,v 1.5 2004/11/13 06:09:47 christos Exp $ */
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lkminit_exec.c,v 1.4 2001/12/08 00:37:10 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lkminit_exec.c,v 1.5 2004/11/13 06:09:47 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -63,7 +63,8 @@
          0,
          copyargs,
          NULL,
-         coredump_netbsd };
+         coredump_netbsd,
+         exec_setup_stack };
 
 /*
  * declare the exec
diff -r 61d917b84aa4 -r c3b8941d6da3 sys/lkm/exec/ibcs2_elf/lkminit_exec.c
--- a/sys/lkm/exec/ibcs2_elf/lkminit_exec.c     Sat Nov 13 06:01:34 2004 +0000
+++ b/sys/lkm/exec/ibcs2_elf/lkminit_exec.c     Sat Nov 13 06:09:47 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lkminit_exec.c,v 1.7 2003/02/19 15:43:56 martin Exp $ */
+/* $NetBSD: lkminit_exec.c,v 1.8 2004/11/13 06:09:47 christos Exp $ */
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lkminit_exec.c,v 1.7 2003/02/19 15:43:56 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lkminit_exec.c,v 1.8 2004/11/13 06:09:47 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -65,7 +65,8 @@
          howmany(ELF_AUX_ENTRIES * sizeof(Aux32Info), sizeof (Elf32_Addr)),
          elf32_copyargs,
          NULL,
-         coredump_elf32 };
+         coredump_elf32,
+         exec_setup_stack };
 
 /*
  * declare the exec
diff -r 61d917b84aa4 -r c3b8941d6da3 sys/lkm/exec/ibcs2_xout/lkminit_exec.c
--- a/sys/lkm/exec/ibcs2_xout/lkminit_exec.c    Sat Nov 13 06:01:34 2004 +0000
+++ b/sys/lkm/exec/ibcs2_xout/lkminit_exec.c    Sat Nov 13 06:09:47 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lkminit_exec.c,v 1.4 2001/12/08 00:37:11 thorpej Exp $ */
+/* $NetBSD: lkminit_exec.c,v 1.5 2004/11/13 06:09:47 christos Exp $ */
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lkminit_exec.c,v 1.4 2001/12/08 00:37:11 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lkminit_exec.c,v 1.5 2004/11/13 06:09:47 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -62,7 +62,8 @@
          0,
          copyargs,
          NULL,
-         coredump_netbsd };
+         coredump_netbsd,
+         exec_setup_stack };
 
 /*
  * declare the exec
diff -r 61d917b84aa4 -r c3b8941d6da3 sys/lkm/exec/linux_aout/Makefile
--- a/sys/lkm/exec/linux_aout/Makefile  Sat Nov 13 06:01:34 2004 +0000
+++ b/sys/lkm/exec/linux_aout/Makefile  Sat Nov 13 06:09:47 2004 +0000
@@ -1,12 +1,13 @@
-#      $NetBSD: Makefile,v 1.4 2002/05/30 18:53:19 thorpej Exp $
+#      $NetBSD: Makefile,v 1.5 2004/11/13 06:09:47 christos Exp $
 
 .include "../Makefile.inc"
 
 .PATH: $S/compat/linux/common
+.PATH: $S/compat/linux/arch/${MACHINE_ARCH}
 
 CPPFLAGS+=     -nostdinc -D_KERNEL -DEXEC_AOUT -DCOMPAT_LINUX
 
-KMOD=  exec_linux_aout
+KMOD=  exec_linux_aout linux_exec_machdep.c
 
 SRCS=  lkminit_exec.c
 SRCS+= linux_exec_aout.c
diff -r 61d917b84aa4 -r c3b8941d6da3 sys/lkm/exec/linux_aout/lkminit_exec.c
--- a/sys/lkm/exec/linux_aout/lkminit_exec.c    Sat Nov 13 06:01:34 2004 +0000
+++ b/sys/lkm/exec/linux_aout/lkminit_exec.c    Sat Nov 13 06:09:47 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lkminit_exec.c,v 1.4 2001/12/08 00:37:11 thorpej Exp $ */
+/* $NetBSD: lkminit_exec.c,v 1.5 2004/11/13 06:09:47 christos Exp $ */
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lkminit_exec.c,v 1.4 2001/12/08 00:37:11 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lkminit_exec.c,v 1.5 2004/11/13 06:09:47 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -63,7 +63,8 @@
          LINUX_AOUT_AUX_ARGSIZ,
          linux_aout_copyargs,
          NULL,
-         coredump_netbsd };
+         coredump_netbsd,
+         linux_exec_setup_stack };
 
 /*
  * declare the exec
diff -r 61d917b84aa4 -r c3b8941d6da3 sys/lkm/exec/linux_elf/Makefile
--- a/sys/lkm/exec/linux_elf/Makefile   Sat Nov 13 06:01:34 2004 +0000
+++ b/sys/lkm/exec/linux_elf/Makefile   Sat Nov 13 06:09:47 2004 +0000
@@ -1,14 +1,15 @@
-#      $NetBSD: Makefile,v 1.5 2002/11/29 17:11:21 jdolecek Exp $
+#      $NetBSD: Makefile,v 1.6 2004/11/13 06:09:47 christos Exp $
 
 .include "../Makefile.inc"
 
 .PATH: $S/compat/linux/common
+.PATH: $S/compat/linux/arch/${MACHINE_ARCH}
 
 CPPFLAGS+=     -nostdinc -D_KERNEL -DEXEC_ELF32 -DEXEC_ELF64
 
 KMOD=  exec_linux_elf
 
-SRCS=  lkminit_exec.c
+SRCS=  lkminit_exec.c linux_exec_machdep.c
 
 .if ${MACHINE} == "alpha" || ${MACHINE} == "sparc64"
 SRCS+= linux_exec_elf64.c
diff -r 61d917b84aa4 -r c3b8941d6da3 sys/lkm/exec/linux_elf/lkminit_exec.c
--- a/sys/lkm/exec/linux_elf/lkminit_exec.c     Sat Nov 13 06:01:34 2004 +0000
+++ b/sys/lkm/exec/linux_elf/lkminit_exec.c     Sat Nov 13 06:09:47 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lkminit_exec.c,v 1.7 2002/11/13 15:16:28 jdolecek Exp $ */
+/* $NetBSD: lkminit_exec.c,v 1.8 2004/11/13 06:09:47 christos Exp $ */
 
 /*-



Home | Main Index | Thread Index | Old Index