NetBSD-Bugs archive

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

PR/52964 CVS commit: src/sys/arch

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

From: "Ryota Ozaki" <>
Subject: PR/52964 CVS commit: src/sys/arch
Date: Tue, 13 Feb 2018 04:10:41 +0000

 Module Name:	src
 Committed By:	ozaki-r
 Date:		Tue Feb 13 04:10:41 UTC 2018
 Modified Files:
 	src/sys/arch/amd64/amd64: db_interface.c
 	src/sys/arch/i386/i386: db_interface.c
 Log Message:
 Fix NULL pointer dereference via ddb_regs
 ddb_regs can be *ddb_regp (see db_machdep.h) so ddb_regp should be NULL-ed
 after dereference to ddb_regs.
 Also dbreg should be restored to ddb_regp because ddb_regp can be changed
 by db_mach_cpu during db_trap.
 Fix PR 52964
 Helped by nonaka@
 To generate a diff of this commit:
 cvs rdiff -u -r1.29 -r1.30 src/sys/arch/amd64/amd64/db_interface.c
 cvs rdiff -u -r1.78 -r1.79 src/sys/arch/i386/i386/db_interface.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