CVS commit: src/sys/kern

"Taylor R Campbell" <[email protected]>
Newsgroups gmane.os.netbsd.devel.cvs
Message-ID <[email protected]>
Module Name:	src
Committed By:	riastradh
Date:		Sat Aug  8 00:45:53 UTC 2026

Modified Files:
	src/sys/kern: sys_process_lwpstatus.c

Log Message:
ptrace/procfs: Take lwp lock around process_read/write_(fp)regs(32).

And verify that the lwp is in LSSTOP state before trying to read.
Otherwise, we might catch an lwp while it's still running on the CPU,
with all FPU state active, making the result unstable and tripping
assertions on some architectures.

PR port-amd64/60556: panic in process_read_fpregs_xmm


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/kern/sys_process_lwpstatus.c

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.