NetBSD-Bugs archive

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

PR/43903 CVS commit: src



The following reply was made to PR port-amd64/43903; it has been noted by GNATS.

From: "Martin Husemann" <martin%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc: 
Subject: PR/43903 CVS commit: src
Date: Mon, 21 May 2012 14:15:20 +0000

 Module Name:   src
 Committed By:  martin
 Date:          Mon May 21 14:15:20 UTC 2012
 
 Modified Files:
        src/distrib/sets/lists/tests: mi
        src/lib/libc/sys: _lwp_create.2
        src/sys/arch/alpha/alpha: machdep.c
        src/sys/arch/amd64/amd64: machdep.c netbsd32_machdep.c
            process_machdep.c
        src/sys/arch/amd64/include: mcontext.h
        src/sys/arch/arm/arm: sig_machdep.c
        src/sys/arch/hppa/hppa: hppa_machdep.c
        src/sys/arch/i386/i386: machdep.c
        src/sys/arch/m68k/m68k: sig_machdep.c
        src/sys/arch/mips/mips: cpu_subr.c netbsd32_machdep.c
        src/sys/arch/powerpc/powerpc: sig_machdep.c
        src/sys/arch/sh3/sh3: sh3_machdep.c
        src/sys/arch/sparc/sparc: machdep.c
        src/sys/arch/sparc64/sparc64: machdep.c netbsd32_machdep.c
        src/sys/arch/vax/vax: machdep.c
        src/sys/compat/netbsd32: netbsd32_lwp.c
        src/sys/compat/sys: ucontext.h
        src/sys/kern: sys_lwp.c
        src/sys/sys: lwp.h ucontext.h
        src/tests/lib/libc/sys: Makefile
 Added Files:
        src/tests/lib/libc/sys: t_lwp_create.c
 
 Log Message:
 Calling _lwp_create() with a bogus ucontext could trigger a kernel
 assertion failure (and thus a crash in DIAGNOSTIC kernels). Independently
 discovered by YAMAMOTO Takashi and Joel Sing.
 
 To avoid this, introduce a cpu_mcontext_validate() function and move all
 sanity checks from cpu_setmcontext() there. Also untangle the netbsd32
 compat mess slightly and add a cpu_mcontext32_validate() cousin there.
 
 Add an exhaustive atf test case, based partly on code from Joel Sing.
 
 Should finally fix the remaining open part of PR kern/43903.
 
 
 To generate a diff of this commit:
 cvs rdiff -u -r1.468 -r1.469 src/distrib/sets/lists/tests/mi
 cvs rdiff -u -r1.4 -r1.5 src/lib/libc/sys/_lwp_create.2
 cvs rdiff -u -r1.338 -r1.339 src/sys/arch/alpha/alpha/machdep.c
 cvs rdiff -u -r1.182 -r1.183 src/sys/arch/amd64/amd64/machdep.c
 cvs rdiff -u -r1.75 -r1.76 src/sys/arch/amd64/amd64/netbsd32_machdep.c
 cvs rdiff -u -r1.19 -r1.20 src/sys/arch/amd64/amd64/process_machdep.c
 cvs rdiff -u -r1.14 -r1.15 src/sys/arch/amd64/include/mcontext.h
 cvs rdiff -u -r1.41 -r1.42 src/sys/arch/arm/arm/sig_machdep.c
 cvs rdiff -u -r1.27 -r1.28 src/sys/arch/hppa/hppa/hppa_machdep.c
 cvs rdiff -u -r1.726 -r1.727 src/sys/arch/i386/i386/machdep.c
 cvs rdiff -u -r1.48 -r1.49 src/sys/arch/m68k/m68k/sig_machdep.c
 cvs rdiff -u -r1.15 -r1.16 src/sys/arch/mips/mips/cpu_subr.c
 cvs rdiff -u -r1.8 -r1.9 src/sys/arch/mips/mips/netbsd32_machdep.c
 cvs rdiff -u -r1.41 -r1.42 src/sys/arch/powerpc/powerpc/sig_machdep.c
 cvs rdiff -u -r1.98 -r1.99 src/sys/arch/sh3/sh3/sh3_machdep.c
 cvs rdiff -u -r1.318 -r1.319 src/sys/arch/sparc/sparc/machdep.c
 cvs rdiff -u -r1.266 -r1.267 src/sys/arch/sparc64/sparc64/machdep.c
 cvs rdiff -u -r1.97 -r1.98 src/sys/arch/sparc64/sparc64/netbsd32_machdep.c
 cvs rdiff -u -r1.187 -r1.188 src/sys/arch/vax/vax/machdep.c
 cvs rdiff -u -r1.12 -r1.13 src/sys/compat/netbsd32/netbsd32_lwp.c
 cvs rdiff -u -r1.5 -r1.6 src/sys/compat/sys/ucontext.h
 cvs rdiff -u -r1.53 -r1.54 src/sys/kern/sys_lwp.c
 cvs rdiff -u -r1.160 -r1.161 src/sys/sys/lwp.h
 cvs rdiff -u -r1.15 -r1.16 src/sys/sys/ucontext.h
 cvs rdiff -u -r1.22 -r1.23 src/tests/lib/libc/sys/Makefile
 cvs rdiff -u -r0 -r1.1 src/tests/lib/libc/sys/t_lwp_create.c
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.
 


Home | Main Index | Thread Index | Old Index