Skip to content

[Bug Report] RSD is excuting illegal instruction #97

@chenhychen

Description

@chenhychen

Hi,

I have found that RSD can execute illegal instruction in the commit 7b65f6b.
According to RISC-V Instruction Set Privileged Architecture, the funct3 of the load/store instruction should be from 000 to 110.
However, if the funct3 is set to 111, the RSD can still execute the instruction but Spike throws the illegal instruction exception.

For example, executing the instruction hex code 0x00817703 will cause Spike to throw the illegal instruction exception, but RSD executes it. Attach a hex file that can trigger this vulnerability.

illegal_load.zip

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