Source-Changes archive

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

CVS commit: [netbsd-8] src/sys/arch



Module Name:    src
Committed By:   martin
Date:           Sun Jan 27 18:43:09 UTC 2019

Modified Files:
        src/sys/arch/alpha/alpha [netbsd-8]: machdep.c
        src/sys/arch/amd64/amd64 [netbsd-8]: netbsd32_machdep.c
        src/sys/arch/arm/arm [netbsd-8]: sig_machdep.c
        src/sys/arch/hppa/hppa [netbsd-8]: sig_machdep.c
        src/sys/arch/i386/i386 [netbsd-8]: machdep.c
        src/sys/arch/m68k/m68k [netbsd-8]: sig_machdep.c
        src/sys/arch/mips/mips [netbsd-8]: netbsd32_machdep.c sig_machdep.c
        src/sys/arch/powerpc/powerpc [netbsd-8]: sig_machdep.c
        src/sys/arch/riscv/riscv [netbsd-8]: sig_machdep.c
        src/sys/arch/sh3/sh3 [netbsd-8]: sh3_machdep.c
        src/sys/arch/sparc64/sparc64 [netbsd-8]: machdep.c netbsd32_machdep.c
        src/sys/arch/usermode/target/i386 [netbsd-8]: cpu_i386.c
        src/sys/arch/usermode/target/x86_64 [netbsd-8]: cpu_x86_64.c
        src/sys/arch/vax/vax [netbsd-8]: sig_machdep.c

Log Message:
Pull up following revision(s) (requested by maxv in ticket #1173):
        sys/arch/hppa/hppa/sig_machdep.c: revision 1.26
        sys/arch/arm/arm/sig_machdep.c: revision 1.51
        sys/arch/i386/i386/machdep.c: revision 1.813
        sys/arch/alpha/alpha/machdep.c: revision 1.352
        sys/arch/m68k/m68k/sig_machdep.c: revision 1.50
        sys/arch/usermode/target/i386/cpu_i386.c: revision 1.8
        sys/arch/sparc64/sparc64/machdep.c: revision 1.289
        sys/arch/sparc64/sparc64/netbsd32_machdep.c: revision 1.111
        sys/arch/powerpc/powerpc/sig_machdep.c: revision 1.46
        sys/arch/amd64/amd64/netbsd32_machdep.c: revision 1.117
        sys/arch/sh3/sh3/sh3_machdep.c: revision 1.106
        sys/arch/mips/mips/netbsd32_machdep.c: revision 1.16
        sys/arch/mips/mips/sig_machdep.c: revision 1.24
        sys/arch/riscv/riscv/sig_machdep.c: revision 1.2
        sys/arch/usermode/target/x86_64/cpu_x86_64.c: revision 1.7
        sys/arch/vax/vax/sig_machdep.c: revision 1.23

Fix widespread leak in the sendsig_siginfo() functions. sigframe_siginfo
has padding, so zero it out properly. While here I'm also zeroing out some
other things in several ports, for safety. Same problem in netbsd32, so
fix that too.

I can't compile-test on each architecture, but there should be no
breakage (tm).

Overall this fixes at least 14 info leaks. Prompted by the discovery by
KLEAK of a leak in amd64's sendsig_siginfo.


To generate a diff of this commit:
cvs rdiff -u -r1.350 -r1.350.6.1 src/sys/arch/alpha/alpha/machdep.c
cvs rdiff -u -r1.105.2.1 -r1.105.2.2 \
    src/sys/arch/amd64/amd64/netbsd32_machdep.c
cvs rdiff -u -r1.49 -r1.49.10.1 src/sys/arch/arm/arm/sig_machdep.c
cvs rdiff -u -r1.25 -r1.25.48.1 src/sys/arch/hppa/hppa/sig_machdep.c
cvs rdiff -u -r1.782.6.6 -r1.782.6.7 src/sys/arch/i386/i386/machdep.c
cvs rdiff -u -r1.49 -r1.49.32.1 src/sys/arch/m68k/m68k/sig_machdep.c
cvs rdiff -u -r1.14 -r1.14.6.1 src/sys/arch/mips/mips/netbsd32_machdep.c
cvs rdiff -u -r1.23 -r1.23.46.1 src/sys/arch/mips/mips/sig_machdep.c
cvs rdiff -u -r1.45 -r1.45.6.1 src/sys/arch/powerpc/powerpc/sig_machdep.c
cvs rdiff -u -r1.1 -r1.1.12.1 src/sys/arch/riscv/riscv/sig_machdep.c
cvs rdiff -u -r1.105 -r1.105.8.1 src/sys/arch/sh3/sh3/sh3_machdep.c
cvs rdiff -u -r1.287 -r1.287.8.1 src/sys/arch/sparc64/sparc64/machdep.c
cvs rdiff -u -r1.110 -r1.110.8.1 \
    src/sys/arch/sparc64/sparc64/netbsd32_machdep.c
cvs rdiff -u -r1.4 -r1.4.34.1 src/sys/arch/usermode/target/i386/cpu_i386.c
cvs rdiff -u -r1.2 -r1.2.42.1 \
    src/sys/arch/usermode/target/x86_64/cpu_x86_64.c
cvs rdiff -u -r1.22 -r1.22.2.1 src/sys/arch/vax/vax/sig_machdep.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