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, Feb 23, 10:37 AM
Unknown Object (File)
Sat, Feb 21, 2:01 AM
Unknown Object (File)
Thu, Feb 19, 12:34 AM
Unknown Object (File)
Jan 31 2026, 3:39 AM
Unknown Object (File)
Jan 26 2026, 2:34 AM
Unknown Object (File)
Jan 25 2026, 10:01 AM
Unknown Object (File)
Jan 20 2026, 7:56 AM
Unknown Object (File)
Jan 19 2026, 3:19 AM
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.