We need to tell vm_fault the reason for the fault was because we tried
to execute from the memory location. Without this it may return with
success as we only request read-only memory, then we return to the same
location and try to execute from the same memory address. This leads to
an infinite loop raising the same fault and returning to the same
invalid location.
Details
Details
- Reviewers
manu - Group Reviewers
arm64 - Commits
- rS352440: MFC r342552:
rS342552: Pass VM_PROT_EXECUTE to vm_fault for instruction faults.
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
sys/arm64/arm64/trap.c | ||
---|---|---|
154 ↗ | (On Diff #51862) | I thought about that but decided to keep with the existing style, lower is also a bool. |