Skip to content

[CRITICAL] Protect opensbi memory ranges in uncached DDR region #8

@ganboing

Description

@ganboing

visionfive v1 has DDR memory mapped twice -- one in cached region (32GB@0x80000000) and the other in uncached region (32GB@0x1000000000). opensbi only has the pmp setup for cached region, leaving the uncached region unprotected. S mode can just modify opensbi through 0x1000000000, and effectively renders risc-v pmp useless.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions