Re: [PATCH v3] riscv: Make sure an exception is raised if a pte is malformed

2023-04-20 Thread Alistair Francis
On Fri, Apr 21, 2023 at 1:07 AM Alexandre Ghiti wrote: > > As per the specification, in 64-bit, if any of the pte reserved bits > 60-54 is set an exception should be triggered (see 4.4.1, "Addressing and > Memory Protection"). In addition, we must check the napot/pbmt bits are > not set if those e

[PATCH v3] riscv: Make sure an exception is raised if a pte is malformed

2023-04-20 Thread Alexandre Ghiti
As per the specification, in 64-bit, if any of the pte reserved bits 60-54 is set an exception should be triggered (see 4.4.1, "Addressing and Memory Protection"). In addition, we must check the napot/pbmt bits are not set if those extensions are not active. Reported-by: Andrea Parri Signed-off-b