-
Notifications
You must be signed in to change notification settings - Fork 5.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AArch32: addrmode3 incorrectly had load in address pointer export #6607
Open
Sleigh-InSPECtor
wants to merge
1
commit into
NationalSecurityAgency:master
Choose a base branch
from
Sleigh-InSPECtor:aarch32_addrmode3
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
AArch32: addrmode3 incorrectly had load in address pointer export #6607
Sleigh-InSPECtor
wants to merge
1
commit into
NationalSecurityAgency:master
from
Sleigh-InSPECtor:aarch32_addrmode3
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ryanmkurtz
added
Feature: Processor/ARM
Status: Triage
Information is being gathered
labels
May 31, 2024
With this patch applied I get a lot of build errors at least for Ghidra Staging:
|
You're right @jobermayr, you have to give it a size. Since everything else is exporting a varnode based on |
Sleigh-InSPECtor
force-pushed
the
aarch32_addrmode3
branch
from
July 15, 2024 01:30
abff569
to
c5eaa5b
Compare
…ot a memory address
Sleigh-InSPECtor
force-pushed
the
aarch32_addrmode3
branch
from
July 15, 2024 01:33
c5eaa5b
to
6b8da56
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As part of a research project testing the accuracy of the SLEIGH specifications compared to real hardware, we observed unexpected behaviours in a few instructions that used
addrmode3
constructor for AArch32 (ARM:LE:32:v8
).According to the manual, the instruction in the example stores two words from two registers to memory. However, we noticed the output was incorrect.
e.g, for AArch32 with,
Instruction:
0xf000cfb1 or 0xf0004fb1, strdlt r0,r1,[0x10000008]
initial_registers:
{ "r0": 0xaabc1448, "r1": 0x1923c5ef, "NG": 0x1 }
initial_memory:
{ "0x10000008": [ 0xfd, 0xd6, 0xf0, 0x8f ] }
We get:
Hardware:
{ 0x10000008: 0x48, 0x10000009: 0x14, 0x1000000A: 0xbc, 0x1000000B: 0xaa, 0x1000000C: 0xef, 0x1000000D: 0xc5, 0x1000000E: 0x23, 0x1000000F: 0x19 }
Patched Spec:
{ 0x10000008: 0x48, 0x10000009: 0x14, 0x1000000A: 0xbc, 0x1000000B: 0xaa, 0x1000000C: 0xef, 0x1000000D: 0xc5, 0x1000000E: 0x23, 0x1000000F: 0x19 }
Existing Spec:
{ 0x8FF0D6FD: 0x48, 0x8FF0D6FE: 0x14, 0x8FF0D6FF: 0xbc, 0x8FF0D700: 0xaa, 0x8FF0D701: 0xef, 0x8FF0D702: 0xc5, 0x8FF0D703: 0x23, 0x8FF0D704: 0x19 }
Note: The patched spec does not introduce any disassembly changes to the best of our knowledge.