-
Notifications
You must be signed in to change notification settings - Fork 340
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
[RISC-V | TEEs] Crashes when memory is protected by PMP. #105
Comments
@neiling I'm using an ARM Android device, and think I'm experiencing a similar issue The RAM dump always stops after 82MB and then crashes and reboots the device. The TEE is at 0x5100000, and I think it's crashing when it reaches this area. The device reboots when trying to read this region of secmon in uboot too. Is it possible to apply your fix more generally to ARM? Or to specific a memory range to skip/write with zeros? Thank you |
Hi, I am facing same issue on a samsung 5.4 device. It is s21fe 888. I am attaching the error
|
Setup
Device: QEMU emulator version 7.1.0
OS: Debian Sid
Kernel: 5.18.1
Issue
I have encountered a problem regarding RISC-V and Physical Memory Protection (PMP),
which is used to protect memory space from the OS. This is mainly used for Trusted
Execution Environments (TEEs) such as Keystone. If LiME encounters a read protected
area in memory while creating the memory dump, a "load access fault" exception occurs
under Linux, but there is no further handling by LiME, which leads to the abort of
the dump and actually the whole system.
A possible workaround where zero bytes are written to the dump for the read protected
areas can be found in the Pull request 106 .
The text was updated successfully, but these errors were encountered: