Page MenuHomeFreeBSD

Use the execute-never bits on arm64
ClosedPublic

Authored by andrew on Apr 11 2017, 3:35 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, May 7, 11:49 AM
Unknown Object (File)
Feb 28 2024, 6:25 PM
Unknown Object (File)
Feb 22 2024, 4:58 AM
Unknown Object (File)
Dec 21 2023, 1:06 PM
Unknown Object (File)
Dec 20 2023, 7:41 AM
Unknown Object (File)
Dec 20 2023, 1:25 AM
Unknown Object (File)
Dec 7 2023, 9:19 AM
Unknown Object (File)
Nov 10 2023, 7:54 AM
Subscribers

Details

Summary

Start to use the User and Privileged execute-never bits. This sets both bits when entering an address we know shouldn't be executed.

I expect we could mark all userspace pages as Privileged execute-never to ensure the kernel doesn't branch to one of these addresses.

While here add the ARMv8.1 upper attributes.

Test Plan

Netboot on a ThunderX to multiuser.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Apr 11 2017, 4:52 PM
sys/arm64/arm64/pmap.c
2433 ↗(On Diff #27354)

My impression is that r271716 would also apply to arm64.

andrew edited edge metadata.

Update the check in pmap_protect to be the same as rS271716

This revision now requires review to proceed.Apr 12 2017, 11:49 AM
This revision is now accepted and ready to land.Apr 12 2017, 3:38 PM
This revision was automatically updated to reflect the committed changes.