PC-BSD/trueos 53d55c9sys/amd64/amd64 machdep.c, sys/amd64/ia32 ia32_reg.c

Plug memory disclosures via ptrace(2).

On some architectures, the structures returned by PT_GET*REGS were not
fully populated and could contain uninitialized stack memory.  The same
issue existed with the register files in procfs.

Reported by:    Thomas Barabosch, Fraunhofer FKIE
Reviewed by:    kib
MFC after:      3 days
Security:       kernel stack memory disclosure
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D18421
DeltaFile
+14-4sys/kern/sys_process.c
+3-2sys/fs/procfs/procfs_regs.c
+3-2sys/fs/procfs/procfs_fpregs.c
+4-0sys/arm/arm/machdep_kdb.c
+3-1sys/fs/procfs/procfs_dbregs.c
+3-0sys/amd64/amd64/machdep.c
+3-0sys/i386/i386/machdep.c
+2-0sys/amd64/ia32/ia32_reg.c
+1-0sys/sparc64/sparc64/machdep.c
+36-99 files

UnifiedSplitRaw