Skip to content
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

Fix incorrect instructions names in ARM32 scanners #124

Merged
merged 2 commits into from
May 31, 2024
Merged

Conversation

IgWod
Copy link
Collaborator

@IgWod IgWod commented May 29, 2024

For unknown reasons some of the NEON instructions has been updated in the PIE arm and thumb definitions without reflecting those changes in the aarch32 scanners. As a result MAMBO does not compile for 32-bit architectures. This commit adjusts the names in the scanner to match definitions in PIE.

@IgWod IgWod added the aarch32 label May 29, 2024
@IgWod IgWod requested a review from jkressel May 29, 2024 17:13
@IgWod IgWod self-assigned this May 29, 2024
@IgWod
Copy link
Collaborator Author

IgWod commented May 30, 2024

Closing and re-opening to trigger the CI.

@IgWod IgWod closed this May 30, 2024
@IgWod IgWod reopened this May 30, 2024
For unknown reasons some of the NEON instructions has been updated
in the PIE arm and thumb definitions without reflecting those
changes in the aarch32 scanners. As a result MAMBO does not compile
for 32-bit architectures. This commit adjusts the names in the
scanner to match defintions in PIE.wq
@IgWod IgWod force-pushed the aarch32-fix-neon branch from 4f017e5 to a09d084 Compare May 31, 2024 13:17
@IgWod
Copy link
Collaborator Author

IgWod commented May 31, 2024

This PR also fixes problem with mapping of reserved space on A32.

For unknown reasons when RESERVED_BRK_SPACE is set to 128 * PAGE_SIZE
MABMO segfaults on scanning the first instructions. The problem
first transpires after mmap and remmap involving RESERVED_BRK_SPACE
is executed. This fix reduces the reserved space back to PAGE_SIZE
for A32 - the value used before RISC-V merge. One of the possible
explnations is smaller virtual memory on A32 compared to A64 and RISC-V.
@IgWod IgWod force-pushed the aarch32-fix-neon branch from a09d084 to 68c9563 Compare May 31, 2024 13:22
@jkressel jkressel merged commit a764862 into master May 31, 2024
3 checks passed
@IgWod IgWod deleted the aarch32-fix-neon branch May 31, 2024 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants