Skip to content

[aarch64] Disassemble and lift FEAT_CPA instructions - #8543

Open
bdash wants to merge 1 commit into
devfrom
test_aarch64_feat_cpa
Open

[aarch64] Disassemble and lift FEAT_CPA instructions#8543
bdash wants to merge 1 commit into
devfrom
test_aarch64_feat_cpa

Conversation

@bdash

@bdash bdash commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

FEAT_CPA (Checked Pointer Arithmetic) adds pointer arithmetic instructions that, on overflow out of the address bits, force bit 54 to disagree with bit 55. This makes the result non-canonical so it faults when dereferenced.

For readable decompilation these are lifted as if the instructions are supported but enforcement is disabled (i.e., as if the CPU supports FEAT_CPA but not FEAT_CPA2).

`FEAT_CPA` (Checked Pointer Arithmetic) adds pointer arithmetic
instructions that, on overflow out of the address bits, force bit 54 to
disagree with bit 55. This makes the result non-canonical so it faults
when dereferenced.

For readable decompilation these are lifted as if the instructions are
supported but enforcement is disabled (i.e., as if the CPU supports
`FEAT_CPA` but not `FEAT_CPA2`).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant