Skip to content

Backport subject : Userspace pointer masking and tagged address ABI #335

Description

@fangyu0809

1,为 RISC-V Linux 增加 userspace pointer masking。
2,通过 PR_SET_TAGGED_ADDR_CTRL / PR_GET_TAGGED_ADDR_CTRL 暴露与 arm64 类似的 tagged address ABI。
3,支持可变 PMLEN,并将 PMLEN 作为 mm 级一致状态管理。
4,在 uaccess 路径中软件 untag user pointer,保证 kernel 访问 tagged user pointer 正确。
5,通过 hwprobe 暴露 Supm,屏蔽 Smnpm/Ssnpm 的 privilege-mode 差异。
6,通过 KVM 允许 guest 看到 Smnpm/Ssnpm,并补充 KVM selftest。

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