]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Use the correct length when copying arm64 vfp registers
authorAndrew Turner <andrew@FreeBSD.org>
Mon, 14 Jun 2021 11:01:46 +0000 (11:01 +0000)
committerAndrew Turner <andrew@FreeBSD.org>
Mon, 14 Jun 2021 14:53:10 +0000 (14:53 +0000)
commite7f369b1c18ca0377bb0b016b4cab3f0de2a74c5
treec4a6b8599d051138734b25cffc3e8ccbe9545256
parented5e13cfc2689049ce415dad5057923bc7214a41
Use the correct length when copying arm64 vfp registers

We passed the wrong length into memcpy in the arm64 get_fpcontext and
set_fpcontext. This caused us to copy two status registers we didn't
expect to copy.

These are safe as they exist in both the source and destination, although
in a different order, and we copy the correct values after the memcpy.

Obtained from: CheriBSD
Sponsored by: Innovate UK
sys/arm64/arm64/machdep.c