Page MenuHomeFreeBSD

arm64: Clear td_frame when returning to userspace
Needs ReviewPublic

Authored by andrew on Tue, Apr 16, 3:43 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 27, 12:44 AM
Unknown Object (File)
Fri, Apr 26, 5:13 AM
Unknown Object (File)
Thu, Apr 18, 5:21 PM
Subscribers

Details

Reviewers
kib
markj
imp
manu
Group Reviewers
arm64
Summary

When returning from an exception to userspace clear the saved td_frame.
On the next exception this should point to the frame, however this is
not guaranteed.

To ensure the trap frame pointer is either valid or NULL clear it
before returning to userspace in the EL0 synchronous exception handler.

Sponsored by: Arm Ltd

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 57122
Build 54010: arc lint + arc unit