Source-Changes-HG archive

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

[src/trunk]: src/sys/arch Copy ksi->ksi_info, not all of ksi, to user stack.



details:   https://anonhg.NetBSD.org/src/rev/cfb8bc45028c
branches:  trunk
changeset: 556276:cfb8bc45028c
user:      matt <matt%NetBSD.org@localhost>
date:      Thu Dec 11 18:33:52 2003 +0000

description:
Copy ksi->ksi_info, not all of ksi, to user stack.

diffstat:

 sys/arch/powerpc/powerpc/sig_machdep.c |  6 +++---
 sys/arch/vax/vax/sig_machdep.c         |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r c49163d404c2 -r cfb8bc45028c sys/arch/powerpc/powerpc/sig_machdep.c
--- a/sys/arch/powerpc/powerpc/sig_machdep.c    Thu Dec 11 18:33:03 2003 +0000
+++ b/sys/arch/powerpc/powerpc/sig_machdep.c    Thu Dec 11 18:33:52 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sig_machdep.c,v 1.18 2003/10/08 00:28:42 thorpej Exp $ */
+/*     $NetBSD: sig_machdep.c,v 1.19 2003/12/11 18:33:52 matt Exp $    */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sig_machdep.c,v 1.18 2003/10/08 00:28:42 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sig_machdep.c,v 1.19 2003/12/11 18:33:52 matt Exp $");
 
 #include "opt_compat_netbsd.h"
 #include "opt_ppcarch.h"
@@ -102,7 +102,7 @@
        /*
         * Copy the siginfo and ucontext onto the user's stack.
         */
-       if (copyout(ksi, (caddr_t)sip, sizeof(*ksi)) != 0 ||
+       if (copyout(&ksi->ksi_info, (caddr_t)sip, sizeof(ksi->ksi_info)) != 0 ||
            copyout(&uc, (caddr_t)ucp, sizeof(uc)) != 0) {
                /*
                 * Process has trashed its stack; give it an illegal
diff -r c49163d404c2 -r cfb8bc45028c sys/arch/vax/vax/sig_machdep.c
--- a/sys/arch/vax/vax/sig_machdep.c    Thu Dec 11 18:33:03 2003 +0000
+++ b/sys/arch/vax/vax/sig_machdep.c    Thu Dec 11 18:33:52 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sig_machdep.c,v 1.3 2003/09/30 21:45:09 matt Exp $  */
+/* $NetBSD: sig_machdep.c,v 1.4 2003/12/11 18:34:38 matt Exp $  */
 
 /*
  * Copyright (c) 1982, 1986, 1990 The Regents of the University of California.
@@ -83,7 +83,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sig_machdep.c,v 1.3 2003/09/30 21:45:09 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sig_machdep.c,v 1.4 2003/12/11 18:34:38 matt Exp $");
 
 #include "opt_ddb.h"
 #include "opt_compat_netbsd.h"
@@ -405,7 +405,7 @@
 
        /* Copy the context to the stack.  */
        if (copyout(&uc, (char *)tramp.ucp, sizeof(uc)) != 0 ||
-           copyout(ksi, (char *)tramp.sip, sizeof(*ksi)) != 0 ||
+           copyout(&ksi->ksi_info, (char *)tramp.sip, sizeof(ksi->ksi_info)) != 0 ||
            copyout(&tramp, (char *)sp, sizeof(tramp)) != 0)
                sigexit(l, SIGILL);
 



Home | Main Index | Thread Index | Old Index