CVS commit: src/tests/kernel/arch/x86

"Taylor R Campbell" <[email protected]> Wed, 15 Jul 2026 02:08:19 +0000
Newsgroups gmane.os.netbsd.devel.cvs
Message-ID <[email protected]>
Module Name:	src
Committed By:	riastradh
Date:		Wed Jul 15 02:08:18 UTC 2026

Modified Files:
	src/tests/kernel/arch/x86: sig_fpu.c

Log Message:
t_signal_and_fpu: Fix XMM register trashing.

The units we read from memory into registers are 16 bytes (128 bits)
each, not 32 bytes (256 bits).

Fortunately, this mistake didn't prevent the test from generally
working: reading past the end of our stack frame will just give us
other garbage that is unlikely to coincide with the register content
that the interrupted code expects.

PR kern/60426: Signal handler corrupts AVX (YMM) registers


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/kernel/arch/x86/sig_fpu.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.