Page MenuHomeFreeBSD

arm64: Adjust the MPASS in vfp_save_state_savectx
ClosedPublic

Authored by andrew on Oct 22 2024, 2:24 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jan 17, 3:28 PM
Unknown Object (File)
Tue, Jan 14, 4:29 PM
Unknown Object (File)
Mon, Jan 6, 11:09 PM
Unknown Object (File)
Mon, Jan 6, 11:31 AM
Unknown Object (File)
Sun, Jan 5, 11:58 AM
Unknown Object (File)
Sun, Jan 5, 9:22 AM
Unknown Object (File)
Dec 9 2024, 1:45 AM
Unknown Object (File)
Dec 4 2024, 4:26 PM
Subscribers

Details

Summary

In vfp_save_state_savectx we check if the pcb has a NULL vfp state.
When it's called multiple times with the same pcb then we can panic
because the vfp state has been set.

Weaken the requirement for the state pointer to be NULL by also
allowing it to point to the pcb vfp state area we are about to use.

Sponsored by: Arm Ltd

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Nov 19 2024, 5:48 PM
This revision was automatically updated to reflect the committed changes.