CVS commit: src/sys

"Taylor R Campbell" <[email protected]>
Newsgroups gmane.os.netbsd.devel.cvs
Message-ID <[email protected]>
Module Name:	src
Committed By:	riastradh
Date:		Thu Aug 20 16:20:55 UTC 2026

Modified Files:
	src/sys/arch/amd64/amd64: process_machdep.c
	src/sys/arch/i386/i386: process_machdep.c
	src/sys/arch/x86/include: dbregs.h
	src/sys/arch/x86/x86: dbregs.c
	src/sys/kern: sys_process_lwpstatus.c
	src/sys/sys: ptrace.h

Log Message:
x86: Pull dbregs buffer allocation out from under lwp_lock.

Sprinkle assertions and notes about locking rules while here.

PR kern/60595: System lockup using gdb(1) on kernel with DEBUG+LOCKDEBUG

This fixes a bug that was revealed by lifting up rock while fixing:

PR kern/60556: panic in process_read_fpregs_xmm


To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/sys/arch/amd64/amd64/process_machdep.c
cvs rdiff -u -r1.97 -r1.98 src/sys/arch/i386/i386/process_machdep.c
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/x86/include/dbregs.h
cvs rdiff -u -r1.15 -r1.16 src/sys/arch/x86/x86/dbregs.c
cvs rdiff -u -r1.7 -r1.8 src/sys/kern/sys_process_lwpstatus.c
cvs rdiff -u -r1.77 -r1.78 src/sys/sys/ptrace.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.