Similar to fill_fpregs(), only invoke vfp_save_state() for curthread.
While here, zero the buffer if FP hasn't been started to avoid leaking
kernel stack memory.
Sponsored by: University of Cambridge, Google, Inc.
Differential D34525
aarch64: Fix get_fpcontext32() to work on non-curthread. jhb on Mar 11 2022, 1:15 AM. Authored by Tags None Referenced Files
Details Similar to fill_fpregs(), only invoke vfp_save_state() for curthread. While here, zero the buffer if FP hasn't been started to avoid leaking Sponsored by: University of Cambridge, Google, Inc.
Diff Detail
Event Timeline
Comment Actions It might pay to update the native get_fpcontext while here.
Comment Actions The native get_fpcontext is only used for curthread since the debugger case is handled by fill_dbregs() instead.
|