8000 riscv: pmp: disallow access above app brk by bradjc · Pull Request #2173 · tock/tock · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

riscv: pmp: disallow access above app brk #2173

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

Merged
merged 1 commit into from
Oct 23, 2020
Merged

Conversation

bradjc
Copy link
Contributor
@bradjc bradjc commented Oct 23, 2020

Pull Request Overview

This updates the PMP driver to only allow processes access to the process memory below the app break. Before it was allowing access to the entire process memory region.

Testing Strategy

This pull request was tested by using the mpu test app in libtock-c. I now get a fault on arty-e21 when trying to read from the grant region.

TODO or Help Wanted

n/a

Documentation Updated

  • Updated the relevant files in /docs, or no updates are required.

Formatting

  • Ran make prepush.

@bradjc bradjc added bug risc-v RISC-V architecture labels Oct 23, 2020
@bradjc bradjc requested a review from alistair23 October 23, 2020 17:46
@alistair23
Copy link
Contributor

It also seems to pass all of the automated release tests.

@bradjc bradjc merged commit e8d0a28 into master Oct 23, 2020
@bors bors bot deleted the pmp-exclude-grant-region branch October 23, 2020 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug risc-v RISC-V architecture
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0