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)
Mon, Nov 25, 1:38 AM
Unknown Object (File)
Tue, Nov 19, 6:48 PM
Unknown Object (File)
Mon, Nov 4, 11:49 AM
Unknown Object (File)
Mon, Nov 4, 11:49 AM
Unknown Object (File)
Mon, Nov 4, 11:34 AM
Unknown Object (File)
Oct 26 2024, 2:59 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.Tue, Nov 19, 5:48 PM
This revision was automatically updated to reflect the committed changes.