Page MenuHomeFreeBSD

Add BTI exceptions
ClosedPublic

Authored by andrew on Apr 6 2023, 4:09 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sep 22 2023, 5:55 PM
Unknown Object (File)
Jun 24 2023, 7:37 AM
Unknown Object (File)
Jun 23 2023, 5:14 PM
Unknown Object (File)
Jun 3 2023, 5:11 PM
Unknown Object (File)
May 28 2023, 2:33 AM
Unknown Object (File)
May 19 2023, 7:17 PM
Unknown Object (File)
May 15 2023, 5:44 AM
Unknown Object (File)
Apr 17 2023, 12:15 PM
Subscribers

Details

Reviewers
kib
markj
manu
Group Reviewers
arm64
Commits
rG450f731b7f23: Add BTI exceptions
Summary

We could hit these when executing code marked as using BTI but jumps
to a non-branch target instruction.

Sponsored by: Arm Ltd
Sponsored by: The FreeBSD Foundation

Diff Detail

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

Event Timeline

sys/arm64/arm64/trap.c
708

it's too bad there's not something like ILL_ILLBRANCH or such, but it looks like ILL_ILLOPC is consistent with Linux

sys/arm64/arm64/trap.c
708

Nothing prevents us from adding specific si_value if it is useful.

This looks good to me... Will have to remember to check qemu's bsd-user to add this.

sys/arm64/arm64/trap.c
708

We set si_trapno to the exception number if userspace needs to know it's a BTI exception.

This revision was not accepted when it landed; it landed in state Needs Review.Sep 22 2023, 5:17 PM
Closed by commit rG450f731b7f23: Add BTI exceptions (authored by andrew). · Explain Why
This revision was automatically updated to reflect the committed changes.